Skip to main content

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

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.23.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.23-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moles_tools-0.0.23.tar.gz
Algorithm Hash digest
SHA256 203d08030698f07fde21fadaf7b1b798c6e862d0b4d3a3fb3380f23b999a8f83
MD5 431f9ded3eab03724d5a8b291f6b6321
BLAKE2b-256 da67b9db0e7f024c3c686d94956de4f2f384bc1bd0fda17ac2a427e2110128f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for moles_tools-0.0.23.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.23-py3-none-any.whl.

File metadata

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

File hashes

Hashes for moles_tools-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 f9328762ea41d6ebabbe699d21cbed9eadf16ca619adeb77108c99a841c59f72
MD5 3e30c0a2e5a874538b7091d1cf9d7c3c
BLAKE2b-256 f419efae43e4574aa2e59b8d306a6f8c8ce2bf79c9369ad723ee532dd8c06ad4

See more details on using hashes here.

Provenance

The following attestation bundles were made for moles_tools-0.0.23-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.

Release history Release notifications | RSS feed

This release

0.0.23 This release

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page