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.3.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for autotech_sdk-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c99498cf67eb956d39c2e780ded44d0f08e55801faa06e651040ef312d2fc39 |
|
MD5 | 1d5fcc03febd14730a62c2f072c6b0b2 |
|
BLAKE2b-256 | d9342d012365d976405dd087c91e84515258f65ae3fc3b1f3fe2b1908cb0aa98 |