python-packaging-license-finder
/python-packaging-license-finder
Ustala licencję pakietu Python, sprawdzając najpierw metadane PyPI, a następnie pliki LICENSE w repozytorium Git pobranym płytkim klonem.
- Autor
- opendatahub-io ↗
- Repozytorium
- ai-helpers ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 22.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/find_license.py
Co robi i kiedy
Ustala licencję pakietu Python, sprawdzając najpierw metadane PyPI, a następnie pliki LICENSE w repozytorium Git pobranym płytkim klonem.
Oryginalny opis (EN)
Use this skill to deterministically find license information for Python packages by checking PyPI metadata first, then falling back to Git repository LICENSE files using shallow cloning.
Jak działa
- Instructions
- Usage Examples
- Error Handling
- Integration Notes
Podgląd SKILL.md
--- name: python-packaging-license-finder description: Use this skill to deterministically find license information for Python packages by checking PyPI metadata first, then falling back to Git repository LICENSE files using shallow cloning. allowed-tools: Bash Skill --- # Python Package License Finder This skill helps you deterministically find license information for Python packages using a two-step approach: first checking PyPI metadata, then searching the source repository if needed. ## Instructions When a user asks to find the license for a Python package, follow this deterministic process: ### Step 0: Source URL Priority If a source repository URL is provided by the caller, skip PyPI lookup entirely: 1. Pass the URL directly to the `git:shallow-clone` skill 2. Search for LICENSE files in the cloned repository (see Step 2.3-2.4 below) 3. Report the license found You can also use the script with a source URL to trigger this flow: ```bash ./scripts/find_license.py <package_name> --source-url <url> ``` If no source URL is provided, proceed with Step 1. ### Step 1: Check PyPI Metadata First, attempt to find the license from PyPI using the package inspection script: ```bash ./scripts/find_license.py <package_name> [version] ``` If the script finds a license in the PyPI metadata, **stop here** and return the license name. ### Step 2: Search Git Repository (if PyPI fails) If no license is found in PyPI metadata, search the package's source repository: 1. **Get the source repository URL** from the PyPI metadata (the script will provide it) 2. **Use the shallow-clone skill** to clone the repository: ``` Skill: git:shallow-clone ``` 3. **Search for LICENSE files** in the cloned repository: ```bash find . -iname "license*" -o -iname "copying*" -o -iname "copyright*" | head -10 ``` 4. **Read the license file** to identify the license type: ```bash head -20 <license_file> ``` ### Step 3: Report Results - **License Found**: Return the license name (e.g., "MIT License", "Apache-2.0", "GPL-3.0") - **License Not Found**: Report that the license could not be determined ## Usage Examples ### Find License for Popular Package ```bash ./scripts/find_license.py requests ``` **Expected**: Find "Apache-2.0" from PyPI metadata ### Find License for Package with Missing PyPI License ```bash ./scripts/find_license.py some-package ``` **Expected**: Fall back to repository search if PyPI metadata is incomplete ### Specific Version Analysis ```bash ./scripts/find_license.py django 4.2.0 ``` **Expected**: Find license for specific Django version ## Error Handling ### Package Not Found - Verify package name spelling - Check package availability on PyPI - Suggest alternative package names ### Repository Access Issues - Report if source repository is unavailable - Note private/restricted repositories - Suggest manual license verification ### License File Parsing - Handle non-standard license file formats - Report unclear or multiple licenses - Recommend manual review for complex cases ## Integration Notes This skill complements: - **python-packaging-complexity** - License info helps assess redistribution complexity - **python-packaging-license-checker** - Provides license names for compatibility assessment - **python-packaging-source-finder** - Uses similar PyPI metadata analysis The skill focuses on **finding** license information, while license-checker focuses on **assessing** license compatibility for redistribution.
Pliki w paczce (2)
- SKILL.md 3 KB
- scripts/find_license.py 4 KB
Wersje
W bazie nie ma innych skilli o nazwie python-packaging-license-finder.
Migawka bazy z 28.10.2026 · wersja paczki cc719becce6d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90open-source-license-selection
Pomaga wybrać, uzgodnić i zastosować licencję open source oraz metadane pakietu. - 100python-packaging-license-checker
Sprawdza, czy licencja pakietu Python pozwala na redystrybucję w produktach Red Hat, według Fedora License Data, i zwraca werdykt w sześciu polach z wskazówkami eskalacji. - 100python-packaging
Konfiguruje metadane paczki Pythona, setup.py i pyproject.toml pod publikację na PyPI przez UV lub setuptools. - 95python-packaging
Przygotowuje pakiety Pythona z pyproject.toml, strukturą projektu i publikacją na PyPI. - 100license-check
Ocenia, czy licencja pakietu Pythona pozwala na redystrybucję w potoku dystrybucji pakietów AI Red Hat (RHAI), rozpoznaje licencję SPDX i zapisuje ustrukturyzowany werdykt zgodności. - 100python-packaging
Buduje i publikuje pakiety Python z uv: tworzenie wheel i sdist, publikacja w PyPI oraz punkty wejścia.