Pyjon Utils
raw JSON → 0.7 verified Fri May 01 auth: no python deprecated
A useful tools library providing singleton patterns, dynamic function pointers, and other Python utilities. Version 0.7 is outdated; the package appears unmaintained since 2010. No recent releases or activity.
pip install pyjon-utils==0.7 Common errors
error ModuleNotFoundError: No module named 'pyjon' ↓
cause The package name is 'pyjon-utils', but import uses 'pyjon.utils'.
fix
pip install pyjon-utils and use: from pyjon.utils import ...
error ImportError: cannot import name 'Singleton' ↓
cause Perhaps you tried: import pyjon; pyjon.Singleton
fix
Use: from pyjon.utils import Singleton
Warnings
gotcha The package is extremely outdated (last release 2010) and no longer maintained. It may not work with Python 3.x without modifications. ↓
fix Consider alternatives like 'singledispatch' or custom metaclasses.
breaking Import paths have changed between versions; always use `from pyjon.utils import ...`. ↓
fix Use correct import path: from pyjon.utils import ClassName
Imports
- Singleton wrong
import pyjon pyjon.Singletoncorrectfrom pyjon.utils import Singleton
Quickstart
from pyjon.utils import Singleton
class MyClass(metaclass=Singleton):
pass
obj = MyClass()
print(obj)