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.38.tar.gz
(141.5 kB
view details)
Built Distribution
jammy-0.1.38-py3-none-any.whl
(200.7 kB
view details)
File details
Details for the file jammy-0.1.38.tar.gz
.
File metadata
- Download URL: jammy-0.1.38.tar.gz
- Upload date:
- Size: 141.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.19 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7cf75a7f87057490ff277fa7a69117760feb9ac47cc71128f816ae3f7fc4af1 |
|
MD5 | e14be5607e780b115405f99bc8b268a0 |
|
BLAKE2b-256 | 0800664485a5d0f163620ff6c5b8de6f774cdbaa8adc384b6bf73e0c40ac0259 |
Provenance
File details
Details for the file jammy-0.1.38-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.38-py3-none-any.whl
- Upload date:
- Size: 200.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.19 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15ddbfc4547fb72aebdefcb2a1675046586795a79263ff963a3c5fee9f5db6e0 |
|
MD5 | e7d5088959079d2395d44b77a8e5bd8c |
|
BLAKE2b-256 | 1ffbf569b70eaef41c2250b96681450cac9f6ce1c35758f21bd39f4c44f2f487 |