You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

robotlibcore-temp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robotlibcore-temp

Tools to ease creating larger test libraries for Robot Framework using Python.

1.0.2
pipPyPI
Maintainers
1

Python Library Core

Tools to ease creating larger test libraries for Robot Framework_ using Python.

Code is stable and version 1.0 is already used by SeleniumLibrary_. Better documentation and packaging still to do.

Example

.. sourcecode:: python

"""Main library."""

from robotlibcore import HybridCore

from mystuff import Library1, Library2


class MyLibrary(HybridCore):
    """General library documentation."""

    def __init__(self):
        libraries = [Library1(), Library2()]
        HybridCore.__init__(self, libraries)

.. sourcecode:: python

"""Library components."""

from robotlibcore import keyword


class Library1(object):

    @keyword
    def example(self):
        """Keyword documentation."""
        pass

    @keyword
    def another_example(self, arg1, arg2='default'):
        pass

    def not_keyword(self):
        pass


class Library2(object):

    @keyword('Custom name')
    def this_name_is_not_used(self):
        pass

    @keyword(tags=['tag', 'another'])
    def tags(self):
        pass

.. _Robot Framework: http://robotframework.org .. _SeleniumLibrary: https://github.com/robotframework/SeleniumLibrary/

Keywords

robotframework automation libraries

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts