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.20.tar.gz
(111.2 kB
view details)
Built Distribution
jammy-0.1.20-py3-none-any.whl
(158.7 kB
view details)
File details
Details for the file jammy-0.1.20.tar.gz
.
File metadata
- Download URL: jammy-0.1.20.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 | f5795bdd93cb53ca1b0666c907ff55fe93f5f35c2483bed62c42c129d1b1dd55 |
|
MD5 | 74a86acecac5c14e0d084360ab8526c5 |
|
BLAKE2b-256 | 8da58eade9523e5c38f9a9a69ef4a93c93f3b19d026922c8b562555429efb9fc |
Provenance
File details
Details for the file jammy-0.1.20-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.20-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 | 510a46de4f0be86da691a13af18e6a93b9dfcd443474a571817e6d9365c0feb9 |
|
MD5 | 5054f31938f52455e1d242175658c2f9 |
|
BLAKE2b-256 | e3361e72000b0a4f52a82d5ae217edf9cf128dc695fc08dbdac09208aa35357d |