Skip to main content

Crypto Kafka serialize python library

Project description

Latest Version Latest version Documentation Status https://img.shields.io/badge/license-MIT-blue.svg Tests Lint Coverage badge

kser-crypto

Kser module allow you to encrypt and decrypt messages in kafka using libsodium.

Quickstart

First, install kser-crypto using pip:

$ pip install kser-crypto[pykafka]

Examples

Make sure to have the environment variable KSER_SECRETBOX_KEY definded.

Consumer

from kser_crypto.python_kafka.consumer import CryptoConsumer

consumer = CryptoConsumer(config=dict(...), topics=[...])
consumer.run()

Producer

import time
from uuid import uuid4
from kser.schemas import Message
from kser_crypto.python_kafka.producer import CryptoProducer

producer = CryptoProducer(config=dict(...))
producer.send("test", Message(uuid=str(uuid4()), entrypoint="myTest"))
time.sleep(1)

Requirements

  • Python 3.x

  • Libsodium

Documentations

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)

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

kser_crypto-0.1.13.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kser_crypto-0.1.13-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file kser_crypto-0.1.13.tar.gz.

File metadata

  • Download URL: kser_crypto-0.1.13.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for kser_crypto-0.1.13.tar.gz
Algorithm Hash digest
SHA256 565b0cd4587173948036829cd9c4b93fd6fb691cf9f8909f866621f7778b8522
MD5 3571e52ce4837eb12b6de57cb4fe515f
BLAKE2b-256 5fb85a4b3b289eb507896a9497b02f1cffa9daa95d743d3af5cdc77ca1b3bb4f

See more details on using hashes here.

File details

Details for the file kser_crypto-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: kser_crypto-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for kser_crypto-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed46d425122d057e5556a8a9ef47451cd7dbba34d5505b0373fc492dea6484c
MD5 39f9c120e9e3a63763404ea8216a5574
BLAKE2b-256 9e923bbf5fb3c2b2b614a94864d180f9f4979c5ae30b4f3c22cbeae5852e0beb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page