Skip to main content

Local Talon node helper for tests and development

Project description

talon-server

Starts talon-node as a local subprocess with SQLite and a local_socket broker for tests and development. By default the helper writes a temporary talon.yaml and stores SQLite data under that temporary directory.

Set TALON_NODE_PATH to a local talon-node binary, or let the helper download one from the Talon GitHub releases.

Pass jwt_secret to start the gateway in JWT-auth mode, then mint scoped browser or test tokens with mint_jwt:

from talon_server import JwtOptions, Options, mint_jwt, start

secret = "dev-secret"
server = start(Options(jwt_secret=secret))
token = mint_jwt(secret, JwtOptions(subject="browser-demo", namespace="demo", agent="copilot"))

To provide the Talon runtime config directly, pass config:

server = start(Options(config={
    "workspace_dir": ".",
    "control_plane": {
        "database": {"driver": "sqlite", "data_dir": ".talon-data"},
        "message_broker": {"driver": "local_socket"},
    },
}))

For the common local SQLite case, data_dir is a convenience overlay:

server = start(Options(data_dir=".talon-data"))

To own the full runtime configuration file, pass config_path pointing at a talon.yaml or talon.json. When config_path is set, all config settings should live in that file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talon_server-0.1.17.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talon_server-0.1.17-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file talon_server-0.1.17.tar.gz.

File metadata

  • Download URL: talon_server-0.1.17.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for talon_server-0.1.17.tar.gz
Algorithm Hash digest
SHA256 5e3cafc8ffb7d1a259c39863e09e04976d90117beea5fa5783dac7723d618f2f
MD5 6ce3528e87864e52cda2eb02e5bf9a5f
BLAKE2b-256 acbd33031762a01a40299c6548e39fc22058a7e8af8030243ae0e01b6fe2c44a

See more details on using hashes here.

Provenance

The following attestation bundles were made for talon_server-0.1.17.tar.gz:

Publisher: publish.yaml on impalasys/talon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file talon_server-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: talon_server-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for talon_server-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 7bf968f0c67d35fac28ec61b72b48541498a709147eb5d955e560191e55283c8
MD5 d8d29dc51be417c435a68610a30ab5e3
BLAKE2b-256 8fd913dbea7285504c2876a64660dc0aad162367916670b711ec9628199d1070

See more details on using hashes here.

Provenance

The following attestation bundles were made for talon_server-0.1.17-py3-none-any.whl:

Publisher: publish.yaml on impalasys/talon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page