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.
[!IMPORTANT] As of all-repos v1.25, you may not need this package, see section below
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"
}
}
The source module extends all_repos.source.github and the push module extends all_repos.push.github_pull_request.
Why
I wanted this feature, but at the time, it looked like it would never be implemented in the main repo, hence this little extension. Since then, the author of all-repos apparently changed their mind and support for reading from environment variable was added in early 2023, and it's now included since release v1.25.0.
The only extra feature that this package provides is to read from .env file, but this can be achieved by more general solutions like direnv.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file all_repos_envvar-1.4.0.tar.gz.
File metadata
- Download URL: all_repos_envvar-1.4.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d8e2381ca9d961f6464a5f7823a15cf8b3ee35be5c62cf252b761234bf03773
|
|
| MD5 |
7f3409c9ca0127808ce9166b7455ab1d
|
|
| BLAKE2b-256 |
2a5e73789065aa4b4d8145cb43ab42fba93c1e2349ed50fffc9f3057df2c72ed
|
Provenance
The following attestation bundles were made for all_repos_envvar-1.4.0.tar.gz:
Publisher:
ci.yml on browniebroke/all-repos-envvar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
all_repos_envvar-1.4.0.tar.gz -
Subject digest:
9d8e2381ca9d961f6464a5f7823a15cf8b3ee35be5c62cf252b761234bf03773 - Sigstore transparency entry: 532773346
- Sigstore integration time:
-
Permalink:
browniebroke/all-repos-envvar@d7f40666e52192cd26671b10b92a8b51f80829a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/browniebroke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@d7f40666e52192cd26671b10b92a8b51f80829a2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file all_repos_envvar-1.4.0-py3-none-any.whl.
File metadata
- Download URL: all_repos_envvar-1.4.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e65eca9f3d0a035ba58dd96727ad354a4faf50102b08aea7d65e10ffd500c1
|
|
| MD5 |
5943b3ad086a94c6290220ed6218e5c1
|
|
| BLAKE2b-256 |
f7369d85b758412936ce85403e3c32cdae2e2a47879fb258ac50c7e026b06771
|
Provenance
The following attestation bundles were made for all_repos_envvar-1.4.0-py3-none-any.whl:
Publisher:
ci.yml on browniebroke/all-repos-envvar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
all_repos_envvar-1.4.0-py3-none-any.whl -
Subject digest:
40e65eca9f3d0a035ba58dd96727ad354a4faf50102b08aea7d65e10ffd500c1 - Sigstore transparency entry: 532773393
- Sigstore integration time:
-
Permalink:
browniebroke/all-repos-envvar@d7f40666e52192cd26671b10b92a8b51f80829a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/browniebroke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@d7f40666e52192cd26671b10b92a8b51f80829a2 -
Trigger Event:
push
-
Statement type: