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 details)

Uploaded Source

Built Distribution

pysciebo-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pysciebo-1.1.0.tar.gz.

File metadata

  • Download URL: pysciebo-1.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.13.0-19-generic

File hashes

Hashes for pysciebo-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2d4ae7f42fe928501dd630951fedbefd27ad346ac184f5e66902e549487fdcc8
MD5 c2425385fedfe08f9d30a653f8c7217c
BLAKE2b-256 3fab942c1b526ac56310c2e4c98e181dc829d657f3161e5ef04b56ffebb00be1

See more details on using hashes here.

File details

Details for the file pysciebo-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pysciebo-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.13.0-19-generic

File hashes

Hashes for pysciebo-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e34ffe0e5df53614aa1cff2325d0b350c07ebe726328136ed78562b4c00096
MD5 c47abdfc44f8abc73f2d4931368d2dc1
BLAKE2b-256 c761d49345c98a84197a294e19760c816b088bfbe222a12e196a4d89cd54b84f

See more details on using hashes here.

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