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

Uploaded Source

Built Distribution

jammy-0.1.40-py3-none-any.whl (201.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.40.tar.gz
  • Upload date:
  • Size: 142.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.19 Linux/5.4.109+

File hashes

Hashes for jammy-0.1.40.tar.gz
Algorithm Hash digest
SHA256 3ab4ed40fa990271ad2aeb73fb2645ca2eb69493e247b39cbd3117da970fca7b
MD5 a8ac0b454b0758c1d8c1387571cda50a
BLAKE2b-256 216c47239d8f2449c72ff2411c78b7fe2077c3bb305f8901884c0c0e04dd0175

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jammy-0.1.40-py3-none-any.whl
  • Upload date:
  • Size: 201.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.19 Linux/5.4.109+

File hashes

Hashes for jammy-0.1.40-py3-none-any.whl
Algorithm Hash digest
SHA256 8cebc333746013295f8600365721847f6f24a2cccdba2b060155e9ea8ed177da
MD5 e91b36d44d9a8675842943b38661ab24
BLAKE2b-256 53ced1e26f0f3c5edfb10f006bfbf82229b02a9cc103f7124123e7b3cbd25d15

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