Skip to main content

A Versatile 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")
$ jinspect-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.1.32.tar.gz (137.0 kB view details)

Uploaded Source

Built Distribution

jammy-0.1.32-py3-none-any.whl (194.5 kB view details)

Uploaded Python 3

File details

Details for the file jammy-0.1.32.tar.gz.

File metadata

  • Download URL: jammy-0.1.32.tar.gz
  • Upload date:
  • Size: 137.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

Hashes for jammy-0.1.32.tar.gz
Algorithm Hash digest
SHA256 a4c2977b8c0c0751e80489f64c08ded3dcd6e1258b1454c7f78cfd8667c1c24b
MD5 a01d37f1744aa80852aa038975f62819
BLAKE2b-256 7b8825342e61d661753aa579daa3ae34f67cba999f369583632160ca6190002b

See more details on using hashes here.

Provenance

File details

Details for the file jammy-0.1.32-py3-none-any.whl.

File metadata

  • Download URL: jammy-0.1.32-py3-none-any.whl
  • Upload date:
  • Size: 194.5 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

Hashes for jammy-0.1.32-py3-none-any.whl
Algorithm Hash digest
SHA256 2a518b35f3b05a39146ce8003fd567d9edbd2f2f671e7c4a7b233ef0d2a2079f
MD5 a4ff92fb4e6cbb615d4f50564ae0e9fc
BLAKE2b-256 a57deae8f7e8d327ccaf52adf02e2072158c72b5799b2a3c974205d76e3ada37

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