Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Introduction

Requirements

Python 3.6+ and Robot Framework 3.2.1+.

Installation

You can install RobotClean simply by running:

pip install robotframework-clean

Usage

RobotClean support following modes (you can mix them):

splitting keyword(s)

robotclean –mode split –path test.robot –line 10 –end-line 10

It will split keyword(s) at given location. Example:

Keyword  ${var}  ${var2}

to:

Keyword
...    ${var}
...    ${var2}

renaming keyword(s)

robotclean –mode rename –path test.robot

It will rename keyword(s) at given location to follow Title Case. Example:

this_is_keyword
This Is Keyword
This is keyword
And also ABBREV

to:

This Is Keyword
This Is Keyword
This Is Keyword
And Also ABBREV

aligning to column(s)

robotclean –mode align –path test.robot –line 5 –end-line 10

It will align variables and keywords to column like appearance. Example:

${var}  Keyword  ${var1}  4  test  ${var}  test=${5}
Longer Keyword  ${var}
${value}  Set Variable If  ${value}==True  5

to:

${var}              Keyword             ${var1}             4       test    ${var}      test=${5}
Longer Keyword      ${var}
${value}            Set Variable If     ${value}==True      5

replacing tabs to spaces

robotclean –mode tabs_to_spaces –path test.robot

It will replace all tab character by spaces (while trying to preserve aligment)

adjusting whitespace

robotclean –mode whitespace –path test.robot

It will adjust whole robot file to set of rules: - no empty sections allowed - 2 empty lines between sections - 1 empty line between tests and keywords - 1 trailing line at the end of file - no trailing whitespace

Metadata

Release files for robotframework-clean 1.2.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 robotframework-clean 1.2.1
File Size Uploaded Provenance
robotframework-clean-1.2.1.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-clean 1.2.1
File Interpreter ABI Platform
robotframework_clean-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / robotframework-clean-1.2.1.tar.gz

Download URL robotframework-clean-1.2.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9fd84dbe1d12b838c0bfb72616de63c1b56241c925d98951fb454c3402e0bb28
BLAKE2b-256 checksum
How to use checksums
be89e0577ea0deff61dbea09f102d1290aaebb41e9dafa6ff079f71166c6ac96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

Release files / robotframework_clean-1.2.1-py3-none-any.whl

Download URL robotframework_clean-1.2.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28fd370eb9a31a4307628858c7e9e628c836190a4d8c40761c6ac6cc8f849af9
BLAKE2b-256 checksum
How to use checksums
6678afefb823b60a6e4b1181f373510eebca6a81d827c5ecea26563d033b214a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

Security for robotframework-clean 1.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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