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.0.11.tar.gz
(107.8 kB
view details)
Built Distribution
jammy-0.0.11-py3-none-any.whl
(152.2 kB
view details)
File details
Details for the file jammy-0.0.11.tar.gz
.
File metadata
- Download URL: jammy-0.0.11.tar.gz
- Upload date:
- Size: 107.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.15 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0cfc0fa34989ccf55c40c817a363564fd2bdc429583821cbfc2658abc6d1389 |
|
MD5 | ed2913126e8c065bab2d6d6598b99b10 |
|
BLAKE2b-256 | b1d69576e5c457211d4aac79b66add7254a7ada321bd76f8cf28a8bc2121d981 |
Provenance
File details
Details for the file jammy-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.11-py3-none-any.whl
- Upload date:
- Size: 152.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.15 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e036b05b6624fa89b3aded9810303cf295ef2c3f25a4ae8fbbd0fa3c707205ac |
|
MD5 | 6d02a5b6036810b5e038763601897955 |
|
BLAKE2b-256 | 04267d2cc547dfaa87a0d44ea18561be9d23c6f1b02b5cb57c1bca8064b7900f |