Library for neccessary tools for autotech company
Project description
autotech-sdk: software development kit for autotech company
autotech-sdk is a library for common task in cloud development such as: MongoDB setup, Confluent-kafka setup.
Mongo setup example:
from autotech_sdk.database.mongo import BaseMongDB
from pymongo import IndexModel
class UserModel(BaseMongoDB):
indexes = [
IndexModel(
keys="username",
unique=True,
background=True
),
]
Confluent-kafka consumer example:
from autotech_sdk.kafka import ConfluentConsumerConfig, ConfluentConsumer
class GetInforConsumer(ConfluentConsumer):
def process_data(self, data):
print(data)
def process_data_error(self, msg, err):
pass
In short, autotech_sdk can be used to:
- MongoDB setup connection.
- Kafka setup connection.
Get It Now
$ pip install -U autotech-sdk
Requirements
- Python >= 3.9
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
autotech-sdk-1.0.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for autotech_sdk-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089b6eee37a3f6e1b2b7273b34dbb52802c1e1494080104425d17dac7405cec8 |
|
MD5 | 6ce62ee76ff052964802998065d22848 |
|
BLAKE2b-256 | 597c2f0b75251145d7dc9aa9d6f405d4df5fda4195194b6058b53e942f666de5 |