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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datafed-3.0.2.tar.gz
.
File metadata
- Download URL: datafed-3.0.2.tar.gz
- Upload date:
- Size: 61.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4477adeb0f611c0738f6a1a77003a1b9952fa0b560bd442852ceea85cd14ebfe |
|
MD5 | 718221c2bdf08d8e6d685f46fb3da803 |
|
BLAKE2b-256 | 8f1bd350fce7da84a0ea4db733fcdd157f858ba3f60f20281f8a066b2515e105 |
File details
Details for the file datafed-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: datafed-3.0.2-py3-none-any.whl
- Upload date:
- Size: 64.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf1d98e1993dd924cd0c05eae95f98fe19b0a782a3d6299801b9d9049c3798b |
|
MD5 | 29a791be88c5a735237b304fadee8ebf |
|
BLAKE2b-256 | 56edcab6c3897fa259eebc0326fab7185fba996bdefa4f08e0a4812f00811f66 |