A Versatile ToolBox
Project description
Jammy (Jam)
A personal toolbox by Qsh.zh.
Usage
setup
- For core package, run
pip install jammy
- To access functions in
bin
git clone https://gitlab.com/qsh.zh/jam.git --recursive
export PATH=<path_to_jam>/bin:$PATH
# run python program
jam-run main.py
jam-crun 1 main.py # use second nvidia gpu
sample of io
import jammy.io as jio
from jamtorch.utils import as_numpy
jio.dump("ndarray.npz", np.arange(10))
jio.dump("foo.pkl", {"foo": as_numpy(torch.arange(10).cuda())})
ndarray = jio.load("ndarray.npz")
jio.load("foo.pkl")
model_dict = jio.load("checkpoint.pth")
$ jinspect-file foo.pkl
> python3
[ins] print(f1)
# content of foo.pkl
Advanced Usage
Etymology
MICS
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
jammy-0.1.8.tar.gz
(111.6 kB
view details)
Built Distribution
jammy-0.1.8-py3-none-any.whl
(159.5 kB
view details)
File details
Details for the file jammy-0.1.8.tar.gz
.
File metadata
- Download URL: jammy-0.1.8.tar.gz
- Upload date:
- Size: 111.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a31a8279bb70d0ed3acb4e69bdcecd10cd358f91baa985015dc1eb11697893 |
|
MD5 | 30a7e5a056eb117e57e18fc26d29ce7a |
|
BLAKE2b-256 | c9fb465ed333f5925034516e3985a883ef46f2d54621cb6b9d7d88aaed34c95f |
Provenance
File details
Details for the file jammy-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.8-py3-none-any.whl
- Upload date:
- Size: 159.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf552226681a5360b28feb42943721499ea9a38f25d959955176d38d0d13aa6 |
|
MD5 | dc972d2598c9589b594cb82ce52629f9 |
|
BLAKE2b-256 | e51a90b17be88fa8af9ab61f9fa36f3d62338bfd97aeb87188ca29f26e6f979f |