python3-lib
The library that is used for microservices of the backend for the Cryptic game that are written in Python.
PyPI package: https://pypi.org/project/cryptic-game/
Installation:
$ pip3 install cryptic-game
Features
- Endpoint mapping
- Automatic input validation
- Database control with SQLAlchemy
- Automatic error capturing with Sentry and a logger
Quick Start
Checkout example.py for a quick example on how this library is used.
Requirements
Required are all modules in the requirements.txt (which will automatically be installed by pip).
Environment Variables
| Variable | Functionality |
|---|---|
| MODE | Available: debug and production |
| SERVER_HOST | Hostname of the main server |
| SERVER_PORT | Microservice communication port of the main server |
| DATA_LOCATION | SQLite database file location |
| DBMS | Database management system; Available: mysql and sqlite |
| SQLITE_FILE | Name of the SQLite database file (only used if DBMS is sqlite) |
| MYSQL_HOSTNAME | Hostname of the MySQL server |
| MYSQL_PORT | Port of the MySQL server |
| MYSQL_DATABASE | Name of the MySQL database to use |
| MYSQL_USERNAME | MySQL username to use |
| MYSQL_PASSWORD | The password of the MySQL user |
| PATH_LOGFILE | Path where your log-files will be stored to |
| DSN | "Data Source Name" of your Sentry instance |
| RELEASE | The release that will be reported to Sentry |
Test it!
Your microservice will be supported by the game-server of cryptic.
Wiki
Visit our wiki for more information.
Metadata
Release files for cryptic-game 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cryptic-game-0.5.4.tar.gz | 8.4 kB | Without provenance | Details for cryptic-game-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cryptic_game-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for cryptic_game-0.5.4-py3-none-any.whl |
Total release size: 29.8 kB
Release files / cryptic-game-0.5.4.tar.gz
| Download URL | cryptic-game-0.5.4.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92d88989b6c8ec8b6410842e4df5b411032a1829c40fbec64fe940ff720c3e97
|
|
BLAKE2b-256 checksum How to use checksums |
9fb2aac5ce598bcc9b5a8c203a3cc74db7cc3eff616719d6c468fb411c9f6649
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / cryptic_game-0.5.4-py3-none-any.whl
| Download URL | cryptic_game-0.5.4-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6e5741752b9224dcd42f3dae1eb25654a1dcf0c0a696f27acee65d5326fab98
|
|
BLAKE2b-256 checksum How to use checksums |
d32ef712a91ec162087a826fff0c9cb7f463d4947f2c70313a54aceeeb6a28c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for cryptic-game 0.5.4
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.