| Crates.io | hajime |
| lib.rs | hajime |
| version | 0.3.13 |
| created_at | 2025-01-16 12:26:23.115183+00 |
| updated_at | 2025-06-05 10:58:08.431113+00 |
| description | A Rust CLI tool to create Python project skeletons |
| homepage | https://github.com/huangziwei/hajime |
| repository | https://github.com/huangziwei/hajime |
| max_upload_size | |
| id | 1519245 |
| size | 52,724 |
hajime is a lightweight Rust CLI tool designed to quickly create and manage Python project skeletons.
cargo install hajime
Or, to install hajime locally, clone this repository and run:
cargo install --path .
Make sure ~/.cargo/bin is in your PATH.
Run the following command to create a new Python project:
hajime new project_name
This creates the following structure:
project_name/
├── README.md
├── pyproject.toml
├── project_name
│ ├── __init__.py
│ └── main.py
├── tests
│ ├── __init__.py
│ └── test_main.py
To build the Python project into a wheel:
hajime build
This runs python3 -m build and will package your project and place the distribution files (e.g., .tar.gz and .whl) in the dist/ directory.
To check the build, run:
hajime check
To publish your project to PyPI, run the following command:
hajime publish
By default, hajime will use the default account stored in your system's keyring. You can specify an account or override the stored token:
hajime publish --account account_name
hajime publish --account account_name --override-token
This will:
hajime build or python3 -m build.build or twine packages are missing, install them with:
pip install build twine
hajime securely stores your PyPI API tokens in your system's keyring (e.g., macOS Keychain, Windows Credential Manager, or Linux Secret Service).