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

Uploaded Source

Built Distribution

jammy-0.1.27-py3-none-any.whl (192.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.27.tar.gz
  • Upload date:
  • Size: 134.9 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.27.tar.gz
Algorithm Hash digest
SHA256 b62bd1082c1bec92949365fbf1c4519b84e845a859510fe32ad62d75881c5769
MD5 f74a35f9e854e3850d279a6dadd8b956
BLAKE2b-256 06b042821385486bcdb03ad032adaac07c081979561b65a785e92e527a7e8d48

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jammy-0.1.27-py3-none-any.whl
  • Upload date:
  • Size: 192.0 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.27-py3-none-any.whl
Algorithm Hash digest
SHA256 97171d6a260c840e1fd2318f21942963768233692d786fe5a5881c3de04a32f0
MD5 055a244e0972457d1399f97f90a51d00
BLAKE2b-256 6bdd8de113b9c64d02f62f0e4b637bcb89c325f65d3007c331e31a4d6b5eb888

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