Skip to main content

fair-software.nl recommendations

Badges

1. Code repository

GitHub Badge

2. License

License Badge

3. Community Registry

PyPI Badge

4. Enable Citation

Zenodo Badge

Other best practices

Continuous integration

Python Build Python Publish

Documentation

Documentation Status

Anaconda package

Anaconda Package Anaconda Downloads

fairly

A package to create, publish and clone research datasets.

License: MIT

Installation

fairly requires Python 3.8 or later, and ruamel.yaml version 0.17.26 or later. It can be installed directly from PYPI or Conda-Forge.

# Using pip
pip install fairly
# using anaconda or miniconda
conda install conda-forge::fairly

Installing from source

  1. Clone or download the source code:

    git clone https://github.com/ITC-CRIB/fairly.git
  2. Go to the root directory:

    cd fairly/
  3. Compile and install using pip:

    pip install .

Usage

Python API

Basic example to create a local research dataset and deposit it to a repository using the Python API:

import fairly

# Initialize a local dataset
dataset = fairly.init_dataset('/path/dataset')

# Set metadata
dataset.metadata['license'] = 'MIT'
dataset.set_metadata(
    title='My dataset',
    keywords=['FAIR', 'research', 'data'],
    authors=[
        '0000-0002-0156-185X',
        {'name': 'John', 'surname': 'Doe'}
    ]
)

# Add data files
dataset.includes.extend([
    'README.txt',
    '*.csv',
    'train/*.jpg'
])

# Save dataset
dataset.save()

# Upload to a data repository
remote_dataset = dataset.upload('zenodo')

Basic example to access a remote dataset and store it locally:

import fairly

# Open a remote dataset
dataset = fairly.dataset('doi:10.4121/21588096.v1')

# Get dataset information
dataset.id
>>> {'id': '21588096', 'version': '1'}

dataset.url
>>> 'https://data.4tu.nl/articles/dataset/.../21588096/1'

dataset.size
>>> 33339

len(dataset.files)
>>> 6

dataset.metadata
>>> Metadata({'keywords': ['Earthquakes', 'precursor', ...], ...})

# Update metadata
dataset.metadata['keywords'] = ['Landslides', 'precursor']
dataset.save_metadata()

# Store dataset to a local directory (i.e. clone dataset)
local_dataset = dataset.store('/path/dataset')

Command Line

fairly --help

You should see the following:

Usage: fairly [OPTIONS] [COMMAND] [ARGS]...

fairly command-line tool.

Options:
-v, --version  Show the version and exit.
-h, --help     Show this message and exit.

Commands:
client      Client commands.
dataset     Dataset commands.
repository  Repository commands.

Currently, the package supports the following research data management platforms:

All research data repositories based on the listed platforms are supported.

For more details and examples, consult the package documentation.

Testing

Unit tests can be run by using pytest command in the root directory.

Contributions

Read the guidelines to know how you can be part of this open source project.

JupyterLab Extension

An extension for JupyerLab is being developed in a different repository.

Citation

Please cite this software using as follows:

Girgin, S., Garcia Alvarez, M., & Urra Llanusa, J., Fairly: a package to create, publish and clone research datasets (Version 2.0.0) [Computer software]

Acknowledgements

This research is funded by the Dutch Research Council (NWO) Open Science Fund, File No. 203.001.114.

Project members:

Release files for fairly 2.0.0

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

Source distribution (sdist)

Source distribution for fairly 2.0.0
File Size Uploaded
fairly-2.0.0.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for fairly 2.0.0
File Interpreter ABI Platform
fairly-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / fairly-2.0.0.tar.gz

Download URL fairly-2.0.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
0292751299ea1038bfafa524873cab4a8b3dc712829e4e09c5047abec846d535
BLAKE2b-256 checksum
How to use checksums
577960184bcdaa791879550adba5f658bc52c09d23daf327208ece868beac8d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Release files / fairly-2.0.0-py3-none-any.whl

Download URL fairly-2.0.0-py3-none-any.whl
Size 257.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f26b6654ab18394c94796e8024bced22f6a943a9a2c7cb7d4874312e873c749
BLAKE2b-256 checksum
How to use checksums
1fea1999306e4eceb3b586f287f8e89923ad0c8963e7f4f02be82dc9bdc429de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.1

2 release files

0.2.0

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