Skip to main content

robotframework-pydantic

Robot Framework keyword library for validating data with Pydantic models and creating model objects dynamically.

Usage

*** Settings ***
Library    PydanticLibrary    models=${CURDIR}/models.py

*** Test Cases ***
Validate Model
    &{item}=    Create Dictionary    product_id=101    name=Apple    quantity=3    unit_price=0.50
    @{items}=    Create List    ${item}
    &{data}=    Create Dictionary    cart_id=1    customer_name=Alice    items=${items}
    ${cart}=    Validate ShoppingCart    ${data}

Create Object
    ${obj}=    Create ShoppingCart    cart_id=1    customer_name=Alice    items=${items}
    Log    ${obj}

Model source

models can be either:

  • a path to a Python file (/path/to/models.py)
  • a Python module import path (my_project.models)

All classes in that module inheriting from pydantic.BaseModel are exposed as dynamic Validate <ModelName> and Create <ModelName> keywords.

Run tests

# Unit/integration tests
uv run pytest

# Robot acceptance tests
uv run robot --pythonpath src tests/acceptance

Metadata

Release files for robotframework-pydantic 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robotframework-pydantic 0.1.0
File Size Uploaded
robotframework_pydantic-0.1.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-pydantic 0.1.0
File Interpreter ABI Platform
robotframework_pydantic-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / robotframework_pydantic-0.1.0.tar.gz

Download URL robotframework_pydantic-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e23935f87908c8f83190d3867ab4e6da663ef9f92f0527630980bf0646e6f4fe
BLAKE2b-256 checksum
How to use checksums
a21716f043b540fb8a224da255c47d081f1f639435d94bac6b211cc8291ca10e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Release files / robotframework_pydantic-0.1.0-py3-none-any.whl

Download URL robotframework_pydantic-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11458246bd73bea5595c6e488f347ce52906841e8c0ed625fca2d247c29f5bbb
BLAKE2b-256 checksum
How to use checksums
dd848fc500b672b9833a4aebb5cc7c547bb4ebdb2665ad7badb198dd0516e3ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page