{"id":15493812,"url":"https://github.com/peter554/useenv","last_synced_at":"2026-04-19T15:31:43.495Z","repository":{"id":207230018,"uuid":"709264148","full_name":"Peter554/useenv","owner":"Peter554","description":"A tiny tool to manage values in your env file","archived":false,"fork":false,"pushed_at":"2023-11-21T11:14:26.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-28T19:44:06.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Peter554.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-24T11:16:29.000Z","updated_at":"2023-11-15T15:14:46.000Z","dependencies_parsed_at":"2023-11-21T12:30:39.658Z","dependency_job_id":null,"html_url":"https://github.com/Peter554/useenv","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"c9c2befd22ef9a55d0354eeaded0e564963b103f"},"previous_names":["peter554/useenv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Peter554/useenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fuseenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fuseenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fuseenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fuseenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter554","download_url":"https://codeload.github.com/Peter554/useenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter554%2Fuseenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32011938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":[],"created_at":"2024-10-02T08:09:28.493Z","updated_at":"2026-04-19T15:31:43.450Z","avatar_url":"https://github.com/Peter554.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# useenv\n\nA tiny tool to manage values in your env file. \nUseful in some rare circumstances e.g. swapping variables in local development,\nwhen you don't want to maintain multiple separate env files.  \n\n* `pipx install useenv`\n* Create a `.useenv.yml` config file in your project root. \n  * If this contains secret values then make sure to add `.useenv.yml` to your project or global `.gitignore`.\n* `useenv \u003cenv_identifier\u003e`\n\nExample `.useenv.yml` config file:\n\n```yml\nenv_file: .env\nenvs:\n    foo:\n        DATABASE_HOST: foo-host\n        DATABASE_USER: foo-user\n        DATABASE_PASSWORD: foo-pw\n    bar:\n        DATABASE_HOST: bar-host\n        DATABASE_USER: bar-user\n        DATABASE_PASSWORD: bar-pw\n```\n\n\n## Modes\n\n`--mode` flag or `mode` field of the config.\n\n### `merge` (default)\n\nValues will be merged into the existing env file, or create it if it doesn't exist.\n\n### `create`\n\nEnv file will be created/overwritten.\n\nIn this case you may want to define a common set of values. YAML gives us the tools to do this:\n\n```yml\n_common: \u0026common\n    DATABASE_USER: common-user\n  \nenv_file: .env\nmode: create\nenvs:\n    foo:\n        \u003c\u003c : *common\n        DATABASE_HOST: foo-host    \n        DATABASE_PASSWORD: foo-pw\n    bar:\n        \u003c\u003c : *common\n        DATABASE_HOST: bar-host    \n        DATABASE_PASSWORD: bar-pw\n```\n\n## 1password\n\nIf you have the 1password CLI installed then you can pull values from 1password:\n\n```yml\n...\nenvs:\n    foo:\n        DATABASE_PASSWORD: 1pw::\u003citem-id\u003e::\u003cfield\u003e  # e.g. 1pw::abcdefqwerty::password\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fuseenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter554%2Fuseenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter554%2Fuseenv/lists"}