A Python web app to aid psychic abilities experiments.
-
WebPsi currently supports local and remote random number generation using ComScire QNG. For local, install ComScire driver. For remote, run Quanttp on the remote machine and set
QUANTTP_LOCATION
environment variableExample:
# Windows set QUANTTP_LOCATION=192.168.0.136:8080/quanttp # Linux export QUANTTP_LOCATION=192.168.0.136:8080/quanttp
-
Run the following commands
pip3 install -r requirements.txt python3 -m webpsi
-
Create a class that extends
Generator
and override theget_bytes
methodExample:
# webpsi/generator/dev_hwrng.py from webpsi.generator.base import Generator class DevHwrng(Generator, id='my_rng', bit_numbering=Generator.BitNumbering.UNKNOWN): def get_bytes(self, length): with open('/dev/hwrng', 'rb') as f: return f.read(length)
-
Set the generator class on
config.py
# webpsi/config.py from webpsi.generator.dev_hwrng import DevHwrng GENERATOR_CLASS = DevHwrng
Copyright (C) 2020 AndieNoir
WebPsi is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
WebPsi is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with WebPsi. If not, see <https://www.gnu.org/licenses/>.