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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f5fde3e0b61aeba9e15092a441f378a6cc8cc704881527cb7a632b2a63418e |
|
MD5 | 5fee8d5a7d38d90ed05616a49065678c |
|
BLAKE2b-256 | 337230d862e9dffa0b85fae7e8de65f41231497db5a7e259891172e945ba26f5 |
Hashes for vavacars_data_utils-0.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cfd738ed1da48093bdbc50902053e94ede3faa05f9df5d73be9982c7a728d81 |
|
MD5 | 6b1c20148e7a3283c8bbd2e99ad5ee3a |
|
BLAKE2b-256 | 78d150c1106c311a1dccd4daaba57234e683303790180a994fcf9a3dd619399c |