{"id":21839090,"url":"https://github.com/illuin-tech/enviparse","last_synced_at":"2025-04-14T10:35:53.496Z","repository":{"id":254398408,"uuid":"846402924","full_name":"illuin-tech/enviparse","owner":"illuin-tech","description":"Configuration parsing library from environment variables","archived":false,"fork":false,"pushed_at":"2025-03-24T12:52:00.000Z","size":116,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T23:51:04.399Z","etag":null,"topics":[],"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/illuin-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-08-23T06:11:09.000Z","updated_at":"2025-03-03T14:26:20.000Z","dependencies_parsed_at":"2025-02-21T09:26:36.740Z","dependency_job_id":null,"html_url":"https://github.com/illuin-tech/enviparse","commit_stats":null,"previous_names":["illuin-tech/envify","illuin-tech/envipy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illuin-tech%2Fenviparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illuin-tech%2Fenviparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illuin-tech%2Fenviparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illuin-tech%2Fenviparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illuin-tech","download_url":"https://codeload.github.com/illuin-tech/enviparse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248863628,"owners_count":21174041,"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":[],"created_at":"2024-11-27T21:15:52.693Z","updated_at":"2025-04-14T10:35:53.473Z","avatar_url":"https://github.com/illuin-tech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enviparse\n\n![CI](https://github.com/illuin-tech/enviparse/workflows/CI/badge.svg)\n[![codecov](https://codecov.io/gh/illuin-tech/enviparse/branch/main/graph/badge.svg)](https://codecov.io/gh/illuin-tech/enviparse)\n\n\n## Description\n\nEnviparse let you simply create dataclasses from environment variable.\n\nSupported types are : \n* int\n* float\n* str\n* bool\n* optional\n* list\n* enum (with int or string values only)\n* `@attr` annotated class\n* `@dataclasses.dataclass` annotated class\n\n# Example\n\nWith following environment variables :\n```bash\nDATABASE_CONFIG_USERNAME=postgres\nDATABASE_CONFIG_PASSWORD=password\nDATABASE_CONFIG_HOST=127.0.0.1\nDATABASE_CONFIG_PORT=5432\nDATABASE_CONFIG_DATABASE_NAME=appdb\n```\n\nYou can parse environment variable with :\n\n```python\nimport dataclasses\nfrom enviparse import Enviparse\n\n\n@dataclasses.dataclass\nclass DatabaseConfig:\n    username: str\n    password: str\n    host: str\n    port: int\n    database_name: str\n\n\ndb_config = Enviparse().parse(\"DATABASE_CONFIG\", DatabaseConfig)\nprint(db_config)\n```\n\nYou should get the following result :\n```\nDatabaseConfig(username='postgres', password='password', host='127.0.0.1', port=5432, database_name='appdb')\n```\n\nFor more example see the [test folder](./tests).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filluin-tech%2Fenviparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filluin-tech%2Fenviparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filluin-tech%2Fenviparse/lists"}