Package with utils
Project description
Vavacars
Vavacars utils library.
Installation
To use the library, simply install it with pip or add into requirements.txt
python3 -m pip install --upgrade vavacars_data_utils
Usage
The library includes a series of common utilities we are using in Vavacars
SIQ
- Wrapper to get quotations from SIQ
- Helper_v2 adds querying Redis Cache before asking SmartIQ
Camunda DMN
- Wrapper to query Camunda DMN for initial offer (strategies)
MySQL
- Wrapper to run querys against a MySQL server
Azure Helper
- Wrapper to around Azure ML SDK for registering and reploying models
Turkey specifics:
- turkish_to_datetime(str): Date conversion from turkish dates
Other:
- get_best_match(value, list_values): Find closest string in a list (used for bodytypes, trimlevels, ...)
- deep_get(dictionary, nested_keyss)
- return_on_failure(f,v): Run function f and return v if f yields any exception in other case it will retun f() result
- extract_json_objects(t): Look Json objects in the text t
Building
First, update at least the version number in setup.cfg
Next, install build package in your environment:
python3 -m pip install --upgrade build
Then you can run python3 -m build
to generate the distribution, this will generate the distribution files under dist/ folder. Check the folder as it may contain the files from the previous build.
Publishing
To publish it we are using twine, so first install it:
python3 -m pip install --upgrade twine
And then you can publish it running (from this folder), it will ask you for credentials in the registry:
twine upload -r pypi dist/*
For more details, check: https://packaging.python.org/en/latest/tutorials/packaging-projects/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for vavacars_data_utils-0.0.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd94facb128e104fb51bba9d5b8db38f97ab3a3eb08ed8b1fd37aa8febf2a4e |
|
MD5 | 8739b61dc50af6cc9447b28c18f70b04 |
|
BLAKE2b-256 | 92e94516e27845e3cff289bd68814cecf1ee378ee7be1e44625be84203df71e6 |
Hashes for vavacars_data_utils-0.0.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c6644d0c0f565e391c73253a347f07f555473f7200c6aeefb8db5c523fd12f9 |
|
MD5 | ce17601459be09de1f8677b226f9b171 |
|
BLAKE2b-256 | 32a3b8d58a67b9904741cf9cf5b2c8c2a9a11505ed5b23db1ca63d9e2d53d41a |