Skip to main content

A tool to quickly generate software license files with customizable project details

Project description

GetLicense

📖 A tool to quickly generate software license files with customizable project details
GitHub last commit GitHub License PyPI - Version

getlicense is a command-line tool that helps you easily choose and generate a license for your software project. It fetches license templates from an online repository, fills in basic project information (like organization name, project name, and copyright year), and saves the result as a LICENSE file. You can also cache templates for offline use and list available options directly from the terminal.

usage: getlicense [-h] [-L] [-l] [-n] [-c]
                  [--organization ORGANIZATION] [-o OUTPUT]
                  [--project PROJECT] [--year YEAR]
                  [license_name]

A tool to quickly generate software license files with customizable project details

positional arguments:
  license_name          Name of license template to fetch (e.g.,
                        mit, gpl3 and etc.)

options:
  -h, --help            show this help message and exit
  -L, --list-cached-templates
                        List cached license templates
  -l, --list-templates  List available license templates
  -n, --no-cache        Don't cache the license template file when
                        downloaded
  -c, --offline         Get the cached license template instead of
                        downloading
  --organization ORGANIZATION
                        The name of the organization or individual
                        who holds the copyright to the software
  -o, --output OUTPUT   Where to write the license template content
                        to
  --project PROJECT     The name of the software project
  --year YEAR           The year of the software's copyright

Features

  • Automatically fills in organization, project name, and year
  • Caches license templates for offline use
  • Can list available and cached license templates
  • Customizable output location for the license file
  • Interactive prompts with smart defaults

Installation

  • You can install it from pypi using pip (for Microsoft Windows):
pip install getlicense
  • Or install it using pipx (recommended, for all):
pipx install getlicense 
  • Or even build it from source!
git clone https://github.com/ashkanfeyzollahi/getlicense.git
cd getlicense
python -m build
pipx install dist/*

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

getlicense-0.2.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

getlicense-0.2.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file getlicense-0.2.1.tar.gz.

File metadata

  • Download URL: getlicense-0.2.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for getlicense-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7ddfedf6cde504145d86a02a265b64264b3823732a7a3774418c54643cea0d63
MD5 e8d6d7627b1bcb52f665c02cbeb91e7d
BLAKE2b-256 ef85a5a96d944b3e18fc0721b73a60a511f50001ac39c1fd4ae91bfd9f38426f

See more details on using hashes here.

File details

Details for the file getlicense-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: getlicense-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for getlicense-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abc84c74c1a264966107acfc6a5bca32ed2f0eea436e51c09a6b15e894ee7ed3
MD5 e908ef75eb4b45bc82408964058cf1c4
BLAKE2b-256 f7307a214b57d2caff7360b13ded93fee05450510208c7a313d5d1db5e9ab777

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page