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.2.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.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unclaimed_libraries-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1f2276a40753c3eb6c7e24389084d272bfd1580bc5cb3ec0ed6d971456e55d1a
MD5 5e8ff295eb37c1b3d68ed4b7f4237aed
BLAKE2b-256 199cf4e7cee3c939fae40be2004455db5b49b35988f4fe25c2968ddb33a4c716

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for unclaimed_libraries-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79ab9da67c7a6e42cf5ccbf5bb066a506a9acbca7d66359b6d6261f36205acb1
MD5 8c192b7c2d392b892063f67307906a60
BLAKE2b-256 31b12d15d094ced0eb9321662ea4ac9f3d81d9fc555f7928150e8dd1e9ef3c52

See more details on using hashes here.

Provenance

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