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

Uploaded Source

Built Distribution

jammy-0.1.28-py3-none-any.whl (193.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.28.tar.gz
  • Upload date:
  • Size: 135.8 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.28.tar.gz
Algorithm Hash digest
SHA256 47d18140454bfe7f499bb28410823916a08dc57c1e1f748e0908e98ff31e988f
MD5 48aa42a8cd2cf41681d0d76ee5f00456
BLAKE2b-256 84c75c348f45098378c48d583bae9421cfff35baae54ae294e906d7b2a5b61bf

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jammy-0.1.28-py3-none-any.whl
  • Upload date:
  • Size: 193.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.28-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ac0ca2a8fd8447d923d6739be614a706f9549a7e4794322c92bacfee44d95e
MD5 babc7c6b5bc5ff4a73b4098383329024
BLAKE2b-256 ac3a6cf3b521b9c3df2cebf6fad16be0f8dd71d0917629e7e29dac461b01543a

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