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
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
Hashes for vavacars_data_utils-0.0.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec963251477b6edc2a1f23252e68f50989ef787d37d47a9da9658a7e78b210f |
|
MD5 | 22fa75c4d00ab51516716d41c99556af |
|
BLAKE2b-256 | f9a4661a7727e81d351c16a86f2e423b5df814493051667938dbf891925be7e6 |
Hashes for vavacars_data_utils-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46fb5171d94f658fcab62721d264c42095592694582e148c433ef3fc7624443c |
|
MD5 | 7af9fcf411d4005e6a8492a9c7e1bde7 |
|
BLAKE2b-256 | bb7cfece86332af517e5b1f6fd6540825266e8cfb4613e1210dd4a53fa32e77c |