A Python package from the DS library collection
Project description
ds-provider-grasp-py-lib
A Python package from the ds-common library collection.
Installation
Install the package using pip:
pip install ds-provider-grasp-py-lib
Or using uv (recommended):
uv pip install ds-provider-grasp-py-lib
Quick Start
from ds_provider_grasp_py_lib import __version__
print(f"ds-provider-grasp-py-lib version: {__version__}")
Features
- GRASP Provider: Provider for the GRASP platform
- AWS Provider: Provider for the AWS platform
Usage
import uuid
import logging
from os import environ
from ds_common_logger_py_lib import Logger
from ds_provider_aws_py_lib.linked_service.aws import AWSLinkedService, AWSLinkedServiceSettings
from ds_provider_grasp_py_lib.dataset.cart import GraspCartDataset, GraspCartDatasetSettings
Logger.configure(level=logging.DEBUG)
logger = Logger.get_logger(__name__)
dataset = GraspCartDataset(
id=uuid.uuid4(),
name="cart-dataset",
version="1.0.0",
linked_service=AWSLinkedService(
id=uuid.uuid4(),
name="aws-linked-service",
version="1.0.0",
settings=AWSLinkedServiceSettings(
access_key_id="****************",
access_key_secret="****************",
region="eu-north-1",
account_id="****************",
),
),
settings=GraspCartDatasetSettings(
owner_id="****************",
product_group_name="****************",
product_name="****************",
version="****************",
include_history=False,
),
)
dataset.linked_service.connect()
environ["TENANT_ID"] = "****************"
dataset.read()
logger.debug(f"Dataset: {dataset.output}")
Requirements
- Python 3.11 or higher
Documentation
Full documentation is available at:
Development
To contribute or set up a development environment:
# Clone the repository
git clone https://github.com/grasp-labs/ds-provider-grasp-py-lib.git
cd ds-provider-grasp-py-lib
# Install development dependencies
uv sync --all-extras --dev
# Run tests
make test
See the README for more information.
License
This package is licensed under the Apache License 2.0. See the LICENSE-APACHE file for details.
Support
- Issues: GitHub Issues
- Releases: GitHub Releases
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ds_provider_grasp_py_lib-0.1.0b3.tar.gz.
File metadata
- Download URL: ds_provider_grasp_py_lib-0.1.0b3.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e019bbc113420ff9ee901acf7c3c858e6a03e615605a85cbd17d08894392700e
|
|
| MD5 |
1a889b06327dff7805cff312ce503e9a
|
|
| BLAKE2b-256 |
582dc765eb8c5fd3b9b7134b4135beb9358c529e35f7c6c2ed1a25bc67e81ca3
|
File details
Details for the file ds_provider_grasp_py_lib-0.1.0b3-py3-none-any.whl.
File metadata
- Download URL: ds_provider_grasp_py_lib-0.1.0b3-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ea1c3b647efd4ffe230716b7dff5a1c5cd774faa7d7e326768e0ed9440bc0f
|
|
| MD5 |
fd08bcf7204c331900bd20d7411b5db5
|
|
| BLAKE2b-256 |
61cc41c52b38e05148811870d55cea32ada95e60fd0e4c3338aec3dc1bf1ff41
|