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

Uploaded Source

Built Distribution

jammy-0.1.44-py3-none-any.whl (224.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.44.tar.gz
  • Upload date:
  • Size: 161.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.8.20 Linux/5.15.154+

File hashes

Hashes for jammy-0.1.44.tar.gz
Algorithm Hash digest
SHA256 985fb290e8008fd04c82107f9cbf37269b539d92dbf9a3d7a3838f3404c0d2c6
MD5 6403a40095e412fffa68abca0e2c7ea6
BLAKE2b-256 ecb4efee7d5172c9b8caa9f4e3ce11b19de75432fa721cb3a9613871d5870546

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jammy-0.1.44-py3-none-any.whl
  • Upload date:
  • Size: 224.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.8.20 Linux/5.15.154+

File hashes

Hashes for jammy-0.1.44-py3-none-any.whl
Algorithm Hash digest
SHA256 b0db3b5b6a7322eed3170d6911a28344660e8740044fcfd1c129c0a107ac5856
MD5 09447e5c07867bbf72423735626e86bc
BLAKE2b-256 01c01b7b48bce79782cb5371c5c79666e8390783aebf6545171df3f38ceecc8e

See more details on using hashes here.

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