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-0.2.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

all_repos_envvar-0.2.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file all-repos-envvar-0.2.1.tar.gz.

File metadata

  • Download URL: all-repos-envvar-0.2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for all-repos-envvar-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6940f505a79c4d3505b32fd72e2bf9a50bc5e6189c05d04988f41d5dec43a948
MD5 d825361e2611919bcf8ecad0ce17869c
BLAKE2b-256 a28efd8ea448d8f7e51ed43e512c6a6b25b4e7c3395c1d590f16cfebc789c387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: all_repos_envvar-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for all_repos_envvar-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5198a2f5534c524d7398739eb7274c9c41c0ef4fdbd9413dbfaea02fd070719
MD5 b80d236864a1d045c4edf566bed89b3b
BLAKE2b-256 86fa796d18a649378e2bac2d8ba6952b621dc4ca744535b54f136d78e66f997f

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