An all-repos extension to read values from environment variables.
Project description
all-repos-envvar
Source Code: https://github.com/browniebroke/all-repos-envvar
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for all_repos_envvar-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e80b405be31840379123b28b85ca58ab74ee32944dff2c6cf010a7333f488a6 |
|
MD5 | f123d817c02ec6b8b7198cc6193c871c |
|
BLAKE2b-256 | 468a1dbb51e1378fee1523b5bf8c00c820347773a5bae45c95e37ace477b1e97 |