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.2.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for autotech_sdk-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e139207300d49c02edbc0eefa19750bcb91fcaa88d61e6601e0eebab1027f46 |
|
MD5 | 98311a0e7eb479739362e3b0f4f91768 |
|
BLAKE2b-256 | eb2f41e212d16d611eb3084edecdf757043c5f82b2546170bc1a7ecec374c090 |