# Model Logger
[](https://www.python.org/downloads/release/)
A package that contains method to log the model training log.
The package is an uncompleted package in the version 1.x. Its functions will be gradually improved in subsequent versions.
## How to use
To use the model logger, you need to install the package first. You can install it using pip:
```bash
pip install model_logger_dp
```
To start the model logger.
```python
import os
import model_logger_dp
os.environ['LOG_PATH'] = './output/log' # Set the directory for logs
# If you want to save the log with a specific file name, you should set the filename parameter.
# If you do not set the filename parameter, the log will be saved with a datatime name.
logger = model_logger_dp.ModelLogger(filename='train.log')
# Use the print method to log the message.
print('Hellow World!')
```
To look the help and update log of the package, you can use the `log_help` and `log_update` method.
```python
import model_logger_dp
model_logger_dp.log_help()
model_logger_dp.log_update()
```
## Update
`1.0.3` - Add model summery method and update the setup method.
`1.0.2` - Add showing the caller method.
`1.0.1` - Add the logger decorator, improve the logger instance and implement help and update log method.
`1.0.0` - Initial release with basic logging functionality.
## License
model_logger is MIT licensed. See the [LICENSE](LICENSE) for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "model-logger-dp",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "python, logger, model",
"author": null,
"author_email": "Ian Zhu <IanZhu@m.ldu.edu.cn>",
"download_url": "https://files.pythonhosted.org/packages/41/47/3b9ac6e103891e3a617856a74f1b11bd8a51a4b4ce9bac2871a7e6826853/model_logger_dp-1.0.3.post1.tar.gz",
"platform": null,
"description": "# Model Logger\n\n[](https://www.python.org/downloads/release/)\n\nA package that contains method to log the model training log.\n\nThe package is an uncompleted package in the version 1.x. Its functions will be gradually improved in subsequent versions.\n\n## How to use\nTo use the model logger, you need to install the package first. You can install it using pip:\n\n```bash\npip install model_logger_dp\n```\n\nTo start the model logger.\n\n```python\nimport os\nimport model_logger_dp\n\nos.environ['LOG_PATH'] = './output/log' # Set the directory for logs\n\n# If you want to save the log with a specific file name, you should set the filename parameter.\n# If you do not set the filename parameter, the log will be saved with a datatime name.\nlogger = model_logger_dp.ModelLogger(filename='train.log')\n\n# Use the print method to log the message.\nprint('Hellow World!')\n```\n\nTo look the help and update log of the package, you can use the `log_help` and `log_update` method.\n\n```python\nimport model_logger_dp\n\nmodel_logger_dp.log_help()\nmodel_logger_dp.log_update()\n```\n## Update\n `1.0.3` - Add model summery method and update the setup method.\n `1.0.2` - Add showing the caller method.\n `1.0.1` - Add the logger decorator, improve the logger instance and implement help and update log method.\n `1.0.0` - Initial release with basic logging functionality.\n\n## License\n\nmodel_logger is MIT licensed. See the [LICENSE](LICENSE) for details.",
"bugtrack_url": null,
"license": "MIT",
"summary": "Model Logger for Pytorch",
"version": "1.0.3.post1",
"project_urls": {
"homepage": "https://github.com/huggingface/pytorch-image-models",
"repository": "https://github.com/huggingface/pytorch-image-models"
},
"split_keywords": [
"python",
" logger",
" model"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "cefa0da40b4453542b87d090a31f49387ae1192a427ad8fb694b3b68fe568f63",
"md5": "1599bb12a04af7dc30d6a9a634a9e944",
"sha256": "046117eb1cba23991b21e0aeff63dee0d35c2047237a77c1061f3f744adcfca3"
},
"downloads": -1,
"filename": "model_logger_dp-1.0.3.post1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1599bb12a04af7dc30d6a9a634a9e944",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 9059,
"upload_time": "2025-07-27T08:43:26",
"upload_time_iso_8601": "2025-07-27T08:43:26.489599Z",
"url": "https://files.pythonhosted.org/packages/ce/fa/0da40b4453542b87d090a31f49387ae1192a427ad8fb694b3b68fe568f63/model_logger_dp-1.0.3.post1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "41473b9ac6e103891e3a617856a74f1b11bd8a51a4b4ce9bac2871a7e6826853",
"md5": "190d2e4a9273d31733b674d85c430773",
"sha256": "c05fb0dfe118db420b8e321f2843c3d83c31a9822b292dd56d6aababe851fc8f"
},
"downloads": -1,
"filename": "model_logger_dp-1.0.3.post1.tar.gz",
"has_sig": false,
"md5_digest": "190d2e4a9273d31733b674d85c430773",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6842,
"upload_time": "2025-07-27T08:43:27",
"upload_time_iso_8601": "2025-07-27T08:43:27.829548Z",
"url": "https://files.pythonhosted.org/packages/41/47/3b9ac6e103891e3a617856a74f1b11bd8a51a4b4ce9bac2871a7e6826853/model_logger_dp-1.0.3.post1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-27 08:43:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "huggingface",
"github_project": "pytorch-image-models",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "torch",
"specs": [
[
">=",
"1.7"
]
]
},
{
"name": "torchvision",
"specs": []
},
{
"name": "pyyaml",
"specs": []
},
{
"name": "huggingface_hub",
"specs": []
},
{
"name": "safetensors",
"specs": [
[
">=",
"0.2"
]
]
},
{
"name": "numpy",
"specs": []
}
],
"lcname": "model-logger-dp"
}