Skip to main content

CLI tool for detecting unused dependencies in Python projects

Project description

Unclaimed Libraries

Python Version License CLI

Unclaimed Libraries – это CLI‑инструмент для поиска неиспользуемых зависимостей в Python‑проектах. Он анализирует pyproject.toml, просматривает все импорты в коде, отфильтровывает стандартную библиотеку и локальные модули, а также обращается к PyPI, чтобы пропустить пакеты, предназначенные только для разработки (линтеры, тестовые фреймворки, CLI‑утилиты и т.д.).

✨ Возможности

  • Точное обнаружение – обрабатывает import, from ... import, динамические импорты (importlib.import_module, __import__).

  • 🧠 Умная фильтрация – автоматически игнорирует:

    • модули стандартной библиотеки Python
    • локальные модули/пакеты (включая namespace packages)
    • пакеты для разработки (линтеры, тесты, статические анализаторы, CLI‑помощники) – используя классификаторы PyPI.

📦 Установка

poetry add unclaimed-libraries

Or using uv:

uv add unclaimed-libraries

🚀 Использование

# Анализ текущей папки
unclib

# Анализ конкретного проекта
unclib /path/to/myproject

# Исключить дополнительные каталоги
unclib . --exclude legacy scripts

🙋 Как внести вклад

Приветствуются issues и pull request’ы! Пожалуйста, сначала создайте issue для обсуждения значительных изменений.

Библиотека работает только при наличие интернета

Распространяется под лицензией MIT. Подробности в файле LICENSE.

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

unclaimed_libraries-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

unclaimed_libraries-0.1.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unclaimed_libraries-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for unclaimed_libraries-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b6e0e9b6c2a1d31feb653d0e4be5f69995d3d358e98bb4ec45d096ba42d0c5c8
MD5 74d87dbee5857a845a97937f505923ec
BLAKE2b-256 9254e7865fb37ef1af5e1e1eb6f7a11f15d13c2e993dee8948aa7cfd6ce04164

See more details on using hashes here.

Provenance

The following attestation bundles were made for unclaimed_libraries-0.1.3.tar.gz:

Publisher: workflow.yml on AndrewMedvedev/unclaimed-libraries

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for unclaimed_libraries-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 481cb0d953329d897e434de515f8d439258bd7436debbbe0c6907010fd884232
MD5 dd56869335ffcc0d0b42f6c859ecb5c1
BLAKE2b-256 7e49a906b17f9169a485b4092b08130dffd9d26ef7cab500120a4c9004c40d02

See more details on using hashes here.

Provenance

The following attestation bundles were made for unclaimed_libraries-0.1.3-py3-none-any.whl:

Publisher: workflow.yml on AndrewMedvedev/unclaimed-libraries

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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