Skip to main content

Tool classes and functions for Guiosoft projects

Project description

PY-GSTOOLS

Tool classes and functions for Guiosoft projects

CodeQL Upload Python Package PyPI PyPI - Downloads Pylint

Cache

Cache wrapper for multiple providers.

Usage:

from datetime import timedelta
from gs.cache import get_cache

cache = get_cache('memory')

#    connection string can be:
#    - memory
#    - path:/path/to/cache/directory
#    - redis://host:port/db_number

cache.set(key='key',
          value='This is an cached data', 
          ttl=timedelta(seconds=600))

value = cache.get('key')

print(value)

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

py-gstools-0.1.6.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

py_gstools-0.1.6-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

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