Skip to main content

A very basic API built upon requests for openiris.io

Project description

OpenIRIS API

A simple API for openiris.io. OpenIRIS is a free platform permitting the publishing and management of resources form microscopy units.

This API was developped as part of a France BioImaging project and is offered for use to anyone in the scientific community.

At the moment, there is no REST API published by the site's developpers. This package aims to provide a functional solution that permits PROVIDER ardministration to download data directly from the website's backend.

To get your cookie you have to use the Dev tools of your browser, Network > Cookie script > Cookie. You must then format it into a python dictionary and store it in a .txt file.

Currently in Alpha, more features are scheduled to be added alongside a complete documentation.

Here's a small example of some basic usage of the library

# Import libary
import openirisapi.openirisapi as oi

# Add cookie from text file
cookie = oi.utilities.get_cookie('cookies.txt')

# Download all bookings in a specific timeframe in dataframe form
df = oi.getBookings(cookie,start='2002-03-07',end='2024-03-07')

# Download all users associated to the Provider and the groups that you administer
# and save to csv
users_df = oi.getUsers(cookies,start='2021-03-07',end='2023-03-08', to_csv=True):

# Download all resiources associated to the Provider(s) that you administer
# and skip save to csv
resources_df = oi.getAllResources(cookies, to_csv=False)

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

openirisapi-0.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openirisapi-0.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file openirisapi-0.0.2.tar.gz.

File metadata

  • Download URL: openirisapi-0.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for openirisapi-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6b499260685524e44bf3b07d7318dfd66a487440aa412c2dfd6456fb853a1879
MD5 d7c21df2e575026917ee1823a53a933d
BLAKE2b-256 53a1fb51549ae4cdcc791af9a51da60a39809e0ab436f2123f7555880baa3074

See more details on using hashes here.

File details

Details for the file openirisapi-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: openirisapi-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for openirisapi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9210df819236cc883e75d0ac3eb9d8b1991a8a193506fdf9561031bd3382f4d9
MD5 f0a37bffcb6d2662a48af4484f44b860
BLAKE2b-256 7919dabaf7e71bae7360e7e910b59f39bbfc0fb4f0827ab35bc8877fb30debdb

See more details on using hashes here.

Supported by

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