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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba2cd3f5eb4cfa5cb917929c03936e0dd5b571a367ed41d45961b13fcd27ac7 |
|
MD5 | ce54f274f4c96ca6c4feb0a286cf7854 |
|
BLAKE2b-256 | bd608311ca60ad2143258fd5480356b8140116bc2fc9ef6358872bb466c7b9e1 |
Hashes for vavacars_data_utils-0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3fcc61a702140e99993c751c04e4a69911543376c6d83071243380af275f02e |
|
MD5 | d57d362f6af5354098c99cc980f880d9 |
|
BLAKE2b-256 | 502b610a61a9575da7fbaa1a95a179499d33fb4509dcb1c9ed2c7ebfc9356dae |