Skip to main content

codecov security: bandit PyPI PyPI - Python Version PyPI - Wheel GitHub repo size Lines of code PyPI - Downloads PyPI - License

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.

Splunk

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.

Splunk support is currently disabled.


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

⚠️ A mongodb instance is required to run before launching the Whist-Server.

Metadata

Release files for whist-server 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whist-server 0.8.0
File Size Uploaded Provenance Actions
whist_server-0.8.0.tar.gz 44.4 kB Without provenance Details for whist_server-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for whist-server 0.8.0
File Interpreter ABI Platform Actions
whist_server-0.8.0-py3-none-any.whl Python 3 none any Details for whist_server-0.8.0-py3-none-any.whl

Total release size: 83.4 kB

Release files / whist_server-0.8.0.tar.gz

Download URL whist_server-0.8.0.tar.gz
Size 44.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9eaaf1e22f44709fbc9f243fca80686da84e7118076d5cb863f79aa892d98b12
BLAKE2b-256 checksum
How to use checksums
a9dd3fa674fb6e00f994d273d46f1f721ff7853275215965a05b1bce6bb55ed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1019-azure

Release files / whist_server-0.8.0-py3-none-any.whl

Download URL whist_server-0.8.0-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
850f9e993c29f15d903a5544f11f2132167b13ad5859e85cdc13ba4e7564d9e5
BLAKE2b-256 checksum
How to use checksums
8dc654ac4ebd474b668b9562d641e2d6378359e32ad6df937c10b452a62a123a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1019-azure

Security for whist-server 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page