Skip to main content

OmniPack

A collection of commonly used Python scripts in work.

Build Status PyPI version

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)

Source distribution for omnipack 0.0.2
File Size Uploaded
omnipack-0.0.2.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omnipack 0.0.2
File Interpreter ABI Platform
omnipack-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page