Skip to main content

A very basic API built upon requests for openiris.io

Project description

OpenIRIS API

Downloads

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.3.1.tar.gz (8.1 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.3.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openirisapi-0.0.3.1.tar.gz
  • Upload date:
  • Size: 8.1 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.3.1.tar.gz
Algorithm Hash digest
SHA256 f7d834ee175278928a60919f13ba1043a8c4fd7b66eda2ea3d90a2e2cfb06362
MD5 3d719a03aa6b5e867d1dfcd4baf23ba6
BLAKE2b-256 c63b09fe3866b039c3d1c57366c3511ea2024cf3466e0a820963a43440c40b48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openirisapi-0.0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c6b420df75e48307912d40278e296039e8bf356e5e058aaf4ec9d992d963cb3
MD5 8759d1a909266b7cddc5f921961ca11c
BLAKE2b-256 a7ccbf320c821c34fc159042979500e8e96a8dc7985972983e59f74039b9a72f

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