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.35.tar.gz
(138.4 kB
view details)
Built Distribution
jammy-0.1.35-py3-none-any.whl
(196.3 kB
view details)
File details
Details for the file jammy-0.1.35.tar.gz
.
File metadata
- Download URL: jammy-0.1.35.tar.gz
- Upload date:
- Size: 138.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12474db56a7a864cda1f9f3434d68695e9957062861639ebb308a7369a449d82 |
|
MD5 | 166db9ef3e398d1fd5e629813c750a42 |
|
BLAKE2b-256 | 67bcb3af274890df84149858d9443dbf23b928a2c4682fa7878c394910a4f7ef |
Provenance
File details
Details for the file jammy-0.1.35-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.1.35-py3-none-any.whl
- Upload date:
- Size: 196.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920da5f18adac59d97aaad942b39cc12ceec9025c484686dd2dc5b3e412fa124 |
|
MD5 | 7bdae7561800b0a96bd4db950107a8d9 |
|
BLAKE2b-256 | 849cb0301efdc7de1eed32646c115d37aa45c25fff5bfcfc9ee6ee33e71924e8 |