Skip to main content

simple_module_products

Example CRUD module for simple_module. This is a reference / demo, not a production-ready commerce module — it exists to show what a fully-featured simple_module module looks like end-to-end: ModuleBase, SQLModel table with AuditMixin, contracts, service, REST + Inertia endpoints, Browse/Create/Edit pages, tests.

Fresh simple-module new scaffolds don't include this by default — it's here as a readable example.

Install

pip install simple_module_products

What it provides

  • Product SQLModel table with name, sku, price_cents, AuditMixin.
  • Contracts (ProductCreate, ProductUpdate, ProductRead) under products.contracts.
  • Service layer (ProductsService) encapsulating the (tiny) business logic.
  • REST endpoints at /api/products + Inertia view endpoints at /products.
  • Inertia pages Products/Browse, Products/Create, Products/Edit.
  • Unit tests covering the service + integration tests hitting the full endpoint stack.

Usage

It's a reference, so the most useful "usage" is reading the source:

  • modules/products/products/module.py — the ModuleBase subclass.
  • modules/products/products/service.py — business logic.
  • modules/products/products/pages/ — Inertia React pages.
  • modules/products/tests/ — the test patterns to copy into new modules.

If you do want a working /products in your own app:

uv add simple_module_products
# Alembic will now see the products schema at the next `alembic revision --autogenerate`.

Depends on

  • simple_module_core, simple_module_db, simple_module_hosting

License

MIT — see LICENSE.

Metadata

Release files for simple-module-products 0.0.1

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

Source distribution (sdist)

Source distribution for simple-module-products 0.0.1
File Size Uploaded Provenance
simple_module_products-0.0.1.tar.gz 15.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-module-products 0.0.1
File Interpreter ABI Platform
simple_module_products-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.8 kB

Release files / simple_module_products-0.0.1.tar.gz

Download URL simple_module_products-0.0.1.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
81b39f9434d8fb3618f38834a5f2794a388186d1e27af83f588aae0efc9874ef
BLAKE2b-256 checksum
How to use checksums
171f50f484559e27ef7bdfec82c667e9d903ab77d4cc60f7ab9cc38b371be590
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.

Transparency log

Release files / simple_module_products-0.0.1-py3-none-any.whl

Download URL simple_module_products-0.0.1-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e75c101be1720a1e72834c94c91b58d1a5e741697bee7f886947c90fde11cd8f
BLAKE2b-256 checksum
How to use checksums
ecc61096b486d6539bebc73ca9486d2a68347eb66acfe434ac014c0f3938e30a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.

Transparency log

Security for simple-module-products 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for simple_module_products-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

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