Skip to main content

content_store — Shared Django App (ADR-130)

Shared Django app for AI-generated content persistence across all platform hubs.

Features

  • ContentItem: Versioned, SHA-256 deduplicated content storage
  • ContentRelation: Directed relations between content items
  • AdrCompliance: ADR drift-detector compliance results
  • ContentStoreRouter: Database router for dedicated content_store DB
  • ContentStoreService: Service-layer API (ADR-041 compliant)

Installation

pip install iil-content-store

Usage

# settings.py
INSTALLED_APPS = [..., "content_store"]
DATABASES = {
    "default": { ... },
    "content_store": {
        "ENGINE": "django.db.backends.postgresql",
        "NAME": config("CONTENT_STORE_DB_NAME", default="content_store"),
        "USER": config("CONTENT_STORE_DB_USER", default="content_store"),
        "PASSWORD": config("CONTENT_STORE_DB_PASSWORD"),
        "HOST": config("CONTENT_STORE_DB_HOST", default="localhost"),
        "PORT": config("CONTENT_STORE_DB_PORT", default="5432"),
    },
}
DATABASE_ROUTERS = ["content_store.router.ContentStoreRouter"]
from content_store.services import ContentStoreService

item = ContentStoreService.save_content(
    tenant_id=1,
    source="travel-beat",
    content_type="story",
    ref_id="trip-42",
    content="A wonderful journey...",
)

Platform Standards

  • BigAutoField PK (ADR-022)
  • tenant_id on all models (ADR-109)
  • Service-layer only, no direct Model.objects in views (ADR-041)
  • Django ORM, no hardcoded SQL (ADR-022)

Metadata

Release files for iil-content-store 0.1.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 iil-content-store 0.1.0
File Size Uploaded Provenance
iil_content_store-0.1.0.tar.gz 8.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iil-content-store 0.1.0
File Interpreter ABI Platform
iil_content_store-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / iil_content_store-0.1.0.tar.gz

Download URL iil_content_store-0.1.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5c5ab610a5602b24befe93426e4ad78726150924915046a3a35063bb40f10b73
BLAKE2b-256 checksum
How to use checksums
14e18c66e1d84a303b49ca643d397954b481f15cff15f812ac60f4ffdb04d7fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / iil_content_store-0.1.0-py3-none-any.whl

Download URL iil_content_store-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf6ec0de1b8ffd2ec156cf276ea0277c29ed4f85857e62d70f8366cc15875dde
BLAKE2b-256 checksum
How to use checksums
f0dc841c3938bef44d502574ff8040f750cbe86ef680305ccdd20cceb08c8998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for iil-content-store 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.0 This release

2 release files No 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