Skip to main content

DataSHIELD Client Interface in Python.

Project description

DataSHIELD Interface Python

This DataSHIELD Client Interface is a Python port of the original DataSHIELD Client Interface written in R (DSI). The provided interface can be implemented for accessing a data repository supporting the DataSHIELD infrastructure: controlled R commands to be executed on the server side are garanteeing that non disclosive information is returned to client side.

Configuration

The search path for the DataSHIELD configuration file is the following:

  1. User general location: ~/.config/datashield/config.yaml
  2. Current project specific location: ./.datashield/config.yaml

The configurations are merged: any existing entry is replaced by the new one (for instance server names must be unique).

The format of the DataSHIELD configuration file is:

servers:
  - name: server1
    url: https://opal-demo.obiba.org
    user: dsuser
    password: P@ssw0rd
  - name: server2
    url: https://opal.example.org
    token: your-access-token-here
    profile: default
  - name: server3
    url: https://study.example.org/opal
    user: dsuser
    password: P@ssw0rd
    profile: custom
    driver: datashield_opal.OpalDriver

Each server entry in the list must have:

  • name: Unique identifier for the server
  • url: The server URL
  • Authentication: Either user and password, or token (recommended)
  • profile: DataSHIELD profile name (optional, defaults to "default")
  • driver: Connection driver class name (optional, defaults to "datashield_opal.OpalDriver")

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

datashield-0.4.0.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datashield-0.4.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file datashield-0.4.0.tar.gz.

File metadata

  • Download URL: datashield-0.4.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for datashield-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f0a0c2a31432da07a090948a596b206c95bdd426ba3bb425e59f390aec67696d
MD5 df9dd0554579c955494f39a380fb6304
BLAKE2b-256 fa84156f87b5220071586a37f42bfce26ee1f7ad9e0bd52932f5bace7f780ecb

See more details on using hashes here.

File details

Details for the file datashield-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: datashield-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for datashield-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a15c675405c08143ffc31fa46867d733f2c3b74f55fa8b218c2107e38dcc7635
MD5 25d9d98d02819ca321a01458971b0718
BLAKE2b-256 d8b05d9450a98366684bd4b46a98dbe53137708cda51bd91c37cdce3157356fb

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