| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains example scripts demonstrating how to use the DataSpace Python SDK.
Install the SDK:
pip install dataspace-sdk
# or for development
pip install -e ..Get a Keycloak token from your DataSpace instance
Update the examples with:
Demonstrates basic SDK operations:
Run:
python basic_usage.pyShows how to work with organization-specific resources:
Run:
python organization_resources.pyDemonstrates advanced search capabilities:
Run:
python advanced_search.pyShows proper error handling:
Run:
python error_handling.pyBefore running the examples, update these variables:
# API base URL
base_url = "https://api.dataspace.example.com"
# Your Keycloak token
keycloak_token = "your_keycloak_token_here"
# Resource IDs (for get_by_id operations)
dataset_id = "your-dataset-uuid"
model_id = "your-model-uuid"
usecase_id = 123 # Use case IDIf you get authentication errors:
If you can't connect to the API:
If resources are not found:
| Back | FazBrowse Home | New Git URL |