{"id":20462284,"url":"https://github.com/drish/envvar","last_synced_at":"2026-04-24T05:33:31.112Z","repository":{"id":64308507,"uuid":"573243666","full_name":"drish/envvar","owner":"drish","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-10T23:29:35.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-20T07:49:13.826Z","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/drish.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-02T02:16:58.000Z","updated_at":"2022-12-02T02:19:19.000Z","dependencies_parsed_at":"2024-11-15T12:44:29.229Z","dependency_job_id":null,"html_url":"https://github.com/drish/envvar","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"9af3a6cdfc87065e0c2923961d2911a1cb6d8ce7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fenvvar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fenvvar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fenvvar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drish%2Fenvvar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drish","download_url":"https://codeload.github.com/drish/envvar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023208,"owners_count":20059297,"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-15T12:34:16.221Z","updated_at":"2026-04-24T05:33:26.093Z","avatar_url":"https://github.com/drish.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-envvar\n\nThe easiest way to handle env vars.\n\nThis is an opnionated utility package for handling environment variables, it handles defaults and required env vars all in one simple config file.\n\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![Build](https://github.com/drish/envvar/actions/workflows/test.yaml/badge.svg)\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n[![codecov](https://codecov.io/gh/drish/envvar/branch/main/graph/badge.svg?token=GGD39PPFM0)](https://codecov.io/gh/drish/envvar)\n---\n\n# Example config yaml\n\n```yaml\nrequired:\n  - DB_NAME\n  - HOST\ndefaults:\n  TOKEN: \"_token_\"\n  HOST: \"0.0.0.0\"\n  PORT: 3000\nlocal:\n  DB_NAME: pg://local\ntest:\n  DB_NAME: pg://test\n```\n\n# Installation\n\n`pip install py-envvar==0.0.1`\n\n# Usage\n\n```python\nimport os\nfrom envvar import load # import envvar instead of py-envvar\n\nload(\"./config.yaml\", \"local\") # raises when a required env var is not set\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrish%2Fenvvar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrish%2Fenvvar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrish%2Fenvvar/lists"}