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 hashes)

Uploaded Source

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