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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jammy-0.1.30-py3-none-any.whl (194.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.30.tar.gz
  • Upload date:
  • Size: 136.7 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.30.tar.gz
Algorithm Hash digest
SHA256 188ad74eedcc9513573bf1f4fc732aa170852c6f69a1069eaccae9b284b546c6
MD5 4150a6b6172ffb609780a0032115f8af
BLAKE2b-256 d46165de1f6d5c9c0afbe739a25f94b649db948f43d462e881914e9117bc9d47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jammy-0.1.30-py3-none-any.whl
  • Upload date:
  • Size: 194.4 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.30-py3-none-any.whl
Algorithm Hash digest
SHA256 40f1d3c9faa64cf48ffcdab001b9236fbaf4d6dac6ac96d7d80fbc06c61a4422
MD5 711316f64e930c35a032857cf6d0084a
BLAKE2b-256 8527668c90e83a9fe6f9485d1550e7a89147b2dc6cc966b53302b5e288ca245a

See more details on using hashes here.

Supported by

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