Skip to main content

DataFed CLI and API

Project description

Description

DataFed is a federated scientific data management system developed by Oak Ridge National Laboratories to facilitate FAIR data practices within supported experimental, compute, and analytics environments. The DataFed Python package provides both a command-line-interface (CLI) and a programming API for interacting with DataFed services.

Developers

For running datafed directly from the source folder located in the DataFed GitHub repository, without running a pip install of the package. Activate the python env. This might be installed at /opt/datafed/dependencies/python/bin if you used DataFed's provided dependency install scripts with the default location.

source /opt/datafed/dependencies/python/bin/activate

Run the following from the root of the DataFed repo. The generate_datafed script will generate default settings. the ENABLE_PYTHON_CLIENT is to make sure you actually build the python client. Many other default flags may be turned on, you can disable them if needed.

The build target will "pydatafed" is needed for compiling the protobuf files to python, you will need protobuf to be installed.

NOTE - You will need to rerun this command any times changes are made to the .proto files.

./scripts/generated_datafed.sh
/opt/datafed/dependencies/bin/cmake -S. -B build -DENABLE_PYTHON_CLIENT=ON
/opt/datafed/dependencies/bin/cmake --build build --target pydatafed

Move into the python/datafed_pkg folder and then you can execute the python cli tool directly with.

PYTHON_PATH=. ./scripts/datafed

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

datafed-3.0.1b8.tar.gz (60.9 kB view details)

Uploaded Source

Built Distribution

datafed-3.0.1b8-py3-none-any.whl (64.4 kB view details)

Uploaded Python 3

File details

Details for the file datafed-3.0.1b8.tar.gz.

File metadata

  • Download URL: datafed-3.0.1b8.tar.gz
  • Upload date:
  • Size: 60.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for datafed-3.0.1b8.tar.gz
Algorithm Hash digest
SHA256 70d68cb4f267f923e454ea51cb07a0f3917dae9415f64a3defb84d9cdbd94a44
MD5 d015c0dc22058e302e8044efb192099e
BLAKE2b-256 a7c332f1dbb875bf0f870050a5102ebaa5a858d673fff43816f2cd1a1e9dadcd

See more details on using hashes here.

File details

Details for the file datafed-3.0.1b8-py3-none-any.whl.

File metadata

  • Download URL: datafed-3.0.1b8-py3-none-any.whl
  • Upload date:
  • Size: 64.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for datafed-3.0.1b8-py3-none-any.whl
Algorithm Hash digest
SHA256 c31509706301a8b9f09d5b986e62ab8678383bccb64fb3a47f22c1d2ca407034
MD5 2de3bfea1e60da8f15315573bfbed5c7
BLAKE2b-256 4827f1607c6c7a2f0b8486fa9649aa703ca750ff75a74df661c125f24c29c454

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