Skip to main content

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+
  • requests and tabulate Python packages

Usage

CLI

After installation, use the osilic command:

  • List all licenses:

    osilic
    

    osilic

  • Show details for a license by SPDX ID:

    osilic gpl-3-0
    

    osilic gpl-3-0

  • Search licenses by name:

    osilic -s gpl
    

    osilic -s gpl

  • If a license is not found, the CLI will suggest similar licenses automatically. osilic mi

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osilic-0.1.3.tar.gz (205.6 kB view details)

Uploaded Source

Built Distribution

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

osilic-0.1.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file osilic-0.1.3.tar.gz.

File metadata

  • Download URL: osilic-0.1.3.tar.gz
  • Upload date:
  • Size: 205.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.15

File hashes

Hashes for osilic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 eae910c53f24e8de3e52428159cb9be78210262cabfa5606eb98ad9dae45100b
MD5 e384e57690c10e7250baa86455ae2c3c
BLAKE2b-256 62db7f131a47978dadae74e3f47aa08742795e8cae92bba9e700eea416819ca5

See more details on using hashes here.

File details

Details for the file osilic-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: osilic-0.1.3-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

Hashes for osilic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fdbbba67b8539474054848ddddfd5c2c3ad9ab1d66c4fc186430ec62c1eb6c
MD5 f5accb57e0c00da879bebc1a240e9a88
BLAKE2b-256 b1bbb5f9b9cdcd169bc397334e34444fea110abad13caaa9a1738b5884c0124f

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