server.card_editor ================== .. py:module:: server.card_editor .. autoapi-nested-parse:: Use fastui to create a simple web interface for the card editor. The editor should allow users to create NewCards and publish them to a channel. Terminal 1: ```bash docker run --rm -t -p119:119 -p563:563 cclauss/inn ``` Terminal 2: ```bash PYTHONPATH="." uv run server/card_editor.py ``` Attributes ---------- .. autoapisummary:: server.card_editor.nntp_client server.card_editor.sue_grafton_books Functions --------- .. autoapisummary:: server.card_editor.sample_metadata server.card_editor.junk Module Contents --------------- .. py:data:: nntp_client .. py:data:: sue_grafton_books .. py:function:: sample_metadata() -> collections.abc.Iterator[server.ome_node.Metadata] .. py:function:: junk() -> None app = fastui.App() channel = fastui.Select( "Channel", options=[channel.name for channel in ome_node.channels()] ) subject = fastui.Text("Subject") body = fastui.Text("Body") submit = fastui.Submit("Submit") new_card = fastui.Form("New Card", [channel, subject, body, submit]) ome_node.create_post(NewCard)