Metadata-Version: 2.4
Name: jyrkio-coscine-tabular-data
Version: 0.1.6
Summary: Tools for fetching tabular data from Coscine
Author: Jyrki Oraskari
License: MIT
Keywords: coscine,tabular,data
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file


# 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/  
