Skip to main content
# Example:

from active_redis import ActiveRedis, ActiveRedisModel, UUIDGenerator

class Movie(ActiveRedisModel):
stored_attrs = ['title', 'year', 'author']

def __init__(self, uuid, title, year, author):
self.uuid = uuid
self.title, self.year, self.author = title, year, author


if __name__ == '__main__':
ActiveRedis.config = {
'connexion': {'db': 3},
'namespace_prefix': 'mycinema'
}

assert Movie.delete_all()
assert 0, Movie.count()

topgun = Movie(UUIDGenerator.generate(), 'TopGun', 1987, 'Tony S.')
assert topgun.save()

titanic = Movie(UUIDGenerator.generate(), 'Titanic', 1997, 'James C.')
assert titanic.save()

topgun.update_attr('title', 'Top Gun')
assert 'Top Gun', Movie.find(topgun.uuid).title

assert 2, Movie.count()
assert 2, len(Movie.find_all())

m = Movie.find(topgun.uuid)
m.delete()

assert 1, Movie.count()
assert 1, len(Movie.find_all())

Metadata

Release files for active_redis 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for active_redis 0.0.2
File Size Uploaded Provenance Actions
active_redis-0.0.2.tar.gz 2.8 kB Without provenance Details for active_redis-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for active_redis 0.0.2
File Interpreter ABI Platform Actions
active_redis-0.0.2.macosx-10.4-x86_64.exe Details for active_redis-0.0.2.macosx-10.4-x86_64.exe

Total release size: 69.8 kB

Release files / active_redis-0.0.2.tar.gz

Download URL active_redis-0.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ed8e808c1ed73f918f1db00c0ca0f17c340d6b55b99215c0933fa8a651c488f2
BLAKE2b-256 checksum
How to use checksums
3247bd854a688472f43888b298d15dcdc7a840d33083f5a94f4537e402333e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / active_redis-0.0.2.macosx-10.4-x86_64.exe

Download URL active_redis-0.0.2.macosx-10.4-x86_64.exe
Size 67.1 kB
Tags Source
SHA-256 checksum
How to use checksums
79780b0604d60cdf53bc0bb51e73973193bc74e5ff779ed8a80d4aa6083f65bf
BLAKE2b-256 checksum
How to use checksums
0eeef2d1bf5bc92d606085a8894c1ac6a07289a1eb0fba6ea399a2f0e986e889
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for active_redis 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page