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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 243061b3942bb98bc8f13a18b7f48e0e82ae6a7467b3e9e25925b53c64b109ae |
|
MD5 | a8c9c547e28caa46a8b9c1adf8de27d7 |
|
BLAKE2b-256 | 623c822fb2fca8b77d585456d49b04db7dd0475d7578bfa16afb6b78114dc6cb |
Hashes for vavacars_data_utils-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289d2bac7c79f583a138ee0cd60ea01cdf35d966ddb931e58aa987bb012c28aa |
|
MD5 | d73cba434ad69d1fb5b59ff878d47f10 |
|
BLAKE2b-256 | 88c99ab2200d17708678c17079a8f1ef2e429cd82a22b8d7cc30969b4cfa1051 |