Skip to main content

Simple Interface for Redis of Object Persistence

Project description

# Sirope

Sirope es una pequeña librería que envuelve la librería cliente de [Redis para Python](https://pypi.org/project/redis/). [Redis](https://redis.io/) es un almacenamiento de pares clave-valor. Mediante el almacenamiento denominado hash, se guardan los objetos que pertenecen a una determinada clase usando JSON. Utilizado de esta forma, tenemos una base de datos [NoSql](https://es.wikipedia.org/wiki/NoSQL).

Sirope is a thin wrapper around the [Redis for Python](https://pypi.org/project/redis/) library. [Redis](https://redis.io/) is a store of key-value pairs. Employing the store type called hash, objects pertaining to a given class are saved together as JSON. Used this way, we obtain a [NoSql](https://en.wikipedia.org/wiki/NoSQL) database.

` # Save object p1 p1 = Person("Baltasar") sirope = sirope.Sirope() oid = sirope.save(p1) `

` # Retrieve object p1 sirope = sirope.Sirope() p1 = sirope.load(oid) print(restored_p1) `

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

sirope-0.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file sirope-0.1.tar.gz.

File metadata

  • Download URL: sirope-0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for sirope-0.1.tar.gz
Algorithm Hash digest
SHA256 dd016d7312160031ee792374c1fbcdc299f8f8f9517116db03a16b6eb3168e9f
MD5 c6450ab3e536d63172500addf79c7b19
BLAKE2b-256 2d3581853e471715408e181926eead08bac1337a7a0252d0e23f5d2168a3fd43

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