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)
SQL
- Wrapper to run querys against a MySQL/SQL Server
- SQL Server requires Microsfot OBDC Driver to be installed, for Ubuntu 20.04 use the following comamnds:
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
apt-get update && ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive apt-get install -y mssql-tools unixodbc-dev && pip install pymssql
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.53.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03eed1eda5f72ae577176ce4fe35f8e246d6be0dc15cec30d96408997cb3f4b1 |
|
MD5 | 7644f84639e0b335cd65940b8300fc9b |
|
BLAKE2b-256 | 1c0000992c70def8cb8fa754d0ac5bada90f4937b1614abb5c5db5a1277028ba |
Hashes for vavacars_data_utils-0.0.53-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9390bc10151b7cc7f59e3c4d74a737f28ad68ac14384c4a4bff4be5ccd92945d |
|
MD5 | 5e51da63d75ac3552ca72da8c7a58eb1 |
|
BLAKE2b-256 | 1ab6688331054b38330db5bacec6bea91a0f6c78f9bef6f219d0e55af1cb1120 |