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
- 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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vavacars_data_utils-1.7.4.tar.gz | 31.9 kB | Without provenance | Details for vavacars_data_utils-1.7.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vavacars_data_utils-1.7.4-py3-none-any.whl | Python 3 | none | any | Details for vavacars_data_utils-1.7.4-py3-none-any.whl |
Total release size: 70.0 kB
Release files / vavacars_data_utils-1.7.4.tar.gz
| Download URL | vavacars_data_utils-1.7.4.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3436322ff105713067966cb8e39bd4ef310d1cb7e6d09731a58f1c51a7c07ae1
|
|
BLAKE2b-256 checksum How to use checksums |
68b67e4987aaedbcd3182facdfb3d3380002b2c5ff0c42723d751d2d17a8eb30
|
| 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.4-py3-none-any.whl
| Download URL | vavacars_data_utils-1.7.4-py3-none-any.whl |
|---|---|
| Size | 38.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d66e9c56e020907c88e24cfe3cdea5bb7c0592da05f1e6161dfa77418d070557
|
|
BLAKE2b-256 checksum How to use checksums |
bc7b4777f7f07f168602e5edd72e7ccbc7f03aa6fcc2e67e4ea7182d0c45edb2
|
| 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.4
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.