OArepo whitenoise
This library serves static resources and index.html at runtime using the whitenoise package. This greatly simplifies the deployment as only one image needs to be deployed.
Installation
pip install oarepo-micro-api oarepo-whitenoise
Configuration
This library expects the static files in /whitenoise
folder. If they are located elsewhere, set environment
variable WHITENOISE_ROOT to the correct location.
Usage
In your wsgi configuration, specify:
[uwsgi]
module = oarepo_whitenoise.wsgi:application
...
as your wsgi entry point.
.. Copyright (C) 2021 Mirek Šimek, VŠCHT Praha.
oarepo-whitenoise is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
Changes
Version 0.1.0 (released TBD)
- Initial public release.
Metadata
Release files for oarepo-whitenoise 2.0.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 |
|---|---|---|---|---|
| oarepo-whitenoise-2.0.4.tar.gz | 6.1 kB | Without provenance | Details for oarepo-whitenoise-2.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oarepo_whitenoise-2.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for oarepo_whitenoise-2.0.4-py2.py3-none-any.whl |
Total release size: 11.2 kB
Release files / oarepo-whitenoise-2.0.4.tar.gz
| Download URL | oarepo-whitenoise-2.0.4.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c69072b1835c6d8410ad7c58265d1f8ad5ba76d591616a66944cefad516860a4
|
|
BLAKE2b-256 checksum How to use checksums |
076af1ddfd993369eedafc675ad948ae0fea3fe8576b83f00e5377d7cb4740be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / oarepo_whitenoise-2.0.4-py2.py3-none-any.whl
| Download URL | oarepo_whitenoise-2.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d891d76f3a46990cb9a9021fdf9f6c362b66ca55f01a82a01a2e9c53e3cd07ad
|
|
BLAKE2b-256 checksum How to use checksums |
b49d5857a7e913caff97f98c5b3fbcb4b712cf5da21efd09d4be41ca74cc5168
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for oarepo-whitenoise 2.0.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.