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.1.tar.gz
(6.3 kB
view hashes)
Built Distribution
uzautoprom-1.1-py3-none-any.whl
(14.3 kB
view hashes)