Skip to main content

No project description provided

Project description

PyPI version Build Status codecov GitHub Codacy Badge

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).

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 :-)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

digipathos-0.2.4.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

digipathos-0.2.4-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file digipathos-0.2.4.tar.gz.

File metadata

  • Download URL: digipathos-0.2.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for digipathos-0.2.4.tar.gz
Algorithm Hash digest
SHA256 87fafd40978ef501bdac411a282047c99c0b1b412ee4116a56307b5b7664d6e6
MD5 b072ebe5edde881de9ec9af33876bf58
BLAKE2b-256 ff2fc481edfdb2bcc4e0a9a46b4145db7de2d29dfe6e03dac897f1695fc7205f

See more details on using hashes here.

File details

Details for the file digipathos-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: digipathos-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for digipathos-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be26e1271885dec243ba892d6527ee12648f88060d3572092721d0d5b6ebb741
MD5 6ff269b7fb650297640801ff8385232f
BLAKE2b-256 d2462d82f404a8458cb4188a9a706386b27a5b87dcf959f09ff727282e0960ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page