Skip to main content

Coscine Python SDK

Project description

Coscine Python SDK

Coscine

Coscine is an integration platform for research data hosted at RWTH Aachen University.
For more information about Coscine visit the official Landing Page.

About

This python3.x package provides an SDK for interfacing with Coscine. It is maintained and developed by the community and should not be regarded as an official service of RWTH Aachen. You can use the package to integrate Coscine in your python applications and easily:

  • create, edit or delete projects and resources
  • invite and manage project members
  • upload and download files, resources and projects
  • manage your metadata

Even if you plan on using the API directly in a programming language of your choice, you might want to take a look at this module as it provides you with a handy debug mode which logs all requests and responses made in the communication with coscine. This makes it simple to understand how certain workflows should be implemented or why something in your implementation might not work.

Showcase

Here is a sneak peek of what the module is able to do.

import coscine

token: str = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
client = coscine.Client(token)

project = client.project("My Project")
print(project.name)
print(project.id)

resource = project.resource("My Project Resource")
print(resource.name)
print(resource.pid)

resource.download(path="./datascience/")

files = resource.objects()
for file in files:
	print(file.name)

Documentation

Documentation and installation instructions can be found in the src/examples directory. The sourcecode has been thoroughly documented with python DOCstrings.

Contact

To report bugs, request features or resolve questions open an issue inside of the current git repository.

To contribute code and help improve this package fork the repository and open a merge request.

License

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

The MIT License (MIT)
Copyright © 2018-2021 RWTH Aachen University

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.5.2.tar.gz (22.7 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.5.2-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coscine-0.5.2.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for coscine-0.5.2.tar.gz
Algorithm Hash digest
SHA256 aa16db701f55098f3ec9c38d88972df25382c94877fefe6c92b9452427b591bc
MD5 cf7fb5278e80c2aec2c00c9e4912a9fe
BLAKE2b-256 b66670878822113aefd3c8386de9b4d061c4c091a5e305a7c9546826473ce804

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coscine-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for coscine-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e5fbb568f2b3646ba9057b915990d60dfb3885d0097464a4a0690b7905308e1
MD5 b058bf0f76835e4b9b54c12411d9fa40
BLAKE2b-256 9f46d5cfc73aa84ce118b6a48fa19c65dd4a4eb69020de3e87d0a832eef3f3e2

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