Skip to main content

Webserver for robot framework assets documentation

Project description

rfhub2

Build Status image image image

rfhub2 is a new take on rfhub created by Bryan Oakley.

It's purpose is to enable working with rfhub web server also as a shared application for storing and updating Robot Framework documentation on server with persistent database.

This is a very early version of a server for the Robot Framework libraries documentation. The hub uses flask to provide both REST API and a browser-based UI for accessing documentation.

It's crazy easy to get started. To install and run from a PyPi package, do the following:

    $ pip install rfhub2
    # or if you want to use Postgres as underlying database
    $ pip install rfhub2[postgresql]
    # run web server
    $ python -m rfhub2

To run from source it's the same, except instead of installing, you cd to the folder that has this file.

That's it! You can now browse documentation by visiting the url http://localhost:7070/doc/

Want to browse your local Robot Framework assets? Just include the path to your test suites or resource files on the command line:

    $ python -m rfhub2 /path/to/test/suite

By default it will create in-memory SQLite database. If you want to run it with persistent database (for example PostgreSQL):

    $ python -m rfhub2 --db postgresql://postgres:@localhost:5432/db /path/to/test/suite

NOTE: Application uses SQLAlchemy for database interaction. In order to use it with specific database you need to install related Python package (like psycopg2 for PostgreSQL)

Web and Worker modes

By default application is responsible for both loading data to database and running web server. If you want to run them separately, for example to deploy server without access to actual library files and load data periodically to shared database, you can run application in web and worker modes:

    $ python -m rfhub2 --db postgresql://postgres:@localhost:5432/db --web
    $ python -m rfhub2 --db postgresql://postgres:@localhost:5432/db --worker

Web process skips loading library data (but it tries to create required tables if they are not yet created) and starts web server.

Worker process creates tables if required, loads library data and exits.

Websites

Source code, screenshots, and additional documentation of original rfhub can be found here:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfhub2-0.2.tar.gz (186.3 kB view hashes)

Uploaded Source

Built Distribution

rfhub2-0.2-py3-none-any.whl (194.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page