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.22.tar.gz
(111.1 kB
view details)
Built Distribution
jammy-0.1.22-py3-none-any.whl
(158.7 kB
view details)
File details
Details for the file jammy-0.1.22.tar.gz
.
File metadata
- Download URL: jammy-0.1.22.tar.gz
- Upload date:
- Size: 111.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8a5be3dabe15de8e0f747948327a6f03b0317c806f2fcf953e726bf9a1d907 |
|
MD5 | 39454f40bccd9295f89573825013232f |
|
BLAKE2b-256 | e7436f4a23b86e4604edcf5a44c312e9afce43021eb899334d6fa8a292e6659a |
Provenance
File details
Details for the file jammy-0.1.22-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.22-py3-none-any.whl
- Upload date:
- Size: 158.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb9aa42e2f2db94d09d7ddab355d0deed6bbdaf392ec36de3cedffb5d1813d1b |
|
MD5 | 21b4280705adc8cd8b2cbd7a18cacf1b |
|
BLAKE2b-256 | 8261122caf1d067d3ddd03db7a278d0f04a74cd3d4d97e1a4aee04da22accafe |