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

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

Built distribution (wheel)

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

Total release size: 69.9 kB

Release files / vavacars_data_utils-1.7.2.tar.gz

Download URL vavacars_data_utils-1.7.2.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
02b1fc39e14ca1a5c274ae96f54f8e04bf65e7c3022fecacebbf2351c9674ecb
BLAKE2b-256 checksum
How to use checksums
f8a28078c75808e0de5f3985cb198ecc909be4b4693e3cbc7ac2dc7d0978dcec
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.2-py3-none-any.whl

Download URL vavacars_data_utils-1.7.2-py3-none-any.whl
Size 38.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0a2cc68b0f58c96bdc84b72ba43ca323b73de208d1fd04e0009a466914af92b
BLAKE2b-256 checksum
How to use checksums
38faa5335444cba5087243d056ee580cec282d172474789f117691b857a6460d
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.2

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