{"id":18273236,"url":"https://github.com/spacetab-io/configuration-python","last_synced_at":"2025-04-09T03:34:59.026Z","repository":{"id":62564368,"uuid":"256260808","full_name":"spacetab-io/configuration-python","owner":"spacetab-io","description":"Configuration module for microservices written on Python. Specially created for follow up corporate standards of application configuration. ","archived":false,"fork":false,"pushed_at":"2020-08-13T11:12:19.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T15:07:49.280Z","etag":null,"topics":["config","configuration","python"],"latest_commit_sha":null,"homepage":null,"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/spacetab-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-16T15:50:31.000Z","updated_at":"2020-08-13T11:12:21.000Z","dependencies_parsed_at":"2022-11-03T16:45:36.242Z","dependency_job_id":null,"html_url":"https://github.com/spacetab-io/configuration-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fconfiguration-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fconfiguration-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fconfiguration-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacetab-io%2Fconfiguration-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacetab-io","download_url":"https://codeload.github.com/spacetab-io/configuration-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974417,"owners_count":21026739,"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","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":["config","configuration","python"],"created_at":"2024-11-05T12:05:43.787Z","updated_at":"2025-04-09T03:34:59.006Z","avatar_url":"https://github.com/spacetab-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python Microservice configuration module\n-------------------------------------\n\n[![CircleCI](https://circleci.com/gh/spacetab-io/configuration-python/tree/master.svg?style=svg)](https://circleci.com/gh/spacetab-io/configuration-python/tree/master)\n\nConfiguration module for microservices written on Python. Specially created\nfor follow up corporate standards of application configuration.\n\n## Installation\n\n```bash\npip3 install config_pkg\n```\n\n## Usage\n\nBy default path to configuration directory and application stage\nloading from `/configuration` with `defaults` stage.\n\n1) Simple\n```python\nfrom config_pkg import PKG\n\npkg = PKG()\npkg.load()\n\nall_config = pkg.get_all()\nfoo_bar = pkg.get('foo.bar')\n```\n\n2) If u would like override default values, you can pass 2 arguments to\nclass constructor or set up use setters.\n\n```python\nfrom config_pkg import PKG\n\npkg = PKG('/configuration', 'test')\npkg.load()\n\nfoo_bar = pkg.get('key') # full example on the top\n```\n\n3) If the operating system has an env variables `CONFIG_PATH` and `STAGE`,\nthen values for the package will be taken from there.\n\n```bash\nexport CONFIG_PATH=/configuration\nexport STAGE=test\n```\n\n```python\nfrom config_pkg import PKG\n\npkg = PKG()\npkg.load() # loaded files from /configuration for prod stage.\n\nfoo_bar = pkg.get('key') # full example on the top\n```\n\n4) If u want to see logs and see how load process working,\npass you application logger to the following method:\n\n```python\nfrom config_pkg import PKG\n\npkg = PKG(logger=logger) # loggining.Logger compatible logger\npkg.load() \n\nfoo_bar = pkg.get('key') # full example on the top\n```\n\nThat all.\n\n## Depends\n\n* Python 3.x\n* pip for install package\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacetab-io%2Fconfiguration-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacetab-io%2Fconfiguration-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacetab-io%2Fconfiguration-python/lists"}