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

Uploaded Python 3

File details

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

File metadata

  • Download URL: openirisapi-0.0.3.tar.gz
  • Upload date:
  • Size: 8.0 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.tar.gz
Algorithm Hash digest
SHA256 70e300606314ab12075b2491acf0c39f3750dd9f5cc4a777c167916fa0c9bfae
MD5 177b4cfa3f91a148dec763145403ce94
BLAKE2b-256 34092d984b903eb6ccf5b68a7778f1e238ca758724d3b3938aa31de2bcb4abb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openirisapi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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-py3-none-any.whl
Algorithm Hash digest
SHA256 fbb64d71648603f2217bfaf0f26e9696ceb6e291983a74124c49c1827e0da559
MD5 44e22fd96d6084930553a82491706054
BLAKE2b-256 c40ad590791dfa742185af4ba493eada0a59a431ba370299fbf3268d8f5e2a3d

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