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.

Files for uzautoprom, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size uzautoprom-1.0-py3-none-any.whl (5.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size uzautoprom-1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page