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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab05d1f4b7732a40fc3e70a355f1467c9287fa9bbb3c00daaa3064f0d775ad68 |
|
MD5 | e883b271b372c33b242da8f8687e315b |
|
BLAKE2b-256 | f3b90b0ff87ddf35d408395780bff3ed6b89783a5fd18128af39f42e2769ff7f |
Hashes for vavacars_data_utils-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3da4c9390e64d715db4ef739f5e947dc550c595cc88c9012571136f0c05eb8 |
|
MD5 | 2e39d93cbf28060c3f73d51ab55797df |
|
BLAKE2b-256 | 9e0dd1a6a4cde117933f142fe67ac8da49ee3949fc698d547435874fecf2105e |