Package with utils
Project description
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vavacars_data_utils-1.5.9.tar.gz
.
File metadata
- Download URL: vavacars_data_utils-1.5.9.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
64f2430ab48383a26e9f789b36bfa02a90082cdddc1e52aba473b05f0a2b1952
|
|
MD5 |
aa268702eb20d436aeb4d5b82531fa47
|
|
BLAKE2b-256 |
40f1bf125d8e7d43b6aeb4419b620f26c82e7b4a2efefbee006d0f79b73bbc03
|
File details
Details for the file vavacars_data_utils-1.5.9-py3-none-any.whl
.
File metadata
- Download URL: vavacars_data_utils-1.5.9-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e157663ead52235a998f716307a5b430d4771659cbe8b985f7321114b9383154
|
|
MD5 |
d7a28c2fa23eb07047b73f7f43e458c7
|
|
BLAKE2b-256 |
7a36a2cd42e7cd9ef9102471c6890a7602967e6f15de41b2c9bc883594104270
|