fledge-cli
fledge-cli is a command-line tool that bootstraps Python projects with best-practice development configurations and tools. It automatically sets up pre-commit hooks, linting configurations, GitHub Actions workflows, and documentation scaffolding to help you get started quickly with a well-configured Python project.
What It Does
Running fledge in your Python project directory will install and configure:
- Pre-commit hooks - Automatically installed with
.pre-commit-config.yaml - Git commit/tag signing - Enables GPG signing via git config
- Linting & formatting configs -
.yamllint,.gitlintfor code quality - GitHub Actions workflows - CI/CD pipelines for publishing docs and releases
- MkDocs documentation - Basic
mkdocs.yamlanddocs/index.mdstructure - GitHub Copilot instructions - Project-specific AI assistant guidance
- Enhanced .gitignore - Common Python ignore patterns
- Updated pyproject.toml - Additional Hatch build configurations
- Example test file - Basic import test to get you started
- Custom sed transformations - Optional user-defined file transformations via
~/.config/fledge/init.sed(using Python regex)
All file names are automatically customized with your project name from pyproject.toml.
Table of Contents
Prerequisites
Before using fledge-cli, ensure your project meets these requirements:
- Hatch project structure - Your project should be initialized with
hatch new <project-name> - PyPI Trusted Publisher - For the release workflow to work, configure a trusted publisher on PyPI for your repository
- GitHub Pages - Enable GitHub Pages in your repository settings and set the source to "GitHub Actions" for automated documentation deployment
Installation
pip install fledge-cli
Usage
Navigate to your Python project directory and run:
fledge
This will install all configuration files and set up your development environment. By default, existing files are not overwritten.
Options
-f, --force- Overwrite existing files-C, --chdir <directory>- Change to specified directory before installing
Example:
# Install in current directory, overwriting existing configs
fledge --force
# Install in a different directory
fledge --chdir /path/to/project
Custom Sed Transformations
You can define custom file transformations by creating a sed script at ~/.config/fledge/init.sed. This script will be applied to all .py, .toml, .md, and .txt files in your project using Python regex syntax (not traditional sed syntax).
Example ~/.config/fledge/init.sed:
s/YOUR_NAME/John Doe/g
s/YOUR_EMAIL/john@example.com/g
License
fledge-cli is distributed under the terms of the MIT license.
Metadata
Release files for fledge-cli 0.0.1.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fledge_cli-0.0.1.post1.tar.gz | 9.0 kB | With provenance | Details for fledge_cli-0.0.1.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fledge_cli-0.0.1.post1-py3-none-any.whl | Python 3 | none | any | Details for fledge_cli-0.0.1.post1-py3-none-any.whl |
Total release size: 20.9 kB
Release files / fledge_cli-0.0.1.post1.tar.gz
| Download URL | fledge_cli-0.0.1.post1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d23b968e197960d3c3e6f5b90870efd4b868c381e509841b01e05b700d48b19
|
|
BLAKE2b-256 checksum How to use checksums |
2012dd6d9d6334a4879ef731bcd7372a0445a6de8c2151cdffbdbc8d133e115a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 20, 2025.
Transparency logRelease files / fledge_cli-0.0.1.post1-py3-none-any.whl
| Download URL | fledge_cli-0.0.1.post1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f47e4f419a9fae5c4b1545288d2d681875b2cd32dedac4b7ff440cda255f38cb
|
|
BLAKE2b-256 checksum How to use checksums |
ca143fd16ef5bd1bb7ac719dc3b305e8ddeb9218f84b839fe4410aa391e41ffe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 20, 2025.
Transparency logSecurity for fledge-cli 0.0.1.post1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fledge_cli-0.0.1.post1.tar.gz
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 Dec 20, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.