collect all my previous modules in one package
Project description
base_aux (current v0.0.16/)
DESCRIPTION_SHORT
collect all my previous modules in one package
DESCRIPTION_LONG
Features
-
cmp - apply for cmp object with others
-
getattr prefix
-
getattr echo
-
middle group
-
Number+NumberArithm - use class as number
-
Annotations - work with annotations +use special abilities+use nested classes
-
perfect singleton (maybe thread safe!)
-
collect all instances
-
check correct instantiating singletons in tree project
-
check requirements (systemOs), raise/bool if no match
-
create fuck(?)/source and is it for check for settings
-
[python PACKAGES/MODULES]:
- upgrade
- delete
- version_get_installed
- check_installed)
- upgrade pip
-
[VERSION]:
- parse
- check
- compare
-
send commands into OS terminal
-
check if cli commands are accessible (special utilities is installed)
-
access to standard parts of result in a simple ready-to-use form (stdout/stderr/retcode/full state)
-
use batch timeout for list
-
till_first_true
-
counter/counter_in_list
-
designed for common work with bitfields-like objects
-
Flags
-
Bits
-
Designed to use private data like username/pwd kept secure in OsEnvironment or Ini/Json-File for your several home projects at ones. And not open it in public. **CAUTION:** in requirements for other projects use fixed version! because it might be refactored so you would get exception soon.
-
load values to instance attrs from:
- Environment
- IniFile
- JsonFile
- CsvFile
- direct text instead of file
- direct dict instead of file
-
attr access:
- via any lettercase
- by instance attr
- like dict key on instance
-
work with dict:
- apply
- update
- preupdate
-
update_dict as cumulative result - useful in case of settings result
-
use different managers for different funcs/methods if needed
-
use just one decorator to spawn threads from func / methods
-
keep all spawned threads in list by ThreadItem objects
-
ThreadItem keeps result/exx/is_alive attributes!
-
use wait_all/terminate_all()
-
[SERVERS]:
- [aiohttp] (try not to use, as old)
- [FastApi] (preferred)
-
client_requests item+stack
-
[SerialClient]:
- keep all found ports in base class!
-
Serial:
- Client+Server
- connect with Type__AddressAutoAcceptVariant FIRST_FREE/FIRST_FREE__ANSWER_VALID
- set/get params by SlashOrSpacePath addressing
- handle BackSpace send manually from terminal
-
SerialServer values:
- as Callable
- ValueUnit
- ValueVariants
- list_results
-
SerialServer cmd:
- NONE is equivalent for SUCCESS
- no need params (like line_parsed as before)
- help - for show all variants (Units/Variants/Callables)!
-
Threading each monitor
-
monitor:
- website data changes (tag text/attribute)
- email received with subject (by regexp) in exact folder
-
Email/Telegram alert if:
- monitored data changed (from last state)
- html structure was changed so parsing can't be finished
- url became unreachable
-
send alert msgs:
- emails
- telegram
-
threading
-
pyqt help examples and some other useful objects (overloaded pyqt classes)
-
good template for TableView/Model/Signals
-
add Events for TM/TV/PTE/...
License
See the LICENSE file for license rights and limitations (MIT).
See the LICENSE_bundled.md file for parent licenses.
Release history
See the HISTORY.md file for release history.
Installation
pip install base-aux
Import
from base_aux import *
USAGE EXAMPLES
See tests, sourcecode and docstrings for other examples.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file base_aux-0.0.16.tar.gz
.
File metadata
- Download URL: base_aux-0.0.16.tar.gz
- Upload date:
- Size: 196.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6749c8faa86cf36949b171a2946891ac963f9156f6357abe9b3c7ee06ae7745 |
|
MD5 | 8a912a03d25043aef7da6910c96a2141 |
|
BLAKE2b-256 | 20d50ab301eaea83576c3ba4c6791790de80733d9b75cafe2e1dada11a094ab1 |
File details
Details for the file base_aux-0.0.16-py3-none-any.whl
.
File metadata
- Download URL: base_aux-0.0.16-py3-none-any.whl
- Upload date:
- Size: 244.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4130990b66aa3b95883897d6797e379823a595b46cebafa642678018aeb65af |
|
MD5 | 34da27638b358dd0b828037152a8edbf |
|
BLAKE2b-256 | 79b20f7ae538f4b0b8b02eb7b904e021df63a7eb4298d4761c1c51c613040aae |