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.7.tar.gz
(103.1 kB
view details)
Built Distribution
jammy-0.0.7-py3-none-any.whl
(146.2 kB
view details)
File details
Details for the file jammy-0.0.7.tar.gz
.
File metadata
- Download URL: jammy-0.0.7.tar.gz
- Upload date:
- Size: 103.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec495182c1ec55a0dba129194075601ba3aba242ee802742f85bd68036096225 |
|
MD5 | fd9c47328ceec8918f5cd805b08b56ee |
|
BLAKE2b-256 | a0d71f05a9bd4debab179b698c4d5b6804a232684320c2abf813e5dd7ea799fe |
Provenance
File details
Details for the file jammy-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.7-py3-none-any.whl
- Upload date:
- Size: 146.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd833bcc72940ee0a73642cf52ae2d3791cad969a2905ca1abd8ee82ee10f7e3 |
|
MD5 | 88170d4666f68458cc6e00753fc7d69a |
|
BLAKE2b-256 | 7b71392306096fe8667e38f4c4068d662ce36d63ff18cab307d1d877c4f15e1f |