Registry / pyjon-utils

pyjon-utils

JSON →
library0.7pypypi✓ verified 87d ago

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
INSTALL
IMPORT
SIG · PYJON-UTILS
P
pyjon-utils
pythonv0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Singleton
✓ from pyjon.utils import Singleton
✗ import pyjon pyjon.Singleton
Singleton is a class in pyjon.utils module, not top-level.

Basic usage of the Singleton metaclass.

from pyjon.utils import Singleton class MyClass(metaclass=Singleton): pass obj = MyClass() print(obj)
Debug
Known issues
gotchaThe 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.
affects: 0.7 and earlier
breakingImport paths have changed between versions; always use `from pyjon.utils import ...`.
fix
Use correct import path: from pyjon.utils import ClassName
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pyjon'
The package name is 'pyjon-utils', but import uses 'pyjon.utils'.
fix
pip install pyjon-utils and use: from pyjon.utils import ...
ImportError: cannot import name 'Singleton'
Perhaps you tried: import pyjon; pyjon.Singleton
fix
Use: from pyjon.utils import Singleton
Upgrade
Version history
0.7latest on PyPI · released Oct 10, 2014
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
homepageUNKNOWN ↗
pyjon-utils — pip install pyjon-utils · libregistry