Skip to main content

DataFed CLI and API

Reason this release was yanked:

test version only

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.1.0rc16739.tar.gz (61.4 kB view details)

Uploaded Source

Built Distribution

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

datafed-3.1.0rc16739-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file datafed-3.1.0rc16739.tar.gz.

File metadata

  • Download URL: datafed-3.1.0rc16739.tar.gz
  • Upload date:
  • Size: 61.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for datafed-3.1.0rc16739.tar.gz
Algorithm Hash digest
SHA256 3ff4534cf93a95b6b22305583733f7f656a28c2dab677bb5254439cfbda601f0
MD5 895df74c3f657444e4c8f1c97f5359a3
BLAKE2b-256 66db21d5f7e0321d8ea226deb150499d5fbc2ae9219db81f567acff67683cf61

See more details on using hashes here.

File details

Details for the file datafed-3.1.0rc16739-py3-none-any.whl.

File metadata

  • Download URL: datafed-3.1.0rc16739-py3-none-any.whl
  • Upload date:
  • Size: 64.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for datafed-3.1.0rc16739-py3-none-any.whl
Algorithm Hash digest
SHA256 f454aa1aa41abb41d7a624d048739a721e2ca81596469c087eca936264cca17b
MD5 284ab0178544ee25058e50099962b91b
BLAKE2b-256 6730aa13955d4ad667aa62e08c7ef89cc9f4f773b8f2d6dccb17fd80c078ea5c

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