Log inSign up
Log inSign up
Plain
128 posts
@plainframework

Plain

@plainframework
The full-stack Python framework designed for humans and agents. Follow for development updates. Follow @davegaeddert for more background.
Kansas
plainframework.com
Joined July 2024
1 Following
79 Followers
RepliesRepliesRepostsRepostsMediaMedia

Plain’s posts

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • @plainframework
    Plain
    @plainframework
    Oct 2
    Every Plain setting ending in TOKEN, KEY, SECRET, PASSWORD or USER is now Secret[...] and masked, or says PUBLIC in its name. A test enforces it across every package. First catch: EMAIL_HOST_USER. Postmark uses your API token as the SMTP username.
    Python settings: EMAIL_HOST_USER and EMAIL_HOST_PASSWORD annotated Secret[str] (masked in logs and plain settings list), and CONNECT_PAGEVIEWS_PUBLIC_TOKEN as a plain str because it's rendered into every page's HTML.
    read image description
  • @plainframework
    Plain
    @plainframework
    Sep 28
    StreamingResponse bodies now run in the request's context. The generator queries the database on the same connection as the view, a cursor from Model.query.iterator() stays alive to the last chunk, and the request's trace covers sending the body.
    Python code: a Plain View whose get() defines a rows() generator that yields a CSV header, then yields a line per user from User.query.iterator(), returned as StreamingResponse(rows(), content_type="text/csv").
    read image description
  • @plainframework
    Plain
    @plainframework
    Sep 26
    Secrets in Plain are a type SECRET_KEY: Secret[str] `plain settings get` now masks them like `settings list` already did. Matters more with agents: everything a command prints lands in the transcript. `plain settings get --reveal` is the explicit ask
    app/settings.py declares STRIPE_SECRET_KEY: Secret[str]. Below, labeled 'what the agent sees', an agent transcript shows Bash(plain settings get STRIPE_SECRET_KEY) returning ******** and a hint that it is a secret, pass --reveal to print its value.
    read image description
  • @plainframework
    Plain
    @plainframework
    Sep 25
    Plain now requires Python 3.14. The first payoff is sql() in plain-postgres: the SQL is the literal parts of a t-string, every interpolated value binds as a parameter, and passing a plain str is a type error.
    Python code using Plain's new sql() API: a QueueStats dataclass, then JobRequest.query.sql() called with a t-string SELECT that interpolates {JobRequest.queue}, count(*), min({JobRequest.created_at}), FROM {JobRequest}, WHERE queue = ANY({queues}), GROUP BY 1, with result_type=QueueStats.
    read image description
  • @plainframework
    Plain
    @plainframework
    Sep 21
    Starting to rework some of the postgres APIs
    Image
Advertisement
Advertisement