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)
MySQL
- Wrapper to run querys against a MySQL server
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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4229c552440d589cf15864a12c768257fd3f0ec260e12c01e019f6522eaea3bb |
|
MD5 | 5fe45585e1ca733a44b5348e2501f8dd |
|
BLAKE2b-256 | 8eaae7b7592c42872bd340e4b80a0531a441ae3c3a93317ba1695b497fb20248 |
Hashes for vavacars_data_utils-0.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a028f67e1c6fc0d3f657f37136c195a9284ab1ec9f608f709518b3da48ee81 |
|
MD5 | 00f22a16e02a736aeb0f179d3d229d8f |
|
BLAKE2b-256 | 3632fe0d50cbc40f09ba774ea463555c86d76c7fa93e8cfebfa7ed32535e834b |