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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614d552e1837b81fec8072f05021bbc7f0f6763d6cb05ff4e729aba5b1569716 |
|
MD5 | a404781a4799d2bbf1ea1838441b370b |
|
BLAKE2b-256 | 080478c0078055c730a152881938bbb892a27e22f735ba7c4b4803855e8e1f91 |
Hashes for vavacars_data_utils-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611af92a56becfb3fcce6b28b466df033c89625489244551bea90fdaa0f35400 |
|
MD5 | c3c17d80fd0ef2a4c43d2a6a686dc4ef |
|
BLAKE2b-256 | 77ea6f4a5fed8893c8509f4a7506dee53411e34cda5d57f60f5705211036c410 |