A Python CLI abstracting common Git interactions like Conventional Commit and Atlassian Smart Commit helpers
Project description
gyt-cli
A Python CLI abstracting common Git interactions like Conventional Commit and Atlassian Smart Commit helpers.
Installation
From PyPI
pip install gyt-cli
From Source
git clone https://github.com/your-username/gyt-cli.git
cd gyt-cli
uv sync
uv run pip install -e .
Usage
After installation, the gyt command will be available:
gyt --help
Development
Prerequisites
- Python 3.10 or higher
- UV package manager
Setup Development Environment
-
Clone the repository:
git clone https://github.com/your-username/gyt-cli.git cd gyt-cli
-
Install dependencies using UV:
uv syncThis will create a virtual environment and install all production and development dependencies.
Development Workflow
Adding Dependencies
To add a new production dependency:
uv add <package-name>
To add a development dependency:
uv add --dev <package-name>
Running Tests
Run the test suite:
uv run pytest
Run tests with coverage:
uv run pytest --cov=gyt_cli
Code Quality
Format code with Black:
uv run black .
Run type checking with MyPy:
uv run mypy gyt_cli
Running the CLI During Development
Execute the CLI directly from source:
uv run gyt --help
Or run specific commands:
uv run gyt <command> <args>
Project Structure
gyt-cli/
├── gyt_cli/ # Main package
│ ├── __init__.py
│ ├── cli.py # CLI entry point
│ ├── commands/ # Command modules
│ ├── config/ # Configuration handling
│ └── utils.py # Utility functions
├── tests/ # Test suite
├── pyproject.toml # Project configuration
├── uv.lock # Dependency lock file
└── README.md # This file
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes
- Run tests:
uv run pytest - Run code quality checks:
uv run black .anduv run mypy gyt_cli - Commit your changes using conventional commits
- Push to your fork and submit a pull request
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
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
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 gyt_cli-0.3.0.tar.gz.
File metadata
- Download URL: gyt_cli-0.3.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e40b64a5ad592fc6e79be6cf0fc8b76d84c137b8f73a428e3608efa54b1cfe87
|
|
| MD5 |
b455de3b708c2844b6fd1cc3e3ab2cdd
|
|
| BLAKE2b-256 |
fa519ebd5305e440a082dac23213db2ca75895164f80ffc1b405cae45d81aa1f
|
Provenance
The following attestation bundles were made for gyt_cli-0.3.0.tar.gz:
Publisher:
publish-pypi.yml on scrthq/gyt-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gyt_cli-0.3.0.tar.gz -
Subject digest:
e40b64a5ad592fc6e79be6cf0fc8b76d84c137b8f73a428e3608efa54b1cfe87 - Sigstore transparency entry: 451769515
- Sigstore integration time:
-
Permalink:
scrthq/gyt-cli@6d3666d8383317d896822f84c838e626cd559570 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/scrthq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6d3666d8383317d896822f84c838e626cd559570 -
Trigger Event:
release
-
Statement type:
File details
Details for the file gyt_cli-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gyt_cli-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e5ef73f299eb66ab6fe6d38656f0e79da847ea6112566e52a8a823f1397abec
|
|
| MD5 |
0022d7f569191dd86479b83458297a72
|
|
| BLAKE2b-256 |
fa20fc0b6335246072a2413743b369735d6ac4cfcdd293f5313c18a14bdcfa5f
|
Provenance
The following attestation bundles were made for gyt_cli-0.3.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on scrthq/gyt-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gyt_cli-0.3.0-py3-none-any.whl -
Subject digest:
5e5ef73f299eb66ab6fe6d38656f0e79da847ea6112566e52a8a823f1397abec - Sigstore transparency entry: 451769533
- Sigstore integration time:
-
Permalink:
scrthq/gyt-cli@6d3666d8383317d896822f84c838e626cd559570 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/scrthq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6d3666d8383317d896822f84c838e626cd559570 -
Trigger Event:
release
-
Statement type: