Skip to main content

Lazy Redis Log

Like print(...), but also writes to Redis Streams.

Installation

pip install lazy-redis-log

How to Use

from redis import Redis
from lazy_redis_log import LazyRedisLog

LOG = LazyRedisLog()

LOG.redis = Redis(...)
LOG.key = 'logs:example'
LOG.field = 'example'
LOG.do_console = True # Print on the console.
LOG.do_redis = True # Write to Redis.

LOG('Hello World!')

LOG(
    'Hello World!',
    redis=False, # Don't write to Redis.
)

LOG(
    'Hello World!',
    console=False, # Don't print on the console.
)

LOG(
    'Hello World!',
    field='example2'
    # Write on this field on the stream.
    # This will always write to Redis,
    # even if `do_redis` is `False`.
)

LOG(
    'Hello',
    'World!',
    LazyRedisLog,
    sep=', ',
    end=' END ',
    # Functions similarly to `print(...)`.
)

Metadata

Release files for lazy-redis-log 0.1.3

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

Source distribution (sdist)

Source distribution for lazy-redis-log 0.1.3
File Size Uploaded Provenance Actions
lazy_redis_log-0.1.3.tar.gz 1.7 kB Without provenance Details for lazy_redis_log-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lazy-redis-log 0.1.3
File Interpreter ABI Platform Actions
lazy_redis_log-0.1.3-py3-none-any.whl Python 3 none any Details for lazy_redis_log-0.1.3-py3-none-any.whl

Total release size: 4.0 kB

Release files / lazy_redis_log-0.1.3.tar.gz

Download URL lazy_redis_log-0.1.3.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4b3c22f995051b66ca1e9b7121cf155204400c5f466e954e46593e0d5cd11e14
BLAKE2b-256 checksum
How to use checksums
54f927e6c8bbdefb5c8e8c395de4f0d7afc095a12947049812321cd9a8dc2f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-100-generic

Release files / lazy_redis_log-0.1.3-py3-none-any.whl

Download URL lazy_redis_log-0.1.3-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77384bb95fa770ab75b0b307116189b841a43dbd9238cf32644428cb3c66d5b7
BLAKE2b-256 checksum
How to use checksums
75fd2a5cc34c54cca0bb580c0018dd2c6a40888f7338b21fccb4935811f3f7b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-100-generic

Security for lazy-redis-log 0.1.3

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.

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