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
Camunda DMN
- Wrapper to query Camunda DMN for initial offer (strategies)
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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baab2b02dc18c76a99e22e00c3a93720cac62d613fbdf4e5e1d557fd0c0bdf7e |
|
MD5 | 4a83e3059645c756a65820125c1b1636 |
|
BLAKE2b-256 | a5a77fda95de47db871a290c9189448ba84f00d2e3813e734f92a1ed37b40631 |
Hashes for vavacars_data_utils-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3551e956e55194ad89f807546f13a12f9adb0341962254e9a42e81b2cfb6240 |
|
MD5 | daa2620dfa5825ecefc1152a85ce23db |
|
BLAKE2b-256 | 302ae8fda6e24733fe89eb067b4ca8634d87628e9face1a4770111fcd0ff50bb |