Webserver for robot framework assets documentation
Project description
rfhub2
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: https://github.com/pbylicki/rfhub2
Source code, screenshots, and additional documentation of original rfhub can be found here:
- Source code: https://github.com/boakley/robotframework-hub
- Project wiki: https://github.com/boakley/robotframework-hub/wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rfhub2-0.2.tar.gz
.
File metadata
- Download URL: rfhub2-0.2.tar.gz
- Upload date:
- Size: 186.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db75bf0b6a7645d5f9693fc46bcbc64e8645b4734958e575c59eed1cb36ad8e7 |
|
MD5 | 9821f3b1c14d61d40cef077edae2d505 |
|
BLAKE2b-256 | 07eb2599890d6957945559007ec89d14c32f0582f9d02cc096c531b1c885f838 |
File details
Details for the file rfhub2-0.2-py3-none-any.whl
.
File metadata
- Download URL: rfhub2-0.2-py3-none-any.whl
- Upload date:
- Size: 194.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a684d8c279b767de3fde5e4507807e377630007f9690a0f9d4caa66c5beae7 |
|
MD5 | 2744d8f93ab8676aca95352a102e970f |
|
BLAKE2b-256 | aa6463b94705b2d3976d34016bfb8630a32a9acd63831a22daa8dfcb58dc4909 |