Personal 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.9a0.tar.gz
(111.1 kB
view details)
Built Distribution
jammy-0.0.9a0-py3-none-any.whl
(154.2 kB
view details)
File details
Details for the file jammy-0.0.9a0.tar.gz
.
File metadata
- Download URL: jammy-0.0.9a0.tar.gz
- Upload date:
- Size: 111.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2d2e1c2805d7f7ad329cde4cb1b08a6386004aa592e1086e4571db2eadd7ec |
|
MD5 | 51003539d32775b34fca662f0503aa02 |
|
BLAKE2b-256 | 8230b4b2b2911c4cb66690d64ac9ee3eedd1e7874baf42f66af7c655b2ea2355 |
Provenance
File details
Details for the file jammy-0.0.9a0-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.9a0-py3-none-any.whl
- Upload date:
- Size: 154.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dcc38ce4f55e1dbce7d975ae48181396ee6b197aefd0c3688e73054934f5fd7 |
|
MD5 | 92dfa940fe4431f18c84f9f1ff0b10ea |
|
BLAKE2b-256 | d2a88952edbcfa0dce30bd453029547239b013d99acdc7aeab420eac5e9792ed |