Skip to main content

py-robot-template

Codecov CI

py-robot-template is a template project demonstrating how to create a Python package for use with RobotFramework.

Features

  • Example of building a custom RobotFramework library in Python
  • Simple test versioning approach
  • Instructions for building and using as a command-line tool
  • Uses uv for environment management

Getting Started

  1. Clone the repository:
    git clone https://github.com/your-username/py-robot-template.git
    
  2. Create a virtual environment using uv (Python 3.11+ required):
    uv venv
    
  3. (Optional) Install development dependencies:
    uv pip install -e ".[dev]"
    

Running Tests with uv

To run unit tests with coverage and generate a coverage report:

uv run coverage run --source=src/py_robot_template -m unittest discover tests/unit
uv run coverage xml

To view the coverage report in the terminal:

uv run coverage report

To run RobotFramework tests:

uv run robot tests/robot

Project Structure

  • src/py_robot_template - Python library code
  • tests/robot - RobotFramework test suites
  • tests/unit - Unit tests for Python code

Contributing

Contributions are welcome! Before starting development:

  1. Install uv:
    pip install uv
    
  2. Create a virtual environment using uv:
    uv venv
    
  3. Activate the virtual environment:
    • On Unix/macOS:
      source .venv/bin/activate
      
    • On Windows:
      .venv\Scripts\activate
      
  4. Install pre-commit hooks:
    pre-commit install
    
  5. (Optional) Run all hooks manually on all files:
    pre-commit run --all-files
    

Pre-commit will automatically check your code before every commit.

To contribute:

  1. Fork this repository.
  2. Create a new branch for your feature or fix:
    git checkout -b feature/your-feature-name
    
  3. Make your changes and add tests if needed.
  4. Commit your changes:
    git commit -am "Add your feature description"
    
  5. Push to your fork:
    git push origin feature/your-feature-name
    
  6. Open a pull request describing your changes.

Please ensure your code follows the existing style and passes all tests before submitting a pull request.

Code Style & Checks

  • To run ruff linter:
    ruff check .
    
  • To format code with ruff:
    ruff format .
    
  • To run mypy type checks:
    mypy .
    

License

This project is licensed under the MIT License.

This project supports Python 3.11 and newer. All checks are run for Python 3.11, 3.12, and 3.13 in CI.

Metadata

Release files for py-robot-template 0.1.1

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

Source distribution (sdist)

Source distribution for py-robot-template 0.1.1
File Size Uploaded Provenance
py_robot_template-0.1.1.tar.gz 20.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-robot-template 0.1.1
File Interpreter ABI Platform
py_robot_template-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / py_robot_template-0.1.1.tar.gz

Download URL py_robot_template-0.1.1.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
99e413a780041da25326b9e2b9f566ee8952021371479d524e8344cfb4592fba
BLAKE2b-256 checksum
How to use checksums
dee685dae1057f69cbcec7c6634a9c8f757d5ffd86dd3aace719d5acb394e317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 21, 2025.

Transparency log

Release files / py_robot_template-0.1.1-py3-none-any.whl

Download URL py_robot_template-0.1.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07ff2f7500e3f93741d4ad865e6ed53af912aafb61ce2c45c59109be1a1a7afd
BLAKE2b-256 checksum
How to use checksums
40d175a33ab9864223b6d1d6945061ce0e4dbfed14189dcd9120368b8d054a97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 21, 2025.

Transparency log

Security for py-robot-template 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py_robot_template-0.1.1.tar.gz

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 Oct 21, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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