Skip to main content

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

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

ds_provider_grasp_py_lib-0.1.0a1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

ds_provider_grasp_py_lib-0.1.0a1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file ds_provider_grasp_py_lib-0.1.0a1.tar.gz.

File metadata

File hashes

Hashes for ds_provider_grasp_py_lib-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 61cf38fd5350d6d30c0629ece5f77b8c4c572deabf8ec5f12f28c8e1f74837a9
MD5 df967fe0e9093f1045a4e42fe633bfd3
BLAKE2b-256 6893296797e7970830e501b74f91ef7da7e0854982c05bc7890075a50d69c441

See more details on using hashes here.

File details

Details for the file ds_provider_grasp_py_lib-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ds_provider_grasp_py_lib-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8642ee969ae444224d3b0515b2cad283405cb937d44b9e85fd9557b83079e6e0
MD5 f42a0ca6c80eb849a1f8d324275e7040
BLAKE2b-256 996cb1c7a37ee1918dedded7b6cfa18af7b321178b3d22220ebe8af97683b57a

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