solus
Singleton types.
Decision gist · record as of 2026-08-14
Yes, if you need singleton behavior and want a lightweight, typed implementation. The package is stable, has no vulnerabilities, and low install friction. However, maintenance is dormant—no updates in over 900 days—so consider it only if the current feature set meets your needs and you're comfortable with no active support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or above.
- Low install friction with a pure Python wheel.
- Maintenance is dormant—last release was 2024-02-26, over 900 days ago—but the package is marked stable and has no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
last release 2024-02-26 (900 days) · last repo commit 2024-05-31 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,304 downloads/mo, #12,259 on PyPI
Alternatives
Verify before relying
pip install solus
from solus import Singleton
class MyService(Singleton):
pass
service = MyService() # thread-safe single instance- Whether thread-safety guarantees hold under all Python concurrency models (asyncio, threading, multiprocessing).
- Performance characteristics compared to alternative singleton implementations.
What it is and what it does
solus provides two singleton type classes—Singleton and UnsafeSingleton—that enforce the singleton pattern at the class level. Singleton creates thread-safe instances that can be safely instantiated from multiple threads, while UnsafeSingleton creates faster but non-thread-safe singletons intended for single-threaded contexts. You inherit from either class to make your class a singleton; subsequent instantiation attempts return the same instance.
The package depends only on named, a utility library for type annotations. It's a minimal, focused tool for developers who need singleton behavior without rolling their own implementation or pulling in a large framework. The library is typed and supports Python 3.8 through 3.12.
Use it for
- Enforce a single global logger or configuration manager instance across an application.
- Create thread-safe service objects that should only be instantiated once in a multi-threaded environment.
- Build a single-instance cache or connection pool that all parts of the code share.
- Implement a registry or factory that must exist as exactly one instance throughout the application lifecycle.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need singleton behavior and want a lightweight, typed implementation.
The package is stable, has no vulnerabilities, and low install friction. However, maintenance is dormant—no updates in over 900 days—so consider it only if the current feature set meets your needs and you're comfortable with no active support.
Install
solus on PyPI
Before you install
Low install friction with a pure Python wheel. Maintenance is dormant—last release was 2024-02-26, over 900 days ago—but the package is marked stable and has no known vulnerabilities.
Requires Python 3.8 or above.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
Quickstart
pip install solus
from solus import Singleton
class MyService(Singleton):
pass
service = MyService() # thread-safe single instance
Verify before relying
- Whether thread-safety guarantees hold under all Python concurrency models (asyncio, threading, multiprocessing).
- Performance characteristics compared to alternative singleton implementations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagenamed |
| Maintenance | Dormant 900 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,304 / month, #12,259 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: UtilitiesTyping :: Typed |
Evidence: solus-1.2.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “thread-safe singleton”
- solusProvides thread-safe and thread-unsafe singleton type decorators for…
- picoboxPicobox is a lightweight dependency injection framework that manages…
- singleton-decoratorProvides a decorator that enforces singleton pattern on classes while…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also singleton-decorator · pyjon.utils · sentinel · mixed-methods · niltype · django-solo · slack · celery-singleton · pytest-run-parallel · wraps