Skip to main content

An all-repos extension to read values from environment variables.

Project description

all-repos-envvar

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

An all-repos extension to read values from environment variables.

Installation

Install this via pip (or your favourite package manager):

pip install all-repos-envvar

Usage

This library should be installed alongside all-repos so that it's findable at import time. It provides a custom source and push to get the GitHub API key from an environment variable GITHUB_API_KEY (reading from and .env file is also supported), allowing you to omit it from the config:

{
  "output_dir": "output",
  "source": "all_repos_envvar.source",
  "source_settings": {
    "username": "browniebroke"
  },
  "push": "all_repos_envvar.push",
  "push_settings": {
    "username": "browniebroke"
  }
}

I wanted this feature, but it looks like it won't be implemented in the main repo, hence this little extension. The source module extends all_repos.source.github and the push module extends all_repos.push.github_pull_request

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Bruno Alla

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

all_repos_envvar-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

all_repos_envvar-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file all_repos_envvar-1.0.0.tar.gz.

File metadata

  • Download URL: all_repos_envvar-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.7.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for all_repos_envvar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a8d1d564a99e9e221b1519c1389d8cb31c20a14b6ea6e11eb3f57ad70631aac3
MD5 0f7b5df9da1c8c2c64aa5ffcc63eedee
BLAKE2b-256 c7eb671246c96508499b0d925f0a54b9db23a0f1fe5650e6dfbb47ff9f2a753e

See more details on using hashes here.

File details

Details for the file all_repos_envvar-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: all_repos_envvar-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.7.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for all_repos_envvar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea4b56de3b9dee64a9d64daa3d3636c897b659018ddcbd9c940811a926380d5
MD5 8f87a2bf3c45cefc038ec0722d6ed71e
BLAKE2b-256 2cd361cc3062be323eab5944340423f3858d9a2d8d4a837b291f1a8e24206f52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page