{"id":18972375,"url":"https://github.com/wuriyanto48/pyenvar","last_synced_at":"2026-05-07T07:38:52.225Z","repository":{"id":62580139,"uuid":"310519767","full_name":"wuriyanto48/pyenvar","owner":"wuriyanto48","description":"Python's .env loader","archived":false,"fork":false,"pushed_at":"2020-11-09T03:31:34.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T16:37:52.888Z","etag":null,"topics":["configuration","dotenv","dotenv-loader","dotenv-python","pip","python"],"latest_commit_sha":null,"homepage":"","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/wuriyanto48.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-06T07:11:42.000Z","updated_at":"2020-11-09T03:31:36.000Z","dependencies_parsed_at":"2022-11-03T21:01:01.379Z","dependency_job_id":null,"html_url":"https://github.com/wuriyanto48/pyenvar","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/wuriyanto48%2Fpyenvar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpyenvar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpyenvar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpyenvar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuriyanto48","download_url":"https://codeload.github.com/wuriyanto48/pyenvar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970706,"owners_count":19727014,"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":["configuration","dotenv","dotenv-loader","dotenv-python","pip","python"],"created_at":"2024-11-08T15:08:19.710Z","updated_at":"2026-04-07T12:30:15.250Z","avatar_url":"https://github.com/wuriyanto48.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pyenvar\n\n[![Build Status](https://travis-ci.org/wuriyanto48/pyenvar.svg?branch=master)](https://travis-ci.org/wuriyanto48/pyenvar)\n\n\nPython's `.env` loader is a dotenv package for `Python` based on https://github.com/motdotla/dotenv (`dotenv` module for `nodejs`) with zero dependency\n\n### Install\n```shell\n$ pip install pyenvar\n```\n\n### Unit test\nMake sure to running `unit tests` before pushing\n```shell\n$ make test\n```\n\n### Usage\n\nMake sure the `.env` file is in your project's `root` folder\n```\nmyproject\n   - src/\n     - __init__.py\n   - main.py\n   - .env\n```\n\nAssumed the `.env` file looks like this\n```.env\nUSERNAME=admin\nPASSWORD='12345'\n```\n\n#### Basic usage\n```python\nimport os\nimport pyenvar\n\npyenvar.load()\nprint(os.environ.keys())\nusername = os.environ.get('USERNAME')\nprint(username)\n```\n\n#### Custom .env path\n\n```python\nimport os\nimport pyenvar\n\npyenvar.load(path='./config/.env', encoding='utf-8')\nprint(os.environ.keys())\nusername = os.environ.get('USERNAME')\nprint(username)\n```\n\n#### Pyenvar CLI\n```shell\n$ pyenvar-cli /path/to/.env\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuriyanto48%2Fpyenvar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuriyanto48%2Fpyenvar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuriyanto48%2Fpyenvar/lists"}