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
with open("file.csv", "r") as fp:
    resource.upload("file.csv", fp, 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

Contributing

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. This package is currently not actively maintained. Merge requests providing bug fixes or new features will be merged after a short review.
Critical bug fixes will be taken care of. But this package is not affiliated with the Coscine development team and entirely maintained by the open source community. Therefore, if you want to see a change, be the first to implement it or provide a description of your proposal and ask nicely if somebody else can implement it for you.

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.12.0.tar.gz (205.3 kB view details)

Uploaded Source

Built Distribution

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

coscine-0.12.0-py3-none-any.whl (581.8 kB view details)

Uploaded Python 3

File details

Details for the file coscine-0.12.0.tar.gz.

File metadata

  • Download URL: coscine-0.12.0.tar.gz
  • Upload date:
  • Size: 205.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for coscine-0.12.0.tar.gz
Algorithm Hash digest
SHA256 021dd5cf6484a5b0710f96e1c61315ef9ee5086f887801ccb7c8ac2de97d1f97
MD5 01fbf057ce30c92f208f800d8257bbb0
BLAKE2b-256 3b22600d57ce46d2c90e0d1a36b1174ba647227497052da6423f6eab068f8d05

See more details on using hashes here.

File details

Details for the file coscine-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: coscine-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 581.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for coscine-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf8c168fd60209d41645fe187a5c7f85b2a328162a905383fec9dd52bf17cb4c
MD5 8008508cb6e3a4bf23055c2415c6dfdc
BLAKE2b-256 1cfdbcbcc27647631ee69d785d0508b4fa1427e46fc6ba71ac45c9eebf7c82c5

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