--- id: slack version: "0.0.3" license: MIT license_treatment: permissive maintenance: abandoned --- # slack — a DI container License: permissive · Maintenance: abandoned · Downloads: 153.6K/mo ## What it is and what it does Slack is a lightweight dependency injection container that manages object lifecycle and dependency resolution. It registers components (classes or factory functions) by name and provides singleton instances on demand, automatically resolving declared dependencies from the container. It also supports partial injection to bind some dependencies while leaving others for later, decorator-based registration, and grouped lifecycle management with reset capabilities. The package is designed for straightforward DI patterns in Python applications where you need centralized component registration and retrieval. However, it has been abandoned since 2014 and targets only Python 2.7 and 3.4, making it unsuitable for modern Python projects without significant verification of compatibility. Use it for: - Building small applications that need centralized dependency management without a full framework - Registering and retrieving singleton services in a monolithic application - Partial application of functions by pre-binding some dependencies while leaving others open - Organizing component lifecycle with grouped resets for test isolation or state management ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A dependency injection container that registers and provides singleton instances, with support for partial injection, decorator-based registration, and grouped lifecycle management. No. The package is abandoned (last commit 2014-05-27) and targets only Python 2.7 and 3.4, both unsupported. High install friction and no runtime dependencies suggest potential packaging issues. Modern alternatives with active maintenance exist for dependency injection in Python. Only consider if you are maintaining legacy Python 2.7 code and have verified compatibility. ## Install pip install slack uv add slack poetry add slack ## Installing slack Before you install: High install friction with no runtime dependencies. The package is abandoned—last commit was 2014-05-27, over a decade ago—and classified as Pre-Alpha. It targets Python 2.7 and 3.4, both long out of support. License in practice: MIT license is permissive and imposes no restrictions on use, modification, or distribution. Quickstart: from slack import Container c = Container() c.register('component', MyClass) instance = c.provide('component') Package targets Python 2.7 and 3.4 only; compatibility with modern Python versions is unverified. Verify before relying: - Whether the package actually works on modern Python versions despite targeting only 2.7 and 3.4 - Whether the high install friction is due to a missing wheel or other packaging issue - Real-world usage patterns and whether the singleton-by-default behavior matches modern DI expectations ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 153.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags dependency injection container, DI container python, singleton instance provider, service locator pattern, inversion of control container, di-container, abandoned [View on SkillFed](https://skillfed.io/packages/slack) · [View on PyPI](https://pypi.org/project/slack/)