Skip to main content

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

Metadata

Release files for canonicalwebteam-store-base 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for canonicalwebteam-store-base 1.3.0
File Size Uploaded
canonicalwebteam_store_base-1.3.0.tar.gz 25.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for canonicalwebteam-store-base 1.3.0
File Interpreter ABI Platform
canonicalwebteam_store_base-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.2 kB

Release files / canonicalwebteam_store_base-1.3.0.tar.gz

Download URL canonicalwebteam_store_base-1.3.0.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
559d1880336f442921a653010e7ede1309e8baf0ee55befcc289679f92b60522
BLAKE2b-256 checksum
How to use checksums
8b7fe253c07e2d44e0a60e4d44dc37e7d2e4d645ca139db4e8f52552656ae993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / canonicalwebteam_store_base-1.3.0-py3-none-any.whl

Download URL canonicalwebteam_store_base-1.3.0-py3-none-any.whl
Size 28.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8be3f41e831fb075ddeab96e330328571c5719553349e09e435c789c292698c5
BLAKE2b-256 checksum
How to use checksums
56e9e1648efd8440e5eb0b74c62ed04d52bbeeb31c85e1de15ce527665b0e16a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page