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.19.tar.gz
(111.2 kB
view details)
Built Distribution
jammy-0.1.19-py3-none-any.whl
(158.8 kB
view details)
File details
Details for the file jammy-0.1.19.tar.gz
.
File metadata
- Download URL: jammy-0.1.19.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 | 3e5504f2d970c1ed5eca87cef517454dda7ccf675e1efeb481f369d00b677011 |
|
MD5 | fdadff5fb3357dcafeb8664574c53fad |
|
BLAKE2b-256 | babc54bc8fbe5fa71cc9ca41bfd6ec7e70d102152b87448b6ea84c1b9b2bf220 |
Provenance
File details
Details for the file jammy-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.19-py3-none-any.whl
- Upload date:
- Size: 158.8 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 | 51059bde8b8255c994ce81f7c158c41a14e1eb1a0d84b1167ffb7ac81b64fc35 |
|
MD5 | 5088cc4ae2a6a8606d8898cc35998947 |
|
BLAKE2b-256 | aa68286f1fda3297ccb74fcc59919e0cc5c205754cf914ac267ca12f9f4c81cc |