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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0db5351c991b86a2814f797640cb68a961548aa2129e0dca759c1e754a8d0e1 |
|
MD5 | e25595c50682439c7a88928eb3970bc7 |
|
BLAKE2b-256 | 100cdd022c72cd2cf8d4f4fa8e3b2d9d60d9956509df28ef74d107400a75c0bc |
Hashes for vavacars_data_utils-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7acb5e514596f59cdcf1c9d1b5764801ee65da723dce52cfbbeb7da378c27dec |
|
MD5 | 5cfb788aa7a0ac3aa7c423c050f72787 |
|
BLAKE2b-256 | 82e469124d8ec0ee5792b6438cf8eab4dd0a91b51d3cc30bb06017cea7e2cb3e |