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")
$ 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.0.8.tar.gz
(109.6 kB
view details)
Built Distribution
jammy-0.0.8-py3-none-any.whl
(153.9 kB
view details)
File details
Details for the file jammy-0.0.8.tar.gz
.
File metadata
- Download URL: jammy-0.0.8.tar.gz
- Upload date:
- Size: 109.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5453070f7835eee1b05569e44b948ceb0180138253732f219276cdae98f2f74 |
|
MD5 | d9d735fa4f8a085a3686a48c6dd85e5e |
|
BLAKE2b-256 | 6646da70e46acb75073a1e6ef1f0d342b966e657c9af440155f6634a584657e8 |
Provenance
File details
Details for the file jammy-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 153.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f930eb0b070604fa5054946aa18b0cd9f7e6a7e26fd4dce01dbd64b4eab60e2 |
|
MD5 | b2bdb606b7b419b9abe6bdc2e0c20928 |
|
BLAKE2b-256 | d9bf045ca3cfd6caa1a2fe094a912b33e91cc5510f7f1cc954b58312b8ee76ec |