Simple contracts loader with storage and filtering functionality for official UzAuto dealers.
Project description
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, CField
import local_settings
db = InMemoryDB(
RLoader(local_settings.LOGIN, local_settings.PASSWORD).contracts()
)
spark_contracts = db.contracts(
CField("Модель", "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 — load contracts
Built-in realizations:
- RLoader - based on requests sessions loader
- CField - simple implementation of Field abc.
- InMemoryDB - 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.3.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
uzautoprom-1.3-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file uzautoprom-1.3.tar.gz.
File metadata
- Download URL: uzautoprom-1.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd1b80a18e83a8947c435ee769b454c2e4c2d99b36021f29a4efb999a1652481
|
|
| MD5 |
a8504bf26f274125244e8657b889817f
|
|
| BLAKE2b-256 |
644cb66529f77acc6c95b2f80a1491e756940174e7b2c0885ad2baf04fabf10e
|
File details
Details for the file uzautoprom-1.3-py3-none-any.whl.
File metadata
- Download URL: uzautoprom-1.3-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a46040701b8de18e8a02c905ab3571efa6bbe7856d22ff800020a3b99dd0b7
|
|
| MD5 |
67f5c4a3c35fd5b80fc0bd14e2259680
|
|
| BLAKE2b-256 |
5a85feb513d2f39fa4a71e2ef4cc1e83d9a1407d870fe4e83b6e5d5e3cc8ab2d
|