Skip to main content

Get common config for different types of projects

Project description

config-getter

Holds common configuration files for different types of projects. Also provides a CLI to easily copy config into projects, available via PyPI.

Usage

config-getter python .github/workflows/checks.yml  # Add GitHub Action templates for checking Python projects
config-getter python Makefile  # Add Makefile with helpful Python commands
config-getter python .gitignore  # Add Python items into .gitignore

config-getter docker .dockerignore  # Add .dockerignore file
config-getter docker .gitignore  # Add Docker items into .gitignore

config-getter --help                # Show help text

In general, the format is config-getter <TECH> <CONFIG>.

A --force mode will override existing configuration.

Essentially the CLI just downloads the file from GitHub and places it correctly into the project.

Install

# Run in a temporary environment with uvx
uvx config-getter <TECH> <CONFIG>

# Install from source
git clone https://github.com/cooperellidge/get-config.git
make .venv
source .venv/bin/activate
config-getter <TECH> <CONFIG>

Future work

  • Get directories full of configuration, e.g. .github/workflows
  • Appending configuration to existing files, including JSON
  • Aliases, e.g. github = .github/workflows/*
  • Custom configuration, e.g. point to other GitHub sources
  • Templating, so that you can pre-fill templates with things like project names
  • Documentation website, MkDocs hosted on GitHub Pages

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

config_getter-0.0.3.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

config_getter-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file config_getter-0.0.3.tar.gz.

File metadata

  • Download URL: config_getter-0.0.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.26

File hashes

Hashes for config_getter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9bccaa5f8f946c687fd481880525fc2f4afcfcbfd8b409c02f1ef419b94b966a
MD5 a7caf4efb5e88a22df8c04d1abf6efae
BLAKE2b-256 8826bcc156b2389ea7ff43830d5b634f7bd4e2de5b53e0fa8308c8b64aec0d38

See more details on using hashes here.

File details

Details for the file config_getter-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for config_getter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 861340e61c8bba06c1d631144c2ae7c94f09ca08a6cadfd6353f3cfc3090302e
MD5 55f8f048ab34b9943fbf8d08b8ce1007
BLAKE2b-256 5d87d4290c628987c5bd46cd5735f3c276257f07c60b11dc225a004f08ec1030

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page