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.3

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.3
File Size Uploaded Provenance Actions
vavacars_data_utils-1.7.3.tar.gz 31.9 kB Without provenance Details for vavacars_data_utils-1.7.3.tar.gz

Built distribution (wheel)

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

Total release size: 70.0 kB

Release files / vavacars_data_utils-1.7.3.tar.gz

Download URL vavacars_data_utils-1.7.3.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3633c5537c715d9c148dc1556b165b5537d05e87c4e89af4b9955ae12dbcea09
BLAKE2b-256 checksum
How to use checksums
c925d8e3be138d06c265d8d60e3c07204198e908b6832b510f3c42d424dc636e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

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

Download URL vavacars_data_utils-1.7.3-py3-none-any.whl
Size 38.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8ee73f9692d6109787493f8c82a167b7995713264dca075600e67becd86b974
BLAKE2b-256 checksum
How to use checksums
ca2c5248f550a158bc06f080b0c6c6579df62302d3b6f532105fe203465927bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Security for vavacars-data-utils 1.7.3

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.3 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