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

Metadata

Release files for moles-tools 0.0.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moles-tools 0.0.27
File Size Uploaded
moles_tools-0.0.27.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moles-tools 0.0.27
File Interpreter ABI Platform
moles_tools-0.0.27-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / moles_tools-0.0.27.tar.gz

Download URL moles_tools-0.0.27.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
27eedc8763586835a5f5ec66d8d331bfe5eec622f22db92b046a45b929853ab9
BLAKE2b-256 checksum
How to use checksums
a936d2a619aae28d92c220a58745ccc952da4dfbe752613d1f0f9482891bbd9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / moles_tools-0.0.27-py3-none-any.whl

Download URL moles_tools-0.0.27-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b862ecdf369f879cec7216c59d23814c0299ceab7af8a219ebf5b6f9abde038
BLAKE2b-256 checksum
How to use checksums
4f85c942e8f2453184a0f7ab47e991666c0f4f1d0893eef3c2c42f5a45411a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.30

2 release files

0.0.28

2 release files

This release

0.0.27 This release

2 release files

0.0.26

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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