Skip to main content

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.

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.1.tar.gz (205.2 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.1-py3-none-any.whl (581.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coscine-0.12.1.tar.gz
  • Upload date:
  • Size: 205.2 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.1.tar.gz
Algorithm Hash digest
SHA256 8d4ef927db02d7f30441c5ce18e6677e51a6f17921bd48d8bf4cb02b608825e6
MD5 c8738d583e6d912bed6849c63bf987aa
BLAKE2b-256 92c19622922076770ec8f8d5295c29f028be0d803b55a92d6b5625af06e231fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coscine-0.12.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ecf5ee21e4e31bb954798d611717b905a3845377b76f8953ec770f3e4ab475c
MD5 508c779f94e7482ccaca6121e74e34b3
BLAKE2b-256 a470754cd68c04e3fb33060bd63076afd140d618025b838ab7e17983b6d009cc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.12.2

2 files

This release

0.12.1 This release

2 files

0.12.0

2 files

0.11.13

2 files

0.11.12

2 files

0.11.11

2 files

0.11.10

2 files

0.11.9

2 files

0.11.8

2 files

0.11.7

2 files

0.11.6

2 files

0.11.5

2 files

0.11.4

2 files

0.11.3

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.7

2 files

0.10.6

2 files

0.10.5

2 files

0.10.4

2 files

0.10.3

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.5

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.4

2 files

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page