Skip to main content

EUROSAT deel dataset plugin

This project implements the EUROSAT dataset plugin for the DEEL dataset manager.

A deel dataset plugin is an extension of the Dataset class defined in the DEEL dataset manager project. It allows to access to specific dataset files using the load method and other defined modes.

EUROSAT dataset plugin use the default mode pathto load EuroSAT.zip using the http protocol.

Installation

The latest release can be installed from pypi. All needed python packages will also be installed as a dependency.

pip install eurosat-dataset

Otherwize the ssh or HTTPS version should work but you will have to enter your credentials manually:

# SSH version (with proper SSH key setup):
pip install git+ssh://git@github.com:deel-ai/eurosat_dataset.git

# HTTPS version:
pip install git+https://github.com/deel-ai/eurosat_dataset.git

Note: EUROSAT dataset loading name is eurosat.

Examples of usage

Basic usage

To load EUROSAT dataset, you can simply do:

import deel.datasets

# Load the default mode of eurosat dataset:
eurosat_data_path = deel.datasets.load("eurosat")

The deel.datasets.load function is the basic entry to access the datasets. By passing with_info=True, extra information can be retrieved as a python dictionary. Information are not standardized, so each dataset may provide different ones: The mode argument can be used to load different "version" of the dataset. By default, only the path mode is available and will return the path to the local folder containing the dataset.

Command line utilities

The deel-datasets package comes with some command line utilities that can be accessed using:

python -m deel.datasets ARGS...

The --help option can be used to view the full capabilities of the command line program. By default, the program uses the configuration at $HOME/.deel/config.yml, but the -c argument can be used to specified a custom configuration file.

The following commands are available (not exhaustive):

  • list — List the available datasets. If the configuration specify a remote provider (e.g., WebDAV), this will list the datasets available remotely. To list the dataset already downloaded, you can use the --local option.
$ python -m deel.datasets list
Listing datasets at https://datasets.deel.ai:
  dataset-a: 3.0.1 [latest], 3.0.0
  dataset-b: 1.0 [latest]
  dataset-c: 1.0 [latest]
$ python -m deel.datasets list --local
Listing datasets at /local_path_to/datasets:
  dataset-a: 3.0.1 [latest], 3.0.0
  eurosat: 1.0.0 [latest]
  • download NAME[:VERSION] — Download the specified dataset. If the configuration does not specify a remote provider, this does nothing except outputing some information. The :VERSION can be omitted, in which case :latest is implied. To force the re-download of a dataset, the --force option can be used.

    Example

$ python -m deel.datasets download eurosat
Fetching eurosat...
EuroSAT.zip: 100%|██████████████████████████████████████████████████| 89.9M/89.9M [00:56<00:00, 1.67Mbytes/s]
Dataset eurosat loaded and stored at '/home/justin.plakoo/.deel/datasets/eurosat/1.0.0'.

Metadata

Release files for eurosat-dataset 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eurosat-dataset 0.0.2
File Size Uploaded
eurosat-dataset-0.0.2.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eurosat-dataset 0.0.2
File Interpreter ABI Platform
eurosat_dataset-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / eurosat-dataset-0.0.2.tar.gz

Download URL eurosat-dataset-0.0.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
abc681125804d34ebe73591859b7205807bbfbf26d8ed3f00e363c50d6cb010f
BLAKE2b-256 checksum
How to use checksums
88d25da0abf8305419e230c321d7f7874a40912da083c86c0aa219fdab53de7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / eurosat_dataset-0.0.2-py3-none-any.whl

Download URL eurosat_dataset-0.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50720423478f1ae21d4a4c703e049f5cd56013220ce0bbe200cff5f0bc00ba75
BLAKE2b-256 checksum
How to use checksums
9afad1fdbeac9addc1425b48e4d9e0fb32740590e44af5227483abecc3fda0d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page