Skip to main content

hinagata

A lightweight license generator CLI. Pick a license from a filterable list, confirm the author and year, and get a LICENSE file.

Also available as the shorter hina.

Quick start

uvx hinagata

That runs hinagata once without installing anything. To keep it around:

uv tool install hinagata
hinagata

Installation

Method Run once Install Upgrade
uv uvx hinagata uv tool install hinagata uv tool upgrade hinagata
pipx pipx run hinagata pipx install hinagata pipx upgrade hinagata
pip pip install hinagata pip install -U hinagata

pip installs into the current environment, so use a virtual environment or pip install --user hinagata. With uv, uv pip install hinagata works the same way.

To use the development version, install from Git or from a clone:

uv tool install git+https://github.com/keksiqc/hinagata
uv sync && uv run hinagata

python -m hinagata also works wherever the package is installed.

Usage

Run without arguments to choose a license interactively. Everything can also be passed as flags, which skips the matching prompt and makes the command scriptable:

hinagata MIT --author "Ada Lovelace" --year 2026   # write ./LICENSE
hinagata Apache-2.0 --output LICENSE.txt --force   # custom file, overwrite
hinagata ISC -o - > LICENSE                        # print to stdout
hinagata --list                                    # show the catalogue
Option Description
[LICENSE] SPDX identifier, case-insensitive. Asked when omitted.
-a, --author Copyright holder. Defaults to git config user.name.
-y, --year Year or range such as 2020-2026. Defaults to this year.
-o, --output File to write, or - for stdout. Defaults to LICENSE.
-f, --force Overwrite an existing file without asking.
-l, --list List the available licenses.
--version Show the version.

Author and year are only asked for licenses whose text contains them (MIT, ISC, BSD, 0BSD). The others, such as the GPL family and Apache-2.0, are written verbatim.

Short alias

hina is an alias for hinagata and takes the same arguments, which is handy for everyday use once it is installed:

hina MIT -a "Ada Lovelace"

It ships inside the hinagata package rather than as a package of its own, so uvx hina would fetch an unrelated project from PyPI. To run the alias without installing, name the package explicitly:

uvx --from hinagata hina MIT
pipx run --spec hinagata hina MIT

Bundled licenses

MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, 0BSD, BSL-1.0, MPL-2.0, LGPL-3.0, GPL-2.0, GPL-3.0, AGPL-3.0, Unlicense and CC0-1.0. The texts come from choosealicense.com.

Development

Install the project and its development dependencies:

uv sync

Run the checks:

uv run ruff format --check .
uv run ruff check .
uv run ty check .
uv run pytest

Metadata

Release files for hinagata 0.2.0

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

Source distribution (sdist)

Source distribution for hinagata 0.2.0
File Size Uploaded
hinagata-0.2.0.tar.gz 51.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hinagata 0.2.0
File Interpreter ABI Platform
hinagata-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 111.2 kB

Release files / hinagata-0.2.0.tar.gz

Download URL hinagata-0.2.0.tar.gz
Size 51.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fe223385ee873b232d2988748ae387fc5acceda1a7e137c9ff93f409850ff409
BLAKE2b-256 checksum
How to use checksums
7cf272bd1452e173d3220f7596a52478ffd41fdc35eea16db7874f33ae8a33ff
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 Oct 13, 2026.

Transparency log

Release files / hinagata-0.2.0-py3-none-any.whl

Download URL hinagata-0.2.0-py3-none-any.whl
Size 60.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceac68500f06b0579b8ed3d848cfa563b8c1a8fbb59efcf8ebb08b3bb38ff9d6
BLAKE2b-256 checksum
How to use checksums
fcf350a72583bb8838762d6e25d6ef249f2bc9db371e65770aa42eaae8163997
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 Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.0 This release

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