A collection of useful tools
Project description
pyuseful
The package contains a collection of tools I find useful. Check out wiki page for more detail and examples.
Install
Requires python 3.9
pip install pyuseful
General info
Consists of several sub-packages:
-
classtools
- immutable
-
class
ImmutablePropertiesMakes class propreties immutable
-
- message
-
class
MessageThreadCreates a separate thread which prints messeges in queue
-
- postint
-
class
PostInitAdds a call to
__postinit__method after init is complete
-
- require
-
class
RequireAttrsAdds attribute
requirewhich forces you to set listed attributes by the end of init -
class
RequireDictParserParses
dictorjsonfile into a class and make attributes from keys. Adds attributerequireandrequire_anywhich force you to set listed attributes by the end of init
-
- immutable
-
decorators
-
require
-
decorator
require_conditionLet's you specify a condition in which a method of a class can be called
-
decorator
onceFunction can only be called once or it always returns the same result as the 1st call
-
decorator
limitLimits a number of times a function can be called
-
-
thread
- decorator
repeat_timer
Repeat a function every
timernumber of seconds. Returns aQueue-like object with results - decorator
- timing
-
decorator
time_execMessure exec time of a function
-
-
-
filetools
- misc
-
function
mod_name_with_extModify a path without modifying an extention
-
- splicer
-
class
SplicerLet's you specify blocks in files which can be pasted into other files
-
- misc
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyuseful-0.0.4.tar.gz.
File metadata
- Download URL: pyuseful-0.0.4.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb9412b0de9cac9306ecd98f637a0f893aaad34fdddcc12e3f4a8cd42329659d
|
|
| MD5 |
712fca6a25d86ed2e87fd82ba93ad765
|
|
| BLAKE2b-256 |
8393025f2b9d1730c4bf151b0770721dc58b0d5fd869b44bf40d16e118da7fb5
|
File details
Details for the file pyuseful-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pyuseful-0.0.4-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
812ffc3d1d3bcbaa80a0f9ef6c64ba76c4d05335440a5f2b1068072e86d0568f
|
|
| MD5 |
c28527349270d6e7cd32c1ae312766ea
|
|
| BLAKE2b-256 |
1b5b4e67e35a73fb7d66d5013c16a5708c512533f789822336af306e595a5330
|