Skip to main content
logo

pyfairdatatools

Python package for the FAIR tools of fairhub.io


contributors stars open issues license Curated with FAIRshare

Unix Build Status Windows Build Status Coverage Status Scrutinizer Code Quality PyPI License PyPI Version PyPI Downloads

Documentation · Changelog · Report Bug · Request Feature



Description

pyfairdatatools is a Python package that includes functions of fairhub.io for making data FAIR. This consists of a collection of helpful functions for extracting, transforming raw data, generating relevant metadata files and validating the data and metadata files against the FAIR guidelines adopted by the AI-READI project. Beside supporting fairhub.io, our aim is that the package can be used by anyone wanting to make their data FAIR according to the AI-READI FAIR guidelines.

Getting started

Prerequisites/Dependencies

You will need the following installed on your system:

Installing

Install it directly into an activated virtual environment:

pip install pyfairdatatools

or add it to your Poetry project:

poetry add pyfairdatatools

Usage

After installation, the package can be imported:

$ python
>>> import pyfairdatatools
>>> pyfairdatatools.__version__

Inputs and Outputs

The input of most functions will be a json format schema (see "Standards followed" sections) that contain data and metadata related information. The outputs of most functions will be standards metadata files, structured data, etc.

Standards followed

This software is being developed following the Software Development Best Practices of the AI-READI Project, which include following the FAIR-BioRS guidelines. Amongs other, we are following closely the PEP 8 Style Guide for Python Code.

The input structure of the function is currently being developed but anticipated to follow existing schemas such as schema.org and bioschemas.org.

Contributing

Contributions are always welcome!

If you are interested in reporting/fixing issues and contributing directly to the code base, please see CONTRIBUTING.md for more information on what we're looking for and how to get started.

Issues and Feedback

To report any issues with the software, suggest improvements, or request a new feature, please open a new issue via the Issues tab. Provide adequate information (operating system, steps leading to error, screenshots) so we can help you efficiently.

Setup

If you would like to update the package, please follow the instructions below.

  1. Create a local virtual environment and activate it:

    python -m venv .venv
    source .venv/bin/activate
    

    If you are using Anaconda, you can create a virtual environment with:

    conda create -n pyfairdatatools-env python
    conda activate pyfairdatatools-env
    
  2. Install the dependencies for this package. We use Poetry to manage the dependencies:

    pip install poetry==1.3.2
    poetry install
    

    You can also use version 1.2.0 of Poetry, but you will need to run poetry lock after installing the dependencies.

  3. Add your modifications and run the tests. You can also use the command poe test for running the tests.

    poetry run pytest
    

    If you need to add new python packages, you can use Poetry to add them:

     poetry add <package-name>
    
  4. Format the code:

    poe format
    
  5. Check the code quality:

    poetry run flake8 pyfairdatatools tests
    
  6. Run the tests and check the code coverage:

    poe test
    poe test --cov=pyfairdatatools
    
  7. Build the package:

    Update the version number in pyproject.toml and pyfairdatatools/__init__.py and then run:

    poetry build
    
  8. Publish the package:

    poetry publish
    

    Set your API token for PyPI in your environment variables:

    poetry config pypi-token.pypi your-api-token
    

License

This work is licensed under MIT. See LICENSE for more information.

How to cite

If you are using this package or reusing the source code from this repository for any purpose, please cite:

    Coming soon...

Acknowledgements

This project is funded by the NIH under award number 1OT2OD032644. The content is solely the responsibility of the authors and does not necessarily represent the official views of the NIH.

Add any other acknowledgements here.




Metadata

Release files for pyfairdatatools 1.0.3

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

Source distribution (sdist)

Source distribution for pyfairdatatools 1.0.3
File Size Uploaded
pyfairdatatools-1.0.3.tar.gz 88.9 kB Details

Built distribution (wheel)

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

Total release size: 185.3 kB

Release files / pyfairdatatools-1.0.3.tar.gz

Download URL pyfairdatatools-1.0.3.tar.gz
Size 88.9 kB
Tags Source
SHA-256 checksum
How to use checksums
98fff779b688f175523a51f9b968fd9857b141a6f5e790b8030f16aedbdd1b9f
BLAKE2b-256 checksum
How to use checksums
e11c6696a2fa1aec5634de0469115d536d5ad9114cc6ab89f51027c9e3691f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.11.14 Linux/6.11.0-1018-azure

Release files / pyfairdatatools-1.0.3-py3-none-any.whl

Download URL pyfairdatatools-1.0.3-py3-none-any.whl
Size 96.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e406d9d7b32d8c880e4db5545c567fa1fb50ce6a7039184efcc9379c8c82712
BLAKE2b-256 checksum
How to use checksums
f3c244c973d1d7c8647c815e120e6938944d7e471c1483035f14826bfea386c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.11.14 Linux/6.11.0-1018-azure
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