{"id":24938234,"url":"https://github.com/devsetgo/devsetgo_lib","last_synced_at":"2025-08-23T13:17:00.622Z","repository":{"id":38389732,"uuid":"234980984","full_name":"devsetgo/devsetgo_lib","owner":"devsetgo","description":"A library to standardize common functions for applications.","archived":false,"fork":false,"pushed_at":"2025-08-10T19:47:55.000Z","size":21734,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T05:20:13.596Z","etag":null,"topics":["python","python3","python36","python37","python38"],"latest_commit_sha":null,"homepage":"https://devsetgo.github.io/devsetgo_lib/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devsetgo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-19T23:02:47.000Z","updated_at":"2025-08-10T19:47:59.000Z","dependencies_parsed_at":"2023-02-18T08:46:07.716Z","dependency_job_id":"6fcf5b5b-6d3a-428e-bdcb-85e15a878118","html_url":"https://github.com/devsetgo/devsetgo_lib","commit_stats":{"total_commits":536,"total_committers":5,"mean_commits":107.2,"dds":0.4402985074626866,"last_synced_commit":"341a1570fb4a93141d1702d743c688774b7958d3"},"previous_names":["devsetgo/dev_com_lib"],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/devsetgo/devsetgo_lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsetgo%2Fdevsetgo_lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsetgo%2Fdevsetgo_lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsetgo%2Fdevsetgo_lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsetgo%2Fdevsetgo_lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsetgo","download_url":"https://codeload.github.com/devsetgo/devsetgo_lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsetgo%2Fdevsetgo_lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749046,"owners_count":24814113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python3","python36","python37","python38"],"created_at":"2025-02-02T17:32:52.144Z","updated_at":"2025-08-23T13:17:00.592Z","avatar_url":"https://github.com/devsetgo.png","language":"Python","readme":"Python:\n\n[![PyPI version fury.io](https://badge.fury.io/py/devsetgo-lib.svg)](https://pypi.python.org/pypi/devsetgo-lib/)\n[![Downloads](https://static.pepy.tech/badge/devsetgo-lib)](https://pepy.tech/project/devsetgo-lib)\n[![Downloads](https://static.pepy.tech/badge/devsetgo-lib/month)](https://pepy.tech/project/devsetgo-lib)\n[![Downloads](https://static.pepy.tech/badge/devsetgo-lib/week)](https://pepy.tech/project/devsetgo-lib)\n\nSupport Python Versions\n\n![Static Badge](https://img.shields.io/badge/Python-3.13%20%7C%203.12%20%7C%203.11%20%7C%203.10-blue)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Coverage Status](https://raw.githubusercontent.com/devsetgo/devsetgo_lib/refs/heads/dev/coverage-badge.svg)](./reports/coverage/index.html)\n[![Tests Status](https://raw.githubusercontent.com/devsetgo/devsetgo_lib/refs/heads/dev/tests-badge.svg)](./reports/coverage/index.html)\n\nCI/CD Pipeline:\n\n[![Testing - Main](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)\n[![Testing - Dev](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml/badge.svg?branch=dev)](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)\n\nSonarCloud:\n\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=devsetgo_devsetgo_lib\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=devsetgo_devsetgo_lib\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=devsetgo_devsetgo_lib\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=devsetgo_devsetgo_lib\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=devsetgo_devsetgo_lib\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)\n\n\n\n# DevSetGo Common Library\n\n![DSG Logo](/images/devsetgo_lib_logo_white_bg.svg)\n`devsetgo_lib` is a versatile library designed to provide common functions for Python applications. Its main goal is to increase reusability and reduce the need to rewrite the same functions across multiple applications. This also allows for quick defect resolution and propagation of fixes across all dependent projects.\n\nRead the Full Documentation [here](https://devsetgo.github.io/devsetgo_lib/).\n\n## Key Features\n\n### **Common Functions**:\n  - **File Operations**:\n    - **CSV, JSON, and Text File Functions**: Create, read, write, and manipulate various file types with ease.\n    - **Folder Functions**: Create and remove directories, list directory contents, and manage file system operations efficiently.\n\n  - **File Moving**:\n    Move files from one directory to another, with an option to compress the file being moved.\n\n  - **Logging**:\n    Comprehensive logging setup using the [Loguru Library]('https://loguru.readthedocs.io/en/stable/overview.html'). Provides extensive customization options for log configuration, including log rotation, retention, and formatting. Includes improvements for multiprocessing environments to ensure log messages are handled correctly across multiple processes.\n\n  - **Calendar Functions**:\n      Convert between month names and numbers seamlessly.\n\n  - **Pattern Matching**:\n      Powerful tools for searching patterns in text using regular expressions.\n\n\n### **FastAPI Endpoints**:\n  - Pre-built endpoints for system health checks, status, and uptime monitoring.\n  - Functions to generate HTTP response codes easily.\n\n### **Async Database**:\n  - Configuration and management of asynchronous database sessions.\n  - CRUD operations with async support.\n\n## Quick Reference\n\n- Logging \u0026 Config Setup\n- FastAPI Endpoints\n- Calendar \u0026 Date Utilities\n- Pattern Matching\n- CSV \u0026 JSON Helpers\n\n---\n## Installation\n\nTo install `devsetgo_lib`, use pip:\n\n```sh\npip install devsetgo-lib\n\n# For async database setup with SQLite or PostgreSQL\npip install devsetgo-lib[sqlite]\npip install devsetgo-lib[postgres]\n\n# Experimental support for other databases\npip install devsetgo-lib[oracle]\npip install devsetgo-lib[mssql]\npip install devsetgo-lib[mysql]\n\n# For adding FastAPI endpoints\npip install devsetgo-lib[fastapi]\n\n# Install everything\npip install devsetgo-lib[all]\n```\n\n## Usage\n\nHere's a quick example to demonstrate how you can use some of the key features of `devsetgo_lib`:\n\n```python\nfrom devsetgo_lib.common_functions import file_functions, logging_config, patterns, calendar_functions\n\n# File Operations\nfile_functions.create_sample_files(\"example\", 100)\ncontent = file_functions.read_from_file(\"example.csv\")\nprint(content)\n\n# Logging\nlogging_config.config_log(logging_directory='logs', log_name='app.log', logging_level='DEBUG')\nlogger = logging.getLogger('app_logger')\nlogger.info(\"This is an info message\")\n\n# Pattern Matching\ntext = \"Hello, my name is 'John Doe' and I live in 'New York'.\"\nresults = patterns.pattern_between_two_char(text, \"'\", \"'\")\nprint(results)\n\n# Calendar Functions\nprint(calendar_functions.get_month(1))  # Output: 'January'\nprint(calendar_functions.get_month_number('January'))  # Output: 1\n```\n\nFor detailed documentation on each module and function, please refer to the [official documentation](https://devsetgo.github.io/devsetgo_lib/print_page/).\n\n## Contributing\n\nWe welcome contributions! Please see our [contributing guidelines](CONTRIBUTING.md) for more details.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Contact\n\nFor any questions or issues, please open an issue on GitHub or contact us at [devsetgo@example.com](mailto:devsetgo@example.com).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsetgo%2Fdevsetgo_lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsetgo%2Fdevsetgo_lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsetgo%2Fdevsetgo_lib/lists"}