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.3.0.tar.gz (50.2 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.3.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datashield-0.3.0.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.3.0.tar.gz
Algorithm Hash digest
SHA256 b98d02f920a17172895bdd13cfb14dcee92875e8a7db8909795f8d6e134dd63d
MD5 f0d40e351b4be454187b2b7eb2e71d5b
BLAKE2b-256 cb0465924c7a35a6ff6ea71d3aac6a759550f13b7d11d46a520ba6cffaee039f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datashield-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a738f4748057884b65b94a958aeafa8348f52b96747c9723b034ed10f470296
MD5 3d8f4e50559770f399accac5167d5918
BLAKE2b-256 be9f6154d588335971f279f7b4c8ea9b6ea824316efb24ead14717860749ff62

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