Skip to content
← Register
Prompt & ModelNo. 35

Phantom · Django

The same API again, Django-idiomatic — the second opinion that proves the library is not shaped around one framework.

Specimen · django-phantom

Lab note

Written deliberately in Django's grain rather than as a transliteration of the Flask version: StreamingHttpResponse for SSE, a trimmed INSTALLED_APPS because the app has no models, and /v1 exempted from CSRF with a test that asserts the exemption holds — an SDK has no CSRF token, and without that test every client would one day start getting 403s. Two frameworks that disagree about as much as Flask and Django do is the real test of a shared library.

State
Far enough along to use
Built on
the lab shell
Shared modules
phantom-core, lab-languages
Feature modules
apiauthlanguageplayground