Skip to main content

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

BigQuery Helper

  • Wrapper to run queries against BigQuery

SalesForce Helper

  • Wrapper to retrieve data from SalesForce

Email

  • Wrapper to send emails via Email Communication Resource in Azure

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/

Metadata

Release files for vavacars-data-utils 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vavacars-data-utils 1.7.0
File Size Uploaded Provenance Actions
vavacars_data_utils-1.7.0.tar.gz 31.9 kB Without provenance Details for vavacars_data_utils-1.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vavacars-data-utils 1.7.0
File Interpreter ABI Platform Actions
vavacars_data_utils-1.7.0-py3-none-any.whl Python 3 none any Details for vavacars_data_utils-1.7.0-py3-none-any.whl

Total release size: 69.9 kB

Release files / vavacars_data_utils-1.7.0.tar.gz

Download URL vavacars_data_utils-1.7.0.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e0d94efdc113d5031e29788aedc384480678c1bc312805d7f71900f752a0b9a3
BLAKE2b-256 checksum
How to use checksums
691da8b34996a21d1df1438963e14a730cfcf661b3d73207f3e74cb960b9ea27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / vavacars_data_utils-1.7.0-py3-none-any.whl

Download URL vavacars_data_utils-1.7.0-py3-none-any.whl
Size 38.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
810465727318b66bd698296e175bfb1eaa1a66e05f5a457d9e51cb1447585065
BLAKE2b-256 checksum
How to use checksums
464ec38988c58ce7311a7b46d4fd704270f8a564a3213b5883dbe7ff97fc14c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for vavacars-data-utils 1.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page