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

Uploaded Source

Built Distribution

jammy-0.1.12-py3-none-any.whl (159.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.12.tar.gz
  • Upload date:
  • Size: 111.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.4.109+

File hashes

Hashes for jammy-0.1.12.tar.gz
Algorithm Hash digest
SHA256 dffdaa35fad6960c5eb687fed9d74741832aa318ab20b29f6c6cb7071c707c99
MD5 4ac7d62dafbb171a03ce6d92cb753959
BLAKE2b-256 a0a5309ddc87bb52a1f9aea73063b1f342aa3c3d83a060e3cf3f8bb794e8b53e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jammy-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 159.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.4.109+

File hashes

Hashes for jammy-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5cfd1ac81b41fb6f555b84c2fbdf7d78ace95bf960b5cebf6720ef1ad60d9c2d
MD5 c71a3e0e9981712150ca69161537d299
BLAKE2b-256 3aee35e4b1a835e1da1ee9dca173fbcd923171308fb6521f439685df3bc10bee

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