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.49.tar.gz (475.0 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.49-py3-none-any.whl (234.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.49.tar.gz
  • Upload date:
  • Size: 475.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jammy-0.1.49.tar.gz
Algorithm Hash digest
SHA256 ebbe07e76f6e33dc00ef3d3df44bea286e0a0bc6140a88335895be50a8f1049e
MD5 937ba90aab757eef3717dc2872fe576b
BLAKE2b-256 cc5a83f615345021583ec82162bfbe9f3d8caacb548d4fcf77619b7e5e7ba29a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jammy-0.1.49-py3-none-any.whl
  • Upload date:
  • Size: 234.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jammy-0.1.49-py3-none-any.whl
Algorithm Hash digest
SHA256 4e6d72ad5d364ea2b964c3d484fa157db9d1acec7995decfd1b4e72bed3a6d51
MD5 48784a7a2ee5cde624a5ed1c299c1163
BLAKE2b-256 9e8db871001cf6b86e7560e203d1380f05f62ff80e4a68de4314298be06fd0b4

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