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.0.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.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for getlicense-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6dc79f68e2b84b87271e958039a0a119d9139e587336508112b67eac74cb348c
MD5 e81e84757e5d9b1fa54233dbea0e4af5
BLAKE2b-256 5dc14640574090576bc27277e36a9339807a7ac137b6ad3d80dbd726ce6e98e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: getlicense-0.2.0-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.5

File hashes

Hashes for getlicense-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b83ecfadeaad03f2da56c3648a86ea15a9657b283300f2743078f491aadfdd79
MD5 8548be7a461c3c38e9c31c40bef2c532
BLAKE2b-256 286a8c5406d87e00c8f4b6858fc4030e68d35a02e0eeb69569c23dc9a10256d0

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