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, 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.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

all_repos_envvar-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: all-repos-envvar-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.7 Darwin/20.6.0

File hashes

Hashes for all-repos-envvar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 764797a8a31b87c89d669d4074fddba6fa899f3d87d0482f5f592a779b7d33af
MD5 3f99f67f8af91775044970cf4ca6db1a
BLAKE2b-256 1bb9e1de355f9cad89cfdf463ebfd2588e168a7019e6859dc6f6abab0d80d92b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for all_repos_envvar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d7eef042ec425730747b240242b3fe0e57c6e18dc691b49a5df72f795c60db6
MD5 6915621a2f63dea3776ecae3ad0a4d73
BLAKE2b-256 4110f970a3c9a46b9145d1c31bdd6977424d61bce6792a208addce23fc138a99

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