Skip to main content

Robot Framework library for DynamoDB (LocalStack and AWS)

Project description

robot-dynamodb

Robot Framework library for DynamoDB. Works with LocalStack and AWS.

Installation

pip install robot-dynamodb

Usage

*** Settings ***
Library    robot_dynamodb.DynamoDbLibrary

Suite Setup       Connect To DynamoDB
...    endpoint_url=http://localhost:4566
...    region=sa-east-1
...    table_prefix=dev_
...    table_postfix=_v1
Suite Teardown    Disconnect From DynamoDB

Test Setup        Truncate DynamoDB Table    orders
Test Teardown     Truncate DynamoDB Table    orders

*** Test Cases ***
Pedido deve ser persistido
    Batch Write DynamoDB Items    orders    ${seed_items}
    Item Should Exist In DynamoDB    orders    {"id": "123"}

Keywords

Keyword Descrição
Connect To DynamoDB Cria conexão boto3
Disconnect From DynamoDB Limpa estado
Create DynamoDB Item Insere item (put_item)
Get DynamoDB Item Busca por chave
Update DynamoDB Item Atualiza atributos
Delete DynamoDB Item Remove por chave
Scan DynamoDB Table Lista todos os items
Query DynamoDB Table Busca por partition key
Truncate DynamoDB Table Deleta todos os items
Batch Write DynamoDB Items Insere lista de items
Item Should Exist In DynamoDB Falha se item não encontrado
Item Should Not Exist In DynamoDB Falha se item encontrado

Connect To DynamoDB Parameters

Parâmetro Default Descrição
endpoint_url URL do DynamoDB / LocalStack
region us-east-1 AWS region
table_prefix "" Prefixo do nome da tabela
table_postfix "" Sufixo do nome da tabela
aws_access_key_id test AWS / LocalStack key
aws_secret_access_key test AWS / LocalStack secret

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

robot_dynamodb-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

robot_dynamodb-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file robot_dynamodb-0.1.0.tar.gz.

File metadata

  • Download URL: robot_dynamodb-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robot_dynamodb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cdf7290bfdac5f841399baa5267f12ac8815ce2bdb1533f97233eb4e2c9e80ec
MD5 3a9308e1f2cbe15f5ae818147b2339eb
BLAKE2b-256 5b87a06a9b4219279482d4438812628d80e6be2936cdacb362372b12aafd8789

See more details on using hashes here.

Provenance

The following attestation bundles were made for robot_dynamodb-0.1.0.tar.gz:

Publisher: publish.yml on leandroluk/python-robot-dynamodb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robot_dynamodb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: robot_dynamodb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robot_dynamodb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cec5a61915d1b0af2f2ea0a2de65f0b550ec9b417da5cac470dd34c4802b8a5
MD5 ca52a75950f084712cf8df9f02e7f355
BLAKE2b-256 3f3b2e5e08428265e8702db28c843f119cd30c6d0c8291f82b39726be3d5012d

See more details on using hashes here.

Provenance

The following attestation bundles were made for robot_dynamodb-0.1.0-py3-none-any.whl:

Publisher: publish.yml on leandroluk/python-robot-dynamodb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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