Skip to main content

Kaviar

Documentation Latest Version Wheel Available Python versions MIT License

Simplified event and data formatting and logging.

Kaviar aids developers in need of a convenient way to produce structured representation of key-value pairs for logging or representation with a fixed syntax suit suited for later evaluation or just aesthetic reasons.

Example

Logging a certain event:

import logging
from kaviar import EventKvLoggerAdapter

logging.basicConfig(level=logging.DEBUG)
logger = EventKvLoggerAdapter.get_logger(__name__)
logger.info('NEW_CLIENT', client_id=42, peer_name='93.184.216.119')

Separating the event definition from actual logging:

import logging
from functools import partial
from kaviar import EventKvLoggerAdapter

logging.basicConfig(level=logging.DEBUG)
logger = EventKvLoggerAdapter.get_logger(__name__)

log_event = partial(logger.define_logger_func(logging.INFO,
                                              'server peer_name'),
                    'NEW_CLIENT')

log_event('example.org', '93.184.216.164')

Metadata

Release files for kaviar 1.0

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

Source distribution (sdist)

Source distribution for kaviar 1.0
File Size Uploaded Provenance Actions
kaviar-1.0.zip 22.3 kB Without provenance Details for kaviar-1.0.zip

Built distribution (wheel)

Table of built distributions (wheels) for kaviar 1.0
File Interpreter ABI Platform Actions
kaviar-1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for kaviar-1.0-py2.py3-none-any.whl

Total release size: 33.8 kB

Release files / kaviar-1.0.zip

Download URL kaviar-1.0.zip
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e97ae8a842161488664909bd25eb356b29eb7938d51768de036b452d50e7230f
BLAKE2b-256 checksum
How to use checksums
a40c0df8f30a309ad359990aa96e3fe98670b13e916f317a080b9c470d82ec0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / kaviar-1.0-py2.py3-none-any.whl

Download URL kaviar-1.0-py2.py3-none-any.whl
Size 11.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7a9abe1cb48a2ac5d6e8e364e4672cc18a49cbec9cddadc697268d30f308e499
BLAKE2b-256 checksum
How to use checksums
1d67ecf4df0eebb55101dd86ecbe68088a197ed1de36b3f0ef21c3c41ae1d053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for kaviar 1.0

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

1.0 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