Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canonicalwebteam_store_base-0.2.3.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file canonicalwebteam_store_base-0.2.3.tar.gz.

File metadata

File hashes

Hashes for canonicalwebteam_store_base-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f46cb8b978c8c95451eba085933cdc361eb907abadf5777b6a0c0ae2f670ee66
MD5 ed0820d7df6640ca0f898404d0ad9c59
BLAKE2b-256 15a62b41e15f85755e98d0145f28d146bdc020eb2ec76ccc65a88640926e287e

See more details on using hashes here.

File details

Details for the file canonicalwebteam_store_base-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for canonicalwebteam_store_base-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 589050b06a22ca1947f2555be7de23d097808642671633cdb47f7e64262287c4
MD5 5fb6edc4c5bc404c0199da2c70a32ff4
BLAKE2b-256 f0f92b01db14a14257ac8542c37f0df38469f16fb3d36d7cd60d12b122829b4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page