OmniPack
A collection of commonly used Python scripts in work.
Installation
pip install omnipack
In-Python
OmniPack provides commonly used functions for quick programming. For example, it can load configuration from different kinds of files.
from omnipack import ConfigLoader
import os.path as osp
# load python file as configuration
py_sample_path = osp.join(BASE_DIR, 'data/fileio/sample.py')
py_config = ConfigLoader.from_file(py_sample_path)
# load json
json_sample_path = osp.join(BASE_DIR, 'data/fileio/sample.json')
json_config = ConfigLoader.from_file(json_sample_path)
# load yaml
yaml_sample_path = osp.join(BASE_DIR, 'data/fileio/sample.yaml')
yaml_config = ConfigLoader.from_file(yaml_sample_path)
# load python dictionary
dict_sample = dict(a=1, b=2)
dict_config = ConfigLoader.from_dict(dict_sample)
Command Line Interface
OmniPack provides many easy-to-use commands for convenience purposes. For example, to kill ghost processes triggered by the same command
omnipack kill_multiprocess "train.py"
Contributor
Li Shenggui
Metadata
Release files for omnipack 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnipack-0.0.2.tar.gz | 8.7 kB | Without provenance | Details for omnipack-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnipack-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for omnipack-0.0.2-py3-none-any.whl |
Total release size: 25.7 kB
Release files / omnipack-0.0.2.tar.gz
| Download URL | omnipack-0.0.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d370a6ecbf323f802d98cf37ac8d76eaa8128a30bd5cfa68cc6de9ec0a150f64
|
|
BLAKE2b-256 checksum How to use checksums |
654549a480c5e291420a3d0d996422c6bd950d0bd45d580f52f06477b7c76831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / omnipack-0.0.2-py3-none-any.whl
| Download URL | omnipack-0.0.2-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
682e3ac58aa5c135d0cd46c32aed193324638fec153bac5bb89ded3c88b87e09
|
|
BLAKE2b-256 checksum How to use checksums |
2f60e5a46a56e0f07576225e436e81e03a4902df301fe66623a3acf4a37469ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for omnipack 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.