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


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


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

Uploaded Source

Built Distribution

all_repos_envvar-1.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: all_repos_envvar-1.1.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for all_repos_envvar-1.1.3.tar.gz
Algorithm Hash digest
SHA256 f7d44d15fb6707cf3323de03b4fbec8b3809d327c3b0e118911440f629dc766c
MD5 9e095c9bc9bf13b09608f6c51e6afb44
BLAKE2b-256 d91739294c4c25198f6229f4d05667b6f57977de3c8c4011541f7d6bcaf38d97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for all_repos_envvar-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5be2be48ddc285ae0e51bdb3b11723fe32948a17610f0a4af43e4965c457ec14
MD5 6bc21aaae682a5c6a19cb7431fa17b31
BLAKE2b-256 4434645eda2213fa31b79da692ed6b09077061353867eeff69155ea3ba5c1e5c

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