Configuration

Create PyRmin Configuration and Plugins directories

mkdir -p /etc/pyrmin /usr/share/pyrmin/plugins

Generate a New Admin password

python -c 'import hashlib; print(hashlib.sha256("new_password").hexdigest())'

Create /etc/pyrmin/pyrmin.yml file

# Configuration File for PyRmin
#
#plugins:
# - docs

pyrmin:
 password: a1cb100f57e971cacf269e7c26e4630a25a8e9d4bdd35e32df1a80b66b896254
 port: 8080
 root_url: http://localhost:8080
 plugins_path: /usr/share/pyrmin/plugins
 # Redis Cache Tool Config
 #cache:
 # server: localhost
 # port: 6379
 # db: 0
 # Local User Definition
 #users:
 # - username: user1
 #   password: a1cb100f57e971cacf269e7c26e4630a25a8e9d4bdd35e32df1a80b66b896254
 #debug: false
 # Session Config
 #session:
 #  storage_type: file
 #  timeout: 3600
 #access_log: /var/log/pyrmin/access.log
 # Server Config
 #thread_pool: 10
 #timeout: 120
 #socket_host: '0.0.0.0'
 #max_request_body_size: 104857600
 #max_request_header_size: 512000
 # Authentification Module
 #auth_module: ldapauth

Start the Web Service

pyrmin run

Enable Auto Complete Support

pip install argcomplete
eval "$(register-python-argcomplete pyrmin)"

argcomplete documentation