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.9.tar.gz
(111.5 kB
view details)
Built Distribution
jammy-0.1.9-py3-none-any.whl
(159.4 kB
view details)
File details
Details for the file jammy-0.1.9.tar.gz
.
File metadata
- Download URL: jammy-0.1.9.tar.gz
- Upload date:
- Size: 111.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c60c76a047dc22ead1b6a8d7cfb466eaf94da3ae5e2bb0f8bb416a5af30ed46 |
|
MD5 | fc969f2f778a592f7b82582cfa9c43c2 |
|
BLAKE2b-256 | bf792d8d15d3e065bb7a39a673d2bbefe9d0374e7fc703f009d31eece23c6c19 |
Provenance
File details
Details for the file jammy-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.9-py3-none-any.whl
- Upload date:
- Size: 159.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28d49ef6755383c2098bd14d7eb6c9b9ea90d3c909d7aee514bf5fdec95876d3 |
|
MD5 | 3532755ab79608de09ed4e0fbeb9756c |
|
BLAKE2b-256 | 5208bb40f77982a9b48d3f9b55d86258bc611830a6cd6a4ccc77ae61c6a0b130 |