MkLicense
MkLicense is a command-line tool for generating an Open Source License.
MkLicense makes use of the Textual TUI framework and is inspired by choosealicense.
Installation
pipx install mklicense
Design
Factory
You can use a "factory" to dynamically create default values for certain parameters. The factory is an executable that accepts the name of the parameter as the only argument. The factory should print a line representing the default value to be used or no value to omit the value. Here is an example for a factory written in Python:
#!/usr/bin/env python3
from datetime import date
import sys
param = sys.argv[1]
match param:
case "Year":
print(date.today().year)
case "Name":
print("John Doe")
MkLicense will use the environment variable MKLICENSE_FACTORY to infer the path to the executable (or the name of the executable if in PATH). If that environment
variable is not set, MkLicense looks if mklicense/factory exists in your config directory (e.g. ~/.config/ in Linux) and use that script. The script must be an
executable so make sure to use chmod +x script_path and use a shebang at the top of the script.
Metadata
Release files for mklicense 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mklicense-0.5.0.tar.gz | 42.0 kB | Without provenance | Details for mklicense-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mklicense-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for mklicense-0.5.0-py3-none-any.whl |
Total release size: 93.8 kB
Release files / mklicense-0.5.0.tar.gz
| Download URL | mklicense-0.5.0.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf33d2af513295bec2c84179ca25c367df9178870b4077fa71541580312db2dc
|
|
BLAKE2b-256 checksum How to use checksums |
1c2b1d52dfeecb951c5bae5c6864466844ac1d0a7cc7e5900e1d77eb39e4c5ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.14 Linux/7.0.14-arch1-1
|
Release files / mklicense-0.5.0-py3-none-any.whl
| Download URL | mklicense-0.5.0-py3-none-any.whl |
|---|---|
| Size | 51.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e3c4b2939dfdfb33527d629bafe88cf1afb56db39e7ab9682abac2003fc5cbc
|
|
BLAKE2b-256 checksum How to use checksums |
8a2ab8bb36316c121d492b260b12573595f7f79cb101dd065b3e752f113ae73a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.14 Linux/7.0.14-arch1-1
|
Security for mklicense 0.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.