Common code for myself.
Project description
Python version >= 3.6
Common code for myself.
Features:
-
AppTool class
- Combine config & config_local & config_test (if --test)
- Act as dict to get config by key (connected by dot), it can be overrited by ENV variable
- logger helper (pre-configged email handler)
- Pre-configged SMTP email client
- @log annotation.
-
Utility functions
- email helper
- load & dump json
- @benchmark annotation
- OS detector
- @deprecated annotation
- get home dir
- deep merge
- Get windows folders
- string alignment for Chinese
- get dict value by key (connected by dot)
- now, today
- random_sleep
-
GetCh class
- input value for multiple platforms
TODO:
- send_email support CC.
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
chariothy-common-1.3.0.tar.gz
(12.2 kB
view details)
Built Distribution
File details
Details for the file chariothy-common-1.3.0.tar.gz
.
File metadata
- Download URL: chariothy-common-1.3.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d8e1e6f463ff7f3572a3c61dd291428ca2ae96a517441bd862dcb39e2f29a710
|
|
MD5 |
f9e59b27fa9e0a6ba56428b999f8289a
|
|
BLAKE2b-256 |
31d45d3f575900ffff98427174d4f2671012e3b455564b28a675f951a52c0338
|
File details
Details for the file chariothy_common-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: chariothy_common-1.3.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fa29788d094b03f3a83956f2d8a47e7b7c88dffe4db5cddd12bbec31c8e8d803
|
|
MD5 |
2a5ff04edef0e16734331827cd47e07c
|
|
BLAKE2b-256 |
7fc40a4f0d77b2e8377fb46a4596bedc9089b7219ca4c296b3cff923e6109593
|