Skip to main content

Personal 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")
$ jam-inspect-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.0.7a9.tar.gz (106.2 kB view details)

Uploaded Source

Built Distribution

jammy-0.0.7a9-py3-none-any.whl (148.4 kB view details)

Uploaded Python 3

File details

Details for the file jammy-0.0.7a9.tar.gz.

File metadata

  • Download URL: jammy-0.0.7a9.tar.gz
  • Upload date:
  • Size: 106.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic

File hashes

Hashes for jammy-0.0.7a9.tar.gz
Algorithm Hash digest
SHA256 1701203103873da209e810b0f3a78275557520dd8614e0e5eea527dd87f6965c
MD5 b83cd3c2584875199b46f0425d88c0e6
BLAKE2b-256 c863d8a9e0bdc1348757469c55f9b00a59ba844ad1699f02ccaf75542d18faa3

See more details on using hashes here.

Provenance

File details

Details for the file jammy-0.0.7a9-py3-none-any.whl.

File metadata

  • Download URL: jammy-0.0.7a9-py3-none-any.whl
  • Upload date:
  • Size: 148.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic

File hashes

Hashes for jammy-0.0.7a9-py3-none-any.whl
Algorithm Hash digest
SHA256 a9fdb92adf7c21b42744e27e4ae426b3ac2449b12fa9b6355d49b51e4baa359b
MD5 c6eec393246f215b59cc5edd31dbd2dd
BLAKE2b-256 0d692e9aeaaf657d0fafbb183fb2149d0b684d7d4bc47cc205d12f61af9b1d22

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