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 jatorch.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")
$ jam-inspect-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.4.tar.gz
(79.9 kB
view details)
Built Distribution
jammy-0.0.4-py3-none-any.whl
(116.6 kB
view details)
File details
Details for the file jammy-0.0.4.tar.gz
.
File metadata
- Download URL: jammy-0.0.4.tar.gz
- Upload date:
- Size: 79.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a066b1a1257f88d73cc9ba295fe6cd6f8664fed90899f191e5017b5f68651ff4 |
|
MD5 | 3c5e4d357cfcb0d1a16b4ccd862f5910 |
|
BLAKE2b-256 | 87320b0c1d4179c8f71c30055af3a7a886191b8dea09a2061e2fd1ccb1b26a73 |
Provenance
File details
Details for the file jammy-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 116.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c763d9621661431eeb0aced657067cec81dd28eca42135804a6a4e9e54bad8c5 |
|
MD5 | 8432f4cd35c7da88973424931fd66643 |
|
BLAKE2b-256 | 530ebd88b0e3abedb84f104c8f0a816ba06664bd1f494437f1e46fecb63487fb |