Skip to main content

Personal ToolBox

Project description

Jammy (Jam)

PyPI PyPI - License GitHub code GitLab code Read the Docs PyPI - Python Version Code style: black

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")
$ jam-inspect-file foo.pkl
> python3
[ins] print(f1)
# content of foo.pkl

Advanced Usage

Etymology

MICS

  • The package and framework are inspired from Jacinle by vacancy, from which I learn and take utility functions shamelessly.

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.7a2.tar.gz (100.3 kB view details)

Uploaded Source

Built Distribution

jammy-0.0.7a2-py3-none-any.whl (141.6 kB view details)

Uploaded Python 3

File details

Details for the file jammy-0.0.7a2.tar.gz.

File metadata

  • Download URL: jammy-0.0.7a2.tar.gz
  • Upload date:
  • Size: 100.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic

File hashes

Hashes for jammy-0.0.7a2.tar.gz
Algorithm Hash digest
SHA256 15555339a0609bf2db26edc08145ff184e51b3fe4cdd8d17b39c71b1a3635998
MD5 725b1d3c929234ebccad70a0838d5c4b
BLAKE2b-256 295a573286fec41b688b824d96e94bd5c01b178628d4503e8b9a96832d57f41f

See more details on using hashes here.

Provenance

File details

Details for the file jammy-0.0.7a2-py3-none-any.whl.

File metadata

  • Download URL: jammy-0.0.7a2-py3-none-any.whl
  • Upload date:
  • Size: 141.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic

File hashes

Hashes for jammy-0.0.7a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d77c496b219464faa625742bf4445a7cf92fd03cf78f21843ddb924ae1ee6800
MD5 63e4f471cee6ca10284c54cc723a26df
BLAKE2b-256 f33a7109b2efbe3f048c9470c58c521838347d3dd11c5d79fd8c434fd9aa7df7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page