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.

📦 Установка

pip install 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.0.tar.gz (9.7 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.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unclaimed_libraries-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 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.0.tar.gz
Algorithm Hash digest
SHA256 803162dea3b2ada92cede81b9ede6b2153f192b056d9096e6ac8da879b9935a8
MD5 582775034ff0e390ec82a9e45cbe3a3d
BLAKE2b-256 6d3bc1f7a6998eca68d937c554627ee099fc184f30e1aa823151e5cf0f498781

See more details on using hashes here.

Provenance

The following attestation bundles were made for unclaimed_libraries-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unclaimed_libraries-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e855fcc62f4604c5b2c67b8d4aeb790ca69c8e9cfc319ab3b754b9df94a3a4
MD5 ad73d876f796ca7a4914b2e295553024
BLAKE2b-256 0285f7e834c8a941d6217167189b96a9569ac549e65a85064cecd7bd3ea78d2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for unclaimed_libraries-0.1.0-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