A collection of Python tools from the underground
Project description
moles-tools
A collection of Python tools from the underground. 🐾
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moles_tools-0.0.2.tar.gz.
File metadata
- Download URL: moles_tools-0.0.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a0d061ebb133a341c8f13b2c7deda9be63708a225d61e88714249ffcaac0d88
|
|
| MD5 |
8d0e90e945740c1d525eb5ac6e6f6338
|
|
| BLAKE2b-256 |
d6efd29a4429365008c5ef700a9835058039acb18984bbd6a0208ca0473b6579
|
Provenance
The following attestation bundles were made for moles_tools-0.0.2.tar.gz:
Publisher:
ci.yml on the78mole/moles-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moles_tools-0.0.2.tar.gz -
Subject digest:
5a0d061ebb133a341c8f13b2c7deda9be63708a225d61e88714249ffcaac0d88 - Sigstore transparency entry: 1066827622
- Sigstore integration time:
-
Permalink:
the78mole/moles-tools@f4e9cd4e887a93b84df2e0e90f8d89dc6c8b3b51 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/the78mole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@f4e9cd4e887a93b84df2e0e90f8d89dc6c8b3b51 -
Trigger Event:
push
-
Statement type:
File details
Details for the file moles_tools-0.0.2-py3-none-any.whl.
File metadata
- Download URL: moles_tools-0.0.2-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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16b65aff7c7038d07777d2adf990f272e3d22ae59c26cc3b700a16e8eb267a7f
|
|
| MD5 |
02cd3acdc7cf017fc48f52c294d336d9
|
|
| BLAKE2b-256 |
7d92b2ff91644ece4af40291feea5c57b97c25071c6ebb694f6b980e9b1c0c87
|
Provenance
The following attestation bundles were made for moles_tools-0.0.2-py3-none-any.whl:
Publisher:
ci.yml on the78mole/moles-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moles_tools-0.0.2-py3-none-any.whl -
Subject digest:
16b65aff7c7038d07777d2adf990f272e3d22ae59c26cc3b700a16e8eb267a7f - Sigstore transparency entry: 1066827691
- Sigstore integration time:
-
Permalink:
the78mole/moles-tools@f4e9cd4e887a93b84df2e0e90f8d89dc6c8b3b51 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/the78mole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@f4e9cd4e887a93b84df2e0e90f8d89dc6c8b3b51 -
Trigger Event:
push
-
Statement type: