py-robot-template
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
- Clone the repository:
git clone https://github.com/your-username/py-robot-template.git
- Create a virtual environment using uv (Python 3.11+ required):
uv venv - (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 codetests/robot- RobotFramework test suitestests/unit- Unit tests for Python code
Contributing
Contributions are welcome! Before starting development:
- Install
uv:pip install uv
- Create a virtual environment using uv:
uv venv - Activate the virtual environment:
- On Unix/macOS:
source .venv/bin/activate
- On Windows:
.venv\Scripts\activate
- On Unix/macOS:
- Install pre-commit hooks:
pre-commit install - (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:
- Fork this repository.
- Create a new branch for your feature or fix:
git checkout -b feature/your-feature-name
- Make your changes and add tests if needed.
- Commit your changes:
git commit -am "Add your feature description"
- Push to your fork:
git push origin feature/your-feature-name
- 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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py_robot_template-0.1.1.tar.gz | 20.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.