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.0.8.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for canonicalwebteam_store_base-0.0.8.tar.gz
Algorithm Hash digest
SHA256 fc7428dd5029a5169d41b302f10c28e797566e77695389af10934c7fb82d3dd6
MD5 8bb8db7ab2611ffaeee691f741490807
BLAKE2b-256 a4354e65da8f957852e0c36efebf4f830c3e47ce46b26d293b7f68003556537b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for canonicalwebteam_store_base-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 90151632bdcc457cf3dba3a1625d0fb60813bde09c0a8178806e89a88ea00bc4
MD5 7b59f433ff40169ac06e4a1558de13aa
BLAKE2b-256 662ac660d8898c8828fbe21e9d0889b3d6959f1fba4061972f0fea62f4fac86f

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