azure_lightning_flask
A Flask server to serve single-page applications deployed using the lightning strategy on Azure Table Storage. Designed to work with Ember-cli-deploy-azure, but should be compatible with any lightning strategy deployment on Azure Table Storage via configuration. Developed with Python 2.7
Installation
It is recommended that you install and run azure_lightning_flask inside of a virtualenv
virtualenv venv . venv/bin/activate
Via pip
pip install azure_lightning_flask
Manual
Download the application files and in the root directory run
pip install -r requirements.txt python setup.py install
Application Configuration
Configure the application by setting environment variables. All application configuration variables without a default must be set.
This application serves content from Azure Storage Table requiring an Azure account and a storage table to be setup for some of the required configuration.
Environment Variable |
Usage |
Default |
|---|---|---|
AZURE_STORAGE_ACCOUNT |
The name of the Azure Storage account to be used |
None (Must be set) |
AZURE_STORAGE_KEY |
The key for the given Azure Storage account |
None (Must be set) |
AZURE_STORAGE_TABLE |
The name of the table where revisions are stored |
emberdeploy |
AZURE_STORAGE_TABLE_P ARTITION_KEY |
The partition key to search under |
manifest |
APP_NAME |
The name of the application being served |
None (Must be set) |
REVISION_PARAMETER |
The query parameter used to request specific revisions |
index_key |
Running
After it is configured, run the application with
azure_lightning_flask
Flask configuration
Flask configuration values can also be set via environment variables as the environment is merged into the flask configuration via flask-env.
Running tests
python setup.py nosetests
Metadata
Release files for azure-lightning-flask 0.0.1
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 | |
|---|---|---|---|---|
| azure_lightning_flask-0.0.1.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azure_lightning_flask-0.0.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 16.3 kB
Release files / azure_lightning_flask-0.0.1.tar.gz
| Download URL | azure_lightning_flask-0.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06449fd8330523082affe280165f628c5d6529cda8fa16dd0a103af49b2e8437
|
|
BLAKE2b-256 checksum How to use checksums |
e2e3f18a9c5695de69c3adf230f6a965b04a4cd6d1c020008b4930f53e9ff6c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / azure_lightning_flask-0.0.1-py2-none-any.whl
| Download URL | azure_lightning_flask-0.0.1-py2-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c1421b50eb785140c3d4cef1d5c69b4a2c359f9e67893ea5049ea1b0723d4f50
|
|
BLAKE2b-256 checksum How to use checksums |
3f29080136c3031053856fbf972fc4398dadf3013ca25492e5c5781eeec08dbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for azure-lightning-flask 0.0.1
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.