Skip to main content

Webserver for robot framework and python assets documentation

Project description

rfhub2

Build Status codecov image image image Docker Cloud Automated build Docker Cloud Build Status

Introduction

RfHub2 is an opensource project aimed to provide nice and easy way of collecting, browsing and sharing documentation of existing keywords written in RobotFramework and python. Built with Material-UI and FastAPI, served by Uvicorn.
Project is inspired by robotframework-hub created by Bryan Oakley and can be treated as its spiritual successor.

RfHub2 is hosted on GitHub, where sourcecode, current issues and additional documentation can be found.

Installation

As python package

latest version can be installed from PyPi:

pip install rfhub2

or directly from source code:

python setup.py install

With docker

pull docker image with SQLite:

docker pull pbylicki/rfhub2

or PostgreSQL:

docker pull pbylicki/rfhub2:postgres

With helm chart

create app on kubernetes cluster

helm upgrade --install rfhub2 helm/rfhub2 -n [NAMESPACE] 

will create all needed resources with configuration from values.yaml

Starting application

Run application (web server)

To run with default (SQLite) database:

rfhub2

To run with PostgreSQL database:

RFHUB_DB_URI=postgresql://postgres:postgres@localhost:5432/postgres rfhub2

To run application using docker image with default (SQLite) database:

docker run -it -p 8000:8000 pbylicki/rfhub2

To run application using docker image with Postgres database:

docker run -it -p 8000:8000 --network=host -e RFHUB_DB_URI="postgresql://postgres:postgres@localhost:5432/postgres" pbylicki/rfhub2:postgres

Populate application with keywords documentation

To populate application running on localhost:

rfhub2-cli ../your_repo ../your_other_repo

To populate app running on another host, with non-default credentials:

rfhub2-cli -a http://your_host:8000 -u user -p password ../your_repo ../your_other_repo

To populate app but to skip loading RFWK installed libraries:

rfhub2-cli --no-installed-keywords ../your_repo ../your_other_repo
Rfhub2-cli for keywords documentation can be run in three load-modes:
  • insert, default mode, that will clean up existing collections app and load all collections found in provided paths
    rfhub2-cli --load-mode=insert ../your_repo ../your_other_repo
  • append, which will only add collections form provided paths
    rfhub2-cli --load-mode=append ../your_repo ../your_other_repo
  • update, which will compare existing collections with newly found ones, and update existing, remove obsolete and add new ones
    rfhub2-cli --load-mode=update ../your_repo ../your_other_repo
  • merge, updates only matched collections, does nothing with not matched ones. rfhub2-cli --load-mode=merge ../your_repo ../your_other_repo

Populate application with keywords execution statistics

To gather keywords execution statistics:
rfhub2-cli --mode=statistics ../your_execution_dir ../your_other_execution_dir

Since execution statistics from specific run does not change over time, there is no load-mode needed. Application will scan all of the executions and try to send aggregated data from each run to application. rfhub2-cli will complain that there are existing statistics for particular timestamp, and will proceed with next ones.

License

RfHub2 is an open source software provided under the Apache License 2.0

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.25.tar.gz (605.8 kB view details)

Uploaded Source

Built Distribution

rfhub2-0.25-py3-none-any.whl (640.9 kB view details)

Uploaded Python 3

File details

Details for the file rfhub2-0.25.tar.gz.

File metadata

  • Download URL: rfhub2-0.25.tar.gz
  • Upload date:
  • Size: 605.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.7

File hashes

Hashes for rfhub2-0.25.tar.gz
Algorithm Hash digest
SHA256 d39c0dc0220835b9625b0724349b2067847a5ebb5fac4d06e4db64d5cd8f1594
MD5 c1b69187015b51122350cf79a571781e
BLAKE2b-256 5a29eff3c803087c8caafe4ffd372b16fe989d6b56ee094bf7d0847279b6b6b5

See more details on using hashes here.

File details

Details for the file rfhub2-0.25-py3-none-any.whl.

File metadata

  • Download URL: rfhub2-0.25-py3-none-any.whl
  • Upload date:
  • Size: 640.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.7

File hashes

Hashes for rfhub2-0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 3676e633cfa96621a3622f1f215ecac2933daff78741fa17cff9768f3ca84e91
MD5 e3b92f5179cb22f5dfa65cf7be98c9d3
BLAKE2b-256 7a606b931e7d9403f1adf8704b8cf9120efc428ae6fa640f021ae149cbb75f36

See more details on using hashes here.

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