Skip to main content

A collection of Python tools from the underground

Project description

moles-tools

CI/CD Documentation PyPI version Python 3.11+ License: MIT

A collection of Python tools from the underground. 🐾

📖 Full Documentation

Tools

Tool Description
env-updater Update ENV variables in a target file from a source file

Quick Start

# Install from PyPI
pip install moles-tools

# Or with uv
uv tool install moles-tools

# Update .env from .env.production
env-updater .env.production .env

Usage

moles-tools

moles-tools - A collection of Python tools from the underground

Available tools:
  env-updater          Update ENV variables in a target file from a source file

Run 'env-updater --help' for usage information.

env-updater

usage: env-updater [-h] [--no-create] [--quiet] [UPDATE] [TARGET]

Update ENV variables in TARGET from UPDATE.

When TARGET is omitted the tool auto-detects the target:
  1. .env exists            → update .env with UPDATE
  2. .env missing, .env.example/.env found → create .env from
     example, then apply UPDATE
  3. No UPDATE given, .env missing → copy .env.example / env.example
     to .env

positional arguments:
  UPDATE       ENV file whose values take precedence (optional).
  TARGET       Target ENV file to update in-place. Auto-detected from the
               current directory when omitted.

options:
  -h, --help   show this help message and exit
  --no-create  Fail if TARGET does not exist instead of creating it.
  --quiet, -q  Suppress informational output.

Development

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and set up
git clone https://github.com/the78mole/moles-tools.git
cd moles-tools

# Install all dependencies
uv sync --all-extras

# Install pre-commit hooks
uv run pre-commit install

# Run tests
uv run pytest

License

MIT

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

moles_tools-0.0.5.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

moles_tools-0.0.5-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file moles_tools-0.0.5.tar.gz.

File metadata

  • Download URL: moles_tools-0.0.5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for moles_tools-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d7e5ca0b06eb4102b870c463a06f258c14908e4570db086ea2890fa31a170359
MD5 dce6f851edc4c5199f14528ee1d7974a
BLAKE2b-256 e7f9e8035f052e336fc28179c86e1da00dcd180064174a18dce86a4c89af1c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for moles_tools-0.0.5.tar.gz:

Publisher: ci.yml on the78mole/moles-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moles_tools-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: moles_tools-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for moles_tools-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b1760bec7d01aa64e3c1e80e585d98d7df84487461f0612ab3f8f34fac98c23
MD5 a17d555f5fce2c661ec7a084de5a1f86
BLAKE2b-256 79165c27a9451cf776c0f289bc5426c7bafb1187d9b24b8e793e9d8c894846d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for moles_tools-0.0.5-py3-none-any.whl:

Publisher: ci.yml on the78mole/moles-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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