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.0.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for autotech_sdk-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c815834b27b89ee68eb2f7b5c89636df270ea32e3608bbf893e4ecae5c368db0 |
|
MD5 | 59e0f2b553ae21c9bc7bec67dd67f711 |
|
BLAKE2b-256 | 91da1e8f16d7b85472d9d6d056cbbd7f57d11f56521279cf165d8104a4a153a0 |