Skip to main content

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

Project description

What's it?

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

Basic use case

from uzautoprom import InMemoryDB, SLoader, CField


db = InMemoryDB(
  SLoader("login", "password").contracts()
)

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

Special requirements

If you will use built-in loader(SLoader), you will download geckodriver and add them to PATH.

About

uzautoprom produce 3 abstract classes: Field, Database and Loader.

By default:

  • Loader - will work with network and dump contracts.
  • Database - will storage and filter contracts.
  • Field - contract field, created for flexible filtering.

Built-in classes:

  • SLoader(Loader) - use selenium and xlrd for xlsx file dumping from dealer.uzavtosanoat.uz and convert it.
  • CField(Field) - simple implementation of Field abc.
  • InMemoryDB(Database) - simple in memory database.

Install

pip install uzautoprom

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

uzautoprom-1.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

uzautoprom-1.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page