Python package to retrieve passport data from the Vitis International Variety Catalogue (VIVC).
Project description
vivcPy 🍇
A Python library for retrieving passport data from the Vitis International Variety Catalogue (VIVC). Its goal is to strengthen the digital ecosystem and interoperability within the viticulture sector by making variety data easily accessible. The VIVC variety number serves as a unique identifier to unambiguously reference grape varieties across digital tools, and this package allows you to programmatically retrieve and integrate that data into your workflows.
Currently, only passport data is covered. However, the VIVC database contains much more data that is not yet supported. Contributions are welcome!
Installation
pip install vivcpy
[!WARNING] This library is still in early development. Breaking changes may occur between versions, so pinning to a specific version is recommended.
Usage
from vivcpy.search import PassportDataSearch, PassportDataSearchParams
from vivcpy.enums import ColorOfBerrySkin, Species
params = PassportDataSearchParams(
color_of_berry_skin=ColorOfBerrySkin.RED,
species=Species.VITIS_VINIFERA_SUBSP_SATIVA,
)
for variety in PassportDataSearch(params):
print(variety.prime_name)
Collect all results into a list:
varieties = list(PassportDataSearch(params))
Development
Install dev dependencies:
pip install -e ".[dev]"
Run tests:
python -m unittest tests
Format code:
black vivcpy tests
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vivcpy-0.4.0.tar.gz.
File metadata
- Download URL: vivcpy-0.4.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30bdb1258c1c4cb93468fb34ba24501552c9e4cfdfb88a77fda867b69dab1bfe
|
|
| MD5 |
ed3d40e3f7884e7c3e22f0eea2b872e7
|
|
| BLAKE2b-256 |
58602aee8d15c94886d7b258d1461f878b32920e6f6da89cc9c88a9358337f18
|
File details
Details for the file vivcpy-0.4.0-py3-none-any.whl.
File metadata
- Download URL: vivcpy-0.4.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b15b46d72563499197ca961e35ffcd5d35087366f61f7e96d1833df27617188b
|
|
| MD5 |
43fa830233d04af869afe5f50b488328
|
|
| BLAKE2b-256 |
4ba57b7e70810b1678eeda12a666f6509abe36e526f552866c632c05e1cf995d
|