Skip to main content

Tools for fetching tabular data from Coscine

Project description

Coscine Tabular Data

pip install coscine

pip install pandas

pip install jyrkio-coscine-tabular-data

Usage:

First, create a Coscine API Token at https://coscine.rwth-aachen.de/ Set that to the environment variable of COSCINE_API_TOKEN.

Syntax

import coscine
from coscine_tabular_data import getTableFromCoscine

try:
    contents = getTableFromCoscine("<YOUR PROJECT in COSCINE>", "<FILE_NAME in COSCINE>")
    for path, dataframe in contents.items():
        print(dataframe)
except coscine.TooManyResults:
    print("Found more than 1 project with the same property!")
except coscine.NotFoundError:
    print("Failed to find a project via the property!")

Sample programming code:

import coscine
from coscine_tabular_data import getTableFromCoscine

try:
    contents = getTableFromCoscine("2026-03-21", "data-measurements.csv")
    for path, dataframe in contents.items():
        print(dataframe)
except coscine.TooManyResults:
    print("Found more than 1 project with the same property!")
except coscine.NotFoundError:
    print("Failed to find a project via the property!")

The file name should have the .CSV ending.

Expected result:

   Humidity  Temperature  Time
0        45         21.4     0
1        44         21.8     1
2        43         22.1     2

See https://nfdi4ing.de/

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

jyrkio_coscine_tabular_data-0.1.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

jyrkio_coscine_tabular_data-0.1.6-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file jyrkio_coscine_tabular_data-0.1.6.tar.gz.

File metadata

File hashes

Hashes for jyrkio_coscine_tabular_data-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3afec48951ea507c6da1b8a7f5203b24b11eba441c13f14d30a005c0c3b2189f
MD5 ab55eb19312117cd61d2af5269c35705
BLAKE2b-256 aa9e0afc02a6cfbb9bb5565489a7d50c73f6ca1e022c94027f6bb057402a4013

See more details on using hashes here.

File details

Details for the file jyrkio_coscine_tabular_data-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for jyrkio_coscine_tabular_data-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1178d43a741bc58dd130870b16cd4bb289b26e653dccfb407aa269242376cfcd
MD5 3f77e9ea6653522c16a9e4c6b1e380c1
BLAKE2b-256 47ca5a58bfaca5ffe6d065418bd976b281bd639c8118e4154505720f59379c9e

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