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.15.tar.gz
(108.0 kB
view details)
Built Distribution
jammy-0.0.15-py3-none-any.whl
(152.4 kB
view details)
File details
Details for the file jammy-0.0.15.tar.gz
.
File metadata
- Download URL: jammy-0.0.15.tar.gz
- Upload date:
- Size: 108.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced6c35c9ff76b9da936e35a7f92f41e32d03ba107bf295db74628bb99cdf736 |
|
MD5 | 954c65251e1ae967c81c0f402e31104b |
|
BLAKE2b-256 | dcadd02045d5a9606cdff7582930aa8295e9761439eac9adbe5c91fb86e3fe0c |
Provenance
File details
Details for the file jammy-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.15-py3-none-any.whl
- Upload date:
- Size: 152.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3faa14c69f37e7c0f0850f9747c4d7e77c3926178d5211964af21c382e481247 |
|
MD5 | 7f9384d7227453eb02776b369e305436 |
|
BLAKE2b-256 | 66b2acda030b4fd2b66d81680d2dcc0019c279a932bd44595a4bd43e927872c2 |