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.7.tar.gz
(110.4 kB
view details)
Built Distribution
jammy-0.1.7-py3-none-any.whl
(158.1 kB
view details)
File details
Details for the file jammy-0.1.7.tar.gz
.
File metadata
- Download URL: jammy-0.1.7.tar.gz
- Upload date:
- Size: 110.4 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 | 57df1d6c19c78c526d6b07034c93358904753e27b516c1df309c3952e0b6bb7d |
|
MD5 | e2a6d67db0c94262013f52c84940c7d2 |
|
BLAKE2b-256 | 5da3481c2d4c4d4b145a3f028f17d897b01d8d22f6d8852a07bccf5a5bbe3e6b |
Provenance
File details
Details for the file jammy-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.7-py3-none-any.whl
- Upload date:
- Size: 158.1 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 | cb261baf991d79eb0db9d77cf80e25d27adefd3fae6a5c0b6cf502d71bee9d32 |
|
MD5 | 8a3689bf6cf5fc0a9b745d692799d98a |
|
BLAKE2b-256 | cd25da9e736fb8b397c6ff101015c17180d79d5a2e1c91a4a7da93d4ffbfa3e3 |