uzautoprom

Simple contracts loader with storage and filtering functionality for official UzAuto dealers.


Keywords
dealer, python, python3, requests
License
MIT
Install
pip install uzautoprom==1.4

Documentation

What's it?

It is a simple contracts loader with storage and filtering functionality for official UzAuto dealers.

Basic use case

from uzautoprom import InMemoryDB, RLoader, FullMatchField

import local_settings


db = InMemoryDB(
  RLoader(local_settings.LOGIN, local_settings.PASSWORD).contracts()
)

spark_contracts = db.contracts(
  FullMatchField("Модель", "SPARK")
)
print(spark_contracts)

About

uzautoprom produce 3 abstract classes:

  • Field — representation of contract field used for flexible filtering
  • Database — storage and filter contracts
  • Loader — contracts loader

Built-in realizations:

Install

pip install uzautoprom