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.21.tar.gz
(111.2 kB
view details)
Built Distribution
jammy-0.1.21-py3-none-any.whl
(158.7 kB
view details)
File details
Details for the file jammy-0.1.21.tar.gz
.
File metadata
- Download URL: jammy-0.1.21.tar.gz
- Upload date:
- Size: 111.2 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 | d216136b9cc06f35bece0baa89fbd21cf1d67a7b35694787eb1cc858976e5032 |
|
MD5 | 114a154b42451fc1044632d67c827f64 |
|
BLAKE2b-256 | 2beed5bb49a849cc55c09389ecc022fd7b41959b192853c7cc086a7bd0b0ef4c |
Provenance
File details
Details for the file jammy-0.1.21-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.21-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 | 167f43c6a2a972a43b43663da28c4041b1621614d3ceede29de4d7abbe1a6042 |
|
MD5 | ef3413147a4526ad126a1fae74f214e5 |
|
BLAKE2b-256 | 3101e33ec62be2101f12067e91d86463118e935b7a51a97e074076de36662e51 |