Skip to main content

Package with utils

Project description


Vavacars utils library.


To use the library, simply install it with pip or add into requirements.txt

python3 -m pip install --upgrade vavacars_data_utils


The library includes a series of common utilities we are using in Vavacars


  • 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)


  • 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 | 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


  • 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


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.


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:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vavacars_data_utils-0.0.52.tar.gz (19.5 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page