Skip to main content

A Python client for sciebo aka hochschulcloud.nrw

Project description

PySciebo

PySciebo is a Python client library for interfacing with sciebo, the official "Hochschulcloud NRW".

The library is not endorsed officially and should be used accordingly.

Table of Contents

1. Installation

PySciebo is available on PyPI and can be installed using pip:

pip install pysciebo

2. Usage

2.1. As a Command-Line Interface

The PySciebo command-line interface is automatically installed when installing the package via pip. Authentication works either via command-line arguments or by setting the following environment variables:

  • SCIEBO_URL
  • SCIEBO_USERNAME
  • SCIEBO_PASSWORD
# example using CLI arguments
pysciebo upload --url $URL --username $USERNAME --password $PASSWORD /remote/file/path /local/file/path

# example using environment variables
pysciebo upload /remote/file/path /local/file/path

2.2. As a Library

Using your university's sciebo URL, your username, and your password, the client works like this:

import os
from pysciebo import ScieboClient

url = os.environ["SCIEBO_URL"]
username = os.environ["SCIEBO_USERNAME"]
password = os.environ["SCIEBO_PASSWORD"]

# Login
client = ScieboClient(url, username, password)

# Upload a file to sciebo
client.upload("/sciebo/file/path", "/local/file/path")

# Download a file from sciebo (local path is optional)
client.download("/sciebo/file/path", "/local/file/path")

# Delete a file from sciebo
client.delete("/sciebo/file/path")

3. Development

The project uses pre-commit hooks using pre-commit. Follow the installation instructions to set them up properly.

New functionality should at least be covered by integration tests. The rest is optional but recommended.

4. Todo

  • Implement command-line interface
  • Extend feature list

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

pysciebo-1.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

pysciebo-1.1.0-py3-none-any.whl (4.3 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