Shared Django app for AI-generated content persistence (ADR-130)
Project description
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_storeDB - 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iil_content_store-0.1.0.tar.gz.
File metadata
- Download URL: iil_content_store-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c5ab610a5602b24befe93426e4ad78726150924915046a3a35063bb40f10b73
|
|
| MD5 |
64c9ddc5d61a20797659c9b12bd9d2de
|
|
| BLAKE2b-256 |
14e18c66e1d84a303b49ca643d397954b481f15cff15f812ac60f4ffdb04d7fa
|
File details
Details for the file iil_content_store-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iil_content_store-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6ec0de1b8ffd2ec156cf276ea0277c29ed4f85857e62d70f8366cc15875dde
|
|
| MD5 |
88d80c924b40d22488141170e8370cac
|
|
| BLAKE2b-256 |
f0dc841c3938bef44d502574ff8040f750cbe86ef680305ccdd20cceb08c8998
|