Skip to content

EUDAT-B2STAGE/EUDAT-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EUDAT-Library

Python library for interacting with the EUDAT environment

The goal of this library is to provide users with a programmatic access to EUDAT services. Leveraging the former Data Staging Script, it aims at supporting interactions with all EUDAT services ranging from the ingestion of new data sets, the discovery, the retrieval, to the analysis.

Warning

This projet is at an early stage of development. You should expect things not to work yet.

Requirements

globus python api - https://github.com/globusonline/transfer-api-client-python

Install with easy_install globusonline-transfer-api-client

nose - https://nose.readthedocs.org/en/latest/

Install with pip install nose

Usage example

import eudat

context = eudat.AuthUserPass('username', 'password')
# context = eudat.AuthGSI('path to certificate')

res = context.putHttp('local file')
# res = context.putGFtp('local file')
# res = context.putGFtp('source', 'destination')

datasets = context.find('Searh over meta-data')
# datasets = context.find('PID')

res = datasets.stage('LOCAL')
# res = datasets.stage('REMOTE')

ana = datasets.analytics('Destination') // create a temporary analytics environment

filtered_data = ana.filter(lamba a,b: a + b)

About

Python library for interacting with the EUDAT environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages