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.24.tar.gz
(112.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
jammy-0.1.24-py3-none-any.whl
(159.6 kB
view details)
File details
Details for the file jammy-0.1.24.tar.gz.
File metadata
- Download URL: jammy-0.1.24.tar.gz
- Upload date:
- Size: 112.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/5.4.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ae32384b726f87cf7bc5aa8798790f0f0a427991e7ad6dc94d08dc8b4335d91
|
|
| MD5 |
48266fe40578d79b88bf97e23a86837c
|
|
| BLAKE2b-256 |
3f1d566f657e28139c83769b7db3def964acb1acb177ae101e361825e833a50e
|
File details
Details for the file jammy-0.1.24-py3-none-any.whl.
File metadata
- Download URL: jammy-0.1.24-py3-none-any.whl
- Upload date:
- Size: 159.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/5.4.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3cc9262fb73eb4656ee7c8b7e535f91fe126c79ba0ec9349972d6727759195b
|
|
| MD5 |
55be4056f31153613610b46c96a8c6d0
|
|
| BLAKE2b-256 |
c7b5ec417e1786e1a892f6f42c6b2270869514b41f6bfe1e11cc7b5bc007093c
|