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.7a5.tar.gz
(104.2 kB
view details)
Built Distribution
jammy-0.0.7a5-py3-none-any.whl
(146.3 kB
view details)
File details
Details for the file jammy-0.0.7a5.tar.gz
.
File metadata
- Download URL: jammy-0.0.7a5.tar.gz
- Upload date:
- Size: 104.2 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 | d70ae81de406e0b03f372c710c61890fdfbd0fa6cfe75a17def4d315890ea148 |
|
MD5 | 51cfca1c2a3b2e86ef1b12e5edb0723a |
|
BLAKE2b-256 | 44260c91b0ed8dbb0fdc05631495c15e439d451e7eaf6fb262c58e44fa2b27e3 |
Provenance
File details
Details for the file jammy-0.0.7a5-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.7a5-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 | 67d7085c1c504213a55d32118e0e1eff8824130f98f90e11a01cd8844dda485d |
|
MD5 | c299fe4873c97930a3b8a69d0e5a931e |
|
BLAKE2b-256 | a82378618bcabaf845706d2ab3c91874a085a3bbb31cd7bd373b4ccaab2ffc26 |