An application base for all stores
Project description
Canonical Webteam Store-base
About
This is the base application for all stores. Each store is registered as a blueprint when the app is initialized, other configs and blueprints that are store-specific are also registered on the app. This allows for uniformity of certain endpoints and functionalities across all stores and also allows for extension and customization of endpoints and features that are store specific. See Usage section for example.
How to Install
To install this extension as a requirement in your project, you can use PIP:
pip install canonicalwebteam.store-base
Development
The package leverages poetry for dependency management.
Testing
All tests can be run with poetry run python3 -m unittest discover tests
.
Note: You might have to do poetry install
before running the command above.
Usage
from canonicalwebteam.store_base.app import create_app
import store-specific blueprint
import store-specific utility processor
app = create_app(
"app_name",
store_bp=store-specific blueprint,
utility_processor=store-specific utility_processor,
)
app.static_folder=app_static_folder
app.template_folder=app_template_folder
app.static_url_path=app_static_url_path
all other store blueprints and configurations should be registered here
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
File details
Details for the file canonicalwebteam_store_base-0.4.1.tar.gz
.
File metadata
- Download URL: canonicalwebteam_store_base-0.4.1.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5337110ef008d2226edd17209050ecb2fd20c3bdb6e69e8b6a50d6c21634ab74 |
|
MD5 | 41472e7792c570c6534d136b7f4ab792 |
|
BLAKE2b-256 | 143cf4293b3024a4c113f674322bba05d7dc4bb0469ada7b4204c9bc88946567 |
File details
Details for the file canonicalwebteam_store_base-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: canonicalwebteam_store_base-0.4.1-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ebecf7b6be8598fd07341b7e76713506430ec68198a3bd28ddf2cc01acfec1 |
|
MD5 | 4acd11abc7d3b0b442b632838191084e |
|
BLAKE2b-256 | 507e58d450d59e5baf78edf8f81788cf6a063da4b93232e967296c85a6566436 |