Name | lhs-global-service-django JSON |
Version |
0.0.3
JSON |
| download |
home_page | https://github.com/NAT-TEAM-LIGHTHOUSE/Python-Projects/tree/python_global_django_pkg |
Summary | A global logging and service utilities package for Python projects, designed for seamless integration with Django applications. Developed by Lighthouse Info System Pvt Ltd., this package provides robust logging, configuration, and service management tools to enhance reliability and maintainability in Django-based projects. |
upload_time | 2025-08-14 11:20:53 |
maintainer | None |
docs_url | None |
author | Rohit Jagtap |
requires_python | >=3.9 |
license | MIT |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# global_service
A Python package for global logging, step-wise logging, and Oracle DB activity logging, with robust log delivery and local fallback.
## Features
- Centralized logging to a global service (HTTP endpoint)
- Step-wise logger for tracking process steps
- Oracle DB logging for web activity
- Local fallback for failed log delivery
- Fully dynamic configuration via code or environment variables
## Installation
```powershell
pip install global-service
```
## Usage
```python
from global_service import config, build_global_log_payload, send_log_to_global_service, StepLogger, save_step_logs_to_oracle
# Configure dynamically (recommended)
config.configure(
GLOBAL_LOG_URL="http://your-log-server:8000/web_logs",
APP_CODE="MY-APP-CODE",
ORACLE_DB_HOST="dbhost",
ORACLE_DB_PORT=1521,
ORACLE_DB_SERVICE="ORCLPDB",
ORACLE_USER="user",
ORACLE_PASS="pass"
)
# Example: Send a log
payload = build_global_log_payload(request)
send_log_to_global_service(payload)
# Example: Step logger
step_logger = StepLogger()
step_logger.log("Step 1: Started")
step_logger.log("Step 2: Processing")
# ...
save_step_logs_to_oracle(payload, step_logger, request_body, response_body)
```
## License
MIT License
Copyright (c) 2024 [Your Name or Organization]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Raw data
{
"_id": null,
"home_page": "https://github.com/NAT-TEAM-LIGHTHOUSE/Python-Projects/tree/python_global_django_pkg",
"name": "lhs-global-service-django",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Rohit Jagtap",
"author_email": "rohit.jagtap@lighthouseindia.com",
"download_url": "https://files.pythonhosted.org/packages/37/a0/525911590b24e6a8f959ed667318319dc1012af5acb5bd4866f5e717d1d9/lhs_global_service_django-0.0.3.tar.gz",
"platform": null,
"description": "# global_service\r\n\r\nA Python package for global logging, step-wise logging, and Oracle DB activity logging, with robust log delivery and local fallback.\r\n\r\n## Features\r\n- Centralized logging to a global service (HTTP endpoint)\r\n- Step-wise logger for tracking process steps\r\n- Oracle DB logging for web activity\r\n- Local fallback for failed log delivery\r\n- Fully dynamic configuration via code or environment variables\r\n\r\n## Installation\r\n\r\n```powershell\r\npip install global-service\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom global_service import config, build_global_log_payload, send_log_to_global_service, StepLogger, save_step_logs_to_oracle\r\n\r\n# Configure dynamically (recommended)\r\nconfig.configure(\r\n GLOBAL_LOG_URL=\"http://your-log-server:8000/web_logs\",\r\n APP_CODE=\"MY-APP-CODE\",\r\n ORACLE_DB_HOST=\"dbhost\",\r\n ORACLE_DB_PORT=1521,\r\n ORACLE_DB_SERVICE=\"ORCLPDB\",\r\n ORACLE_USER=\"user\",\r\n ORACLE_PASS=\"pass\"\r\n)\r\n\r\n# Example: Send a log\r\npayload = build_global_log_payload(request)\r\nsend_log_to_global_service(payload)\r\n\r\n# Example: Step logger\r\nstep_logger = StepLogger()\r\nstep_logger.log(\"Step 1: Started\")\r\nstep_logger.log(\"Step 2: Processing\")\r\n# ...\r\nsave_step_logs_to_oracle(payload, step_logger, request_body, response_body)\r\n```\r\n\r\n## License\r\n\r\nMIT License\r\n\r\nCopyright (c) 2024 [Your Name or Organization]\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A global logging and service utilities package for Python projects, designed for seamless integration with Django applications. Developed by Lighthouse Info System Pvt Ltd., this package provides robust logging, configuration, and service management tools to enhance reliability and maintainability in Django-based projects.",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/NAT-TEAM-LIGHTHOUSE/Python-Projects/tree/python_global_django_pkg"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "034eaaf3deee6501b1b763300f461f0a3e05910f9c264be30e7bb6195f40731d",
"md5": "9ef6f701a6b91fb9d83e9296eb78e7b2",
"sha256": "eccaaedd2889e8f3cd58dea545fc91a1778a0143665ba1a6a64909cc9b11ef51"
},
"downloads": -1,
"filename": "lhs_global_service_django-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9ef6f701a6b91fb9d83e9296eb78e7b2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 6555,
"upload_time": "2025-08-14T11:20:52",
"upload_time_iso_8601": "2025-08-14T11:20:52.528421Z",
"url": "https://files.pythonhosted.org/packages/03/4e/aaf3deee6501b1b763300f461f0a3e05910f9c264be30e7bb6195f40731d/lhs_global_service_django-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "37a0525911590b24e6a8f959ed667318319dc1012af5acb5bd4866f5e717d1d9",
"md5": "dd196f1e0372366ad9df53a8074db635",
"sha256": "93fb0f6d6f418c5c3ad93618b7ee94df9edf8f50d3957b2839f97baa70b9ff8f"
},
"downloads": -1,
"filename": "lhs_global_service_django-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "dd196f1e0372366ad9df53a8074db635",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 6122,
"upload_time": "2025-08-14T11:20:53",
"upload_time_iso_8601": "2025-08-14T11:20:53.801928Z",
"url": "https://files.pythonhosted.org/packages/37/a0/525911590b24e6a8f959ed667318319dc1012af5acb5bd4866f5e717d1d9/lhs_global_service_django-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-14 11:20:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NAT-TEAM-LIGHTHOUSE",
"github_project": "Python-Projects",
"github_not_found": true,
"lcname": "lhs-global-service-django"
}