Overview
This project is aimed to serve as a wrapper for the Digipathos dataset, in order to list and download public data from plant pathologies provided by Embrapa (Brazilian Agricultural Research Corporation).
Example of pictures:
Installation
The installation is pretty simple if you have a virtualenv already installed on your machine. If you don't please rely to VirtualEnv official documentation.
pip install digipathos
Documentation
Besides the docstrings, major details about the documentation can be found here.
Testing
This project is inteded to suit most of the existent needs, so for this reason, testability is a major concern. Most of the code is heavily tested, along with Travis as Continuous Integration tool to run all the unit tests once there is a new commit.
Usage
You can use Digipathos in two different ways: via terminal or programatically.
CLI (Command-Line Interface)
This mode is highly recommended for those who are looking to explore a little bit the dataset. Here you can do the same operations from the programmatic mode, but with the advantage of being able to see all the data that is being retrieved.
digipathos
And then you're gonna be greeted by our dataset browser :-)
An example listing all the datasets:
Programmatically
data_loader = DataLoader()
# list all the datasets
datasets = data_loader.get_datasets()
# now lets give a look at the crops
crops = data_loader.get_crops()
# how about getting all the datasets from a crop?
datasets_from_crop = data_loader.get_datasets_from_crop('Pineapple')
# now let's download a random dataset
dataset_id = random.choice(list(datasets.keys()))
data_loader.download_dataset(dataset_id=dataset_id)
# download all from a given crop
data_loader.download_datasets_from_crop('Pineapple')
# download all the datasets
data_loader.download_all_datasets()
Pretty simple, huh?
A working example can be found here as a Python script.
Troubleshooting
In case of any issue with the project, or for further questions, do not hesitate to open an issue here on GitHub.
Contributions
Contributions are really welcome, so feel free to open a pull request :-)
Metadata
Release files for answer 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| answer-0.1.tar.gz | 8.7 kB | Without provenance | Details for answer-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| answer-0.1-py3-none-any.whl | Python 3 | none | any | Details for answer-0.1-py3-none-any.whl |
Total release size: 22.1 kB
Release files / answer-0.1.tar.gz
| Download URL | answer-0.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
494cc91e52dbfb38ce26876ae59d25047ae77388e84a63766fa948b32dde3540
|
|
BLAKE2b-256 checksum How to use checksums |
1199ef9bd6fa5b5d849071decc38bff396c594ca789a1e3a5796a03d137a9a1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / answer-0.1-py3-none-any.whl
| Download URL | answer-0.1-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
327ea189dc849bf9f3ed90c8d3baa528fa0a7e1ab28d5c0f577ec513b2b29cb7
|
|
BLAKE2b-256 checksum How to use checksums |
49df0e0a79fbbda56d18f49b51136213a7ec91ed4caaa8cb46923b0e54b21b34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for answer 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.