The Coscine Python SDK provides a pythonic high-level interface to the Coscine REST API.
Project description
Coscine Python SDK
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coscine-0.11.13.tar.gz.
File metadata
- Download URL: coscine-0.11.13.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6615c7abf96ec5ef621b7b14033e77d970d3af401762bcbe15c7952340dc1a4d
|
|
| MD5 |
082a766889b5fc4d11886ffa6048c785
|
|
| BLAKE2b-256 |
7846bb03218dd16fbbd7ef0375b66842c8aff894037aa75c7bc465077cb9a2d8
|
File details
Details for the file coscine-0.11.13-py3-none-any.whl.
File metadata
- Download URL: coscine-0.11.13-py3-none-any.whl
- Upload date:
- Size: 44.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23da287460c355c534f5bb5ce1fd2ca068265b20c7162d99626d1d809637ccc2
|
|
| MD5 |
6b9eadf0d42e54101ab3bc769c817b53
|
|
| BLAKE2b-256 |
6035055dfce73cd5e228e46f4df2f1987950ff319bb87be279cdd9af02b8c139
|