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.5.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.5.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datashield-0.5.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.5.0.tar.gz
Algorithm Hash digest
SHA256 cbc4da0c86b848e1a3f76a074aeabb32de6d1804c3a7ceb5ed6ed9da1445021a
MD5 8b97f7a3b02251fcc51af9cb60dabf3e
BLAKE2b-256 a96bb1a25e1de4ba19f3ef02b5c8cef18f5416af1b27f125952ea0d17d1c2cc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datashield-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81e9c1ed2a82c8334f545e2c2a1fc50199bd8f8660b829f84019551b74ba7da3
MD5 28fc52e84a141e608ae3ec58e32dd9b0
BLAKE2b-256 3186d3868a8ed197cc77cf372c4ef3135222767f5e3c4e45e77a3ea5ed1352c4

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