Getting started
uvx --from longlink longlink init --folder .
uv sync --group dev
uv run longlink dev
See
xLongLink/samplefor a minimal LongLink Solution.
Documentation
Check LongLink Documentation or use the cli (designed for agents):
longlink docs --help
HTML-style forms
Use named fields instead of maintaining draft state:
/** Creates an item through the Solution request bridge. */
export default function CreateItem() {
return (
<Form action="/api/items" method="post">
<Stack gap={3}>
<TextInput name="name" label="Name" required />
<NumberInput name="price" label="Price" min={0} defaultValue={0} required />
<Button type="submit" label="Create" />
</Stack>
</Form>
);
}
name keeps the themed Astryx control and includes its value in form submissions.
Use defaultValue or defaultChecked for initial values, or value and onChange
when the interface needs reactive state. Ordinary HTML inputs also work inside Form.
Receive the fields with payload: Annotated[ItemCreate, fastapi.Form()] in your Python
route (Annotated comes from typing; install python-multipart). Form validation
provides immediate feedback; the backend schema validates and parses submitted strings.
Repeated names and files are preserved, and unchecked checkboxes are omitted.
Form prevents duplicate submissions and displays request errors. Successful writes
refresh cached View data but do not reset the form. Use onSuccess to close a dialog
or navigate, or a reset button to restore defaults.
Development
make sdk
Requirements: Python 3.12 or newer,
uv, and Docker if you want to build an image. SeeCONTRIBUTING.mdfor more details.
Testing
uv sync --group dev
uv run pytest --cov --cov-report=term-missing
Metadata
Release files for longlink 0.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| longlink-0.5.6.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| longlink-0.5.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.8 MB
Release files / longlink-0.5.6.tar.gz
| Download URL | longlink-0.5.6.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9a0b59a352790414ba32c3f2818ec2437890c58494a81f36641fe6ba1b9772a
|
|
BLAKE2b-256 checksum How to use checksums |
5c028dcfa31bc78cad096ac3134794f849b02340160206626cf237db899cd0cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / longlink-0.5.6-py3-none-any.whl
| Download URL | longlink-0.5.6-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10321dc880eb0ce228e4dc7bfbc904a37bcce11d5b05e9742b2e83cf585fd959
|
|
BLAKE2b-256 checksum How to use checksums |
8bdb1696fffdebe9369a1f78671eabdbe3c7d7af82dafdc57eddb622dbc84592
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|