Configuration

Create PyRmin Configuration and Plugins directories

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

Generate a New Admin password

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

Create /etc/pyrmin/pyrmin.yml file

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

pyrmin:
 password: a1cb100f57e971cacf269e7c26e4630a25a8e9d4bdd35e32df1a80b66b896254
 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
 #access_log: /var/log/pyrmin/access.log

 # Session Config
 #session:
 #  storage_type: file
 #  timeout: 3600

 # Server Config
 #thread_pool: 10
 #timeout: 120
 #socket_host: '0.0.0.0'
 #port: 8080
 #max_request_body_size: 104857600
 #max_request_header_size: 512000

 #gravatar: false

 # Authentification Module
 #auth_module: None

 # Static Endpoint
 # a list of tuple (url, path)
 #static: []
 #  - !!python/tuple ['url', 'path']

Start the Web Service

pyrmin run

Enable Auto Complete Support

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

argcomplete documentation