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.25.tar.gz
(111.9 kB
view details)
Built Distribution
jammy-0.1.25-py3-none-any.whl
(159.6 kB
view details)
File details
Details for the file jammy-0.1.25.tar.gz
.
File metadata
- Download URL: jammy-0.1.25.tar.gz
- Upload date:
- Size: 111.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0dbcc589dcea23fe29a0f9f63adfac1a217c3fcd2b911e9dc91a709cf98bc4 |
|
MD5 | 3169d255dc5c7c8ba0f484a5a295edfa |
|
BLAKE2b-256 | e956887afd3144ca31554d5f9a6ef0a9893de2b0b60b736ced258064222045d9 |
Provenance
File details
Details for the file jammy-0.1.25-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.25-py3-none-any.whl
- Upload date:
- Size: 159.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc3b2e537af93ca0d94b744e31d4b1150e35ab78b1aff45328fc48e0e7b2fc2 |
|
MD5 | 0467f472e83f4b7d7d587e8da47fb7da |
|
BLAKE2b-256 | ababee97f03588924a1ce2245d803f63047315d5b60eccafa89d6cf2bb6fdb43 |