Whist server implementation
Project description
Whist-Server
This is the REST API server of a Whist game. It provides user management, session organization and a convenient interface for the rules' implementation of Whist-Core.
Development
Setup
You need Poetry for development.
# Create venv and install deps
poetry install
The Python virtual environment will be created in the .venv
directory.
Run tests/lint
# Run tests (in venv)
python -m pytest # or pylint...
# OR
poetry run python -m pytest
Build
Generates sdist
and bdist_wheel
.
poetry build
Publish
You need the environment variable POETRY_PYPI_TOKEN_PYPI
filled with a PyPI token.
poetry build
poetry publish
# OR
poetry publish --build
Run
In order to use GitHub SSO you need to set two environment variables. At the moment they are mandatory.
GITHUB_CLIENT_ID # This is the GitHub Identifier
GITHUB_CLIENT_SECRET # During creation this secret is generated.
GITHUB_REDIRECT_URL=http://HOST:PORT/oauth2/github/ # Only required for Browser Application with the ability to redirect.
If you want to use Splunk you require an environment variable with the authentication token:
SPLUNK_TOKEN
and you have to start the server with optional arguments --splunk_host
and
--splunk-port
.
In order to run the application it must be started like this:
python -m whist_server --reload --admin_name=root --admin_pwd=password 0.0.0.0 8080
:warning: A mongodb instance is required to run before launching the Whist-Server
.
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
Hashes for whist_server-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6243c24378fc3e1e7eb7d8506a2f8b53239baa6a199ebd53cba57caf5772bd0 |
|
MD5 | 50882272883aa1c6750f3adb5eb74877 |
|
BLAKE2b-256 | 9c242f32aeb6e6bcf8a3884daf299b10edde4533990d9c1f215025d33952f8e2 |