Skip to main content

The Coscine Python SDK provides a pythonic high-level interface to the Coscine REST API.

Project description

Coscine Python SDK

python-logo coscine-logo

Coscine, short for Collaborative Scientific Integration Environment, is a platform for Research Data Management. The Coscine Python SDK is an open source package that provides a high-level interface to the Coscine REST API. It enables you to automate research workflows and offers the usual functionality available in the Coscine web interface to python programmers.

Showcase

Uploading a file to a resource:

import coscine
from datetime import datetime

token = "My Coscine API token"
client = coscine.ApiClient(token)
project = client.project("My Project")
resource = project.resource("My Resource")
form = resource.metadata_form()
form["Author"] = "Dr. Akula"
form["Created"] = datetime.now()
form["DAP"] = 3.12
resource.upload("file.csv", "C:/research/file.csv", form)

Documentation

Installation instructions and an in-depth guide on using the Python SDK can be found in the online documentation. The source code itself has been heavily annotated with numpy-style DOCstrings. You can generate a local copy of the documentation using Sphinx:

py -m pip install -U requirements.txt
cd docs
set SPHINXBUILD=py -m sphinx.cmd.build
py -m sphinx.ext.apidoc -o . ../src/coscine
make html

Contact

To report bugs, request features or resolve questions open an issue inside of the current git repository. Contributions and any help on improving this package are appreciated. To contribute source code you may fork the repository and open a merge request or simply submit a short and relevant snippet or fix inside of an issue.

License

This project is Open Source Software and licensed under the terms of the MIT License.

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

coscine-0.10.0.tar.gz (34.1 kB view hashes)

Uploaded Source

Built Distribution

coscine-0.10.0-py3-none-any.whl (37.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page