Add your description here
Project description
osilicense: OSI License CLI & Python Package
osilicense is a Python package and command-line tool for listing, searching, and viewing details of OSI Approved Licenses® using the official OSI API.
Features
- List all OSI Approved Licenses®
- View details for a specific license by SPDX ID
- Search licenses by name
- Automatic suggestions for similar licenses if a license is not found
- Usable as a standalone CLI or as a Python package
Installation
Using pip (editable mode for development)
pip install -e .
Or with uv:
uv pip install -e .
Requirements
- Python 3.8+
requestsandtabulatePython packages
Usage
CLI
After installation, use the osilic command:
-
List all licenses:
osilic
-
Show details for a license by SPDX ID:
osilic gpl-3-0 -
Search licenses by name:
osilic -s gpl
-
If a license is not found, the CLI will suggest similar licenses automatically.
As a Python Package
You can also use OLC in your own Python code:
from olc.model import license_from_dict, print_licenses_table, print_license_details_table
import requests
resp = requests.get("https://opensource.org/api/license")
licenses = license_from_dict(resp.json())
print_licenses_table(licenses)
API Reference
- List all licenses:
https://opensource.org/api/license - License details:
https://opensource.org/api/license/{spdx-id} - Search licenses:
https://opensource.org/api/license?name={search_key}
Reference & Further Reading
- Official OSI API Blog Post: Introducing the New API for OSI Approved Licenses
- For more information on OSI licenses, visit opensource.org.
Development
- Source code: GitHub
- Issues and contributions welcome!
License
This project is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) License.
Copyright © 2025 Dinesh R
See LICENSE for details.
Author
- Dinesh R
Changelog
See CHANGELOG.md for a list of all commits and changes.
For more information on OSI licenses, visit opensource.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osilic-0.1.1.tar.gz.
File metadata
- Download URL: osilic-0.1.1.tar.gz
- Upload date:
- Size: 205.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dec40e6525b156ca4fcc3f4b4a048a6ce35f94e7d8024df52e099085324fbeac
|
|
| MD5 |
75800b8e87a655556b766f290e92c169
|
|
| BLAKE2b-256 |
2ce3e9cb390a7b93e180ee2670f1824e9ed3e5479ac81d581c8403934935bd07
|
File details
Details for the file osilic-0.1.1-py3-none-any.whl.
File metadata
- Download URL: osilic-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d7ccec396c376d7d4284386da1be99044694e3efa778deb06a830c058248473
|
|
| MD5 |
a0d7707f705347f78484f1e76c4f14f6
|
|
| BLAKE2b-256 |
cd2db420c108c290a95da4a0727c49dd9e12b54620cd5dd882bc161bb5cac782
|