Personal 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")
$ jam-inspect-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.0.7b0.tar.gz
(104.3 kB
view details)
Built Distribution
jammy-0.0.7b0-py3-none-any.whl
(146.3 kB
view details)
File details
Details for the file jammy-0.0.7b0.tar.gz
.
File metadata
- Download URL: jammy-0.0.7b0.tar.gz
- Upload date:
- Size: 104.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216ca8bf0a4dfeb1efcfdd336c6288e3b3cb8123408a9e7e467706c8beee74cf |
|
MD5 | d19fed8ca73d33508eede02ffd83f14f |
|
BLAKE2b-256 | bb1a3f22d748d86aad82b7cb0ac9d8fba785b6d102584ae306f1b13f98cd558b |
Provenance
File details
Details for the file jammy-0.0.7b0-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.7b0-py3-none-any.whl
- Upload date:
- Size: 146.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01b60e8c1bcd8d8698e26c46e67f19cddabd6777c9c97045bb97d5f06a2c18d |
|
MD5 | 8a22b0d36bd5db6e548653e6688f09d4 |
|
BLAKE2b-256 | c93eb31c2e98b450d4de7edfb0240b546dffb0fe3f8fabfb11cb820c7937e2c1 |