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

Uploaded Source

Built Distribution

jammy-0.1.4-py3-none-any.whl (157.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jammy-0.1.4.tar.gz
  • Upload date:
  • Size: 110.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.16 Linux/5.4.109+

File hashes

Hashes for jammy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a9f47dec134a0e8b867dd56f1334113f79e43b0c08e08ccb80129b2c4637c3d5
MD5 65c66d74ae4ec7ee808c4ccb8a209e56
BLAKE2b-256 aff74e7be8a6c8787f723edc65a6518280fad049e63ce699704d1763e4d3c6e1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jammy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 157.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.16 Linux/5.4.109+

File hashes

Hashes for jammy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab34458fb5e0857c8786c375e3e6c4c6758c013d6152c69936702b9ecf59d81
MD5 9c7b7a0d175ea4527720e9add6b82ae5
BLAKE2b-256 8ce38fd897dac7b8ea3eb411385545322cb9a279db092ab295e5853cd77f90fe

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