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.18.tar.gz
(109.7 kB
view details)
Built Distribution
jammy-0.1.18-py3-none-any.whl
(156.7 kB
view details)
File details
Details for the file jammy-0.1.18.tar.gz
.
File metadata
- Download URL: jammy-0.1.18.tar.gz
- Upload date:
- Size: 109.7 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 | 26a506486162d5506803d727039fc8f9ba0833050054a7468ce6118ebc2122e7 |
|
MD5 | 66c04ad3024ab2f738516f661550e36a |
|
BLAKE2b-256 | 3a8d55331f421155fa05e0b61c7c5aa351c914de86cba039883e56509f62caf0 |
Provenance
File details
Details for the file jammy-0.1.18-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.18-py3-none-any.whl
- Upload date:
- Size: 156.7 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 | 531ef3ad59de7c753b17691ef2d42b1316f3200ee5b287a2f24f11d83c64df16 |
|
MD5 | 4d5a91d5bb6591847b961566f21cde81 |
|
BLAKE2b-256 | 858fc3323489a674879bcbad8f15f69f78d6f644d2482cfa6d2df3dc74b69d8f |