Skip to main content

Nick's library of extraneous utils

Project description

kimegitee

niq

Available utilities:

  • Cache function calls results on disk

Installation

pip install niq

Usage

from niq import cache

@cache
def f():
    pass

By default the cache decorator saves the function result in ~/.niq and loads it if environment variable NIQ_CACHE is set to 1.

You can customize cache location with the cache_dir parameter

@cache(cache_dir='/path/to/custom/cache_dir')
def f():
    pass

Tests

Tests are available under tests/, use pytest to run them

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

niq-1.2.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

niq-1.2.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file niq-1.2.2.tar.gz.

File metadata

  • Download URL: niq-1.2.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for niq-1.2.2.tar.gz
Algorithm Hash digest
SHA256 2dc74912d8b6f9bbff7a7836752a5062d6774641e511c050266ec543f8d6da6f
MD5 de0a7c4f05ed88d2fb814dc8afce11f6
BLAKE2b-256 1f931c7faa74ea79fe9b69596d8a784ba7d8bbc7831ea935910a1cfbe0b81997

See more details on using hashes here.

File details

Details for the file niq-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: niq-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for niq-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad39e328c226fb4c15353cf3ef99b7dc970095367788cb78afe29e3f23990fef
MD5 d70d8994574e088733ca4c5a0d725374
BLAKE2b-256 7140c785200d1f2f839e462aa6c2ff9e1b2c509ee2c573c072616fef3c128ff9

See more details on using hashes here.

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