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

Uploaded Source

Built Distribution

jammy-0.0.7a4-py3-none-any.whl (146.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.0.7a4.tar.gz
  • Upload date:
  • Size: 104.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.7a4.tar.gz
Algorithm Hash digest
SHA256 f83bc357835e19edbc5e7b6c6336fe49676d18bf0dfa44bd6c91b81e3dad2d7f
MD5 094e29c83cd5a0dd08c4ab9e7271ba23
BLAKE2b-256 9829485ea6bf728b214ee2e95c35e832e79336db3e66a3907021b0869bcda2da

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jammy-0.0.7a4-py3-none-any.whl
  • Upload date:
  • Size: 146.3 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.7a4-py3-none-any.whl
Algorithm Hash digest
SHA256 6262d7051354f5b6ae7dd91e35bc1b4d09c00c0136bb66c538127c1b51067ce7
MD5 094360aa7bb9855de4bd1b7329cfdc3d
BLAKE2b-256 b383577075975b1d54924543774fbc07908a215204a5e59a8d4acc62ac216354

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