Skip to main content

Datasette Agent tools for working with Fly Sprites

Project description

datasette-agent-sprites

PyPI Changelog Tests License

Datasette Agent tools for working with Fly Sprites - persistent, hardware-isolated Linux environments with a REST API.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-agent-sprites

Configuration

This plugin uses datasette-secrets to manage the Sprites API key. You can get a token from https://sprites.dev/account.

There are two ways to configure it:

Using an environment variable:

export DATASETTE_SECRETS_SPRITES_API_KEY="your-token-here"

Or if you have datasette-secrets configured with an encrytion key:

Using the datasette-secrets UI: Navigate to /-/secrets in your Datasette instance and set the SPRITES_API_KEY secret.

Tools

This plugin provides the following tools to the Datasette Agent:

Tool Description
list_sprites List all available Sprites. Optionally filter by name prefix.
create_sprite Create a new Sprite with a given name. It starts cold and warms on first use.
get_sprite Get details and status of a specific Sprite.
exec_on_sprite Execute a shell command on a Sprite via bash -lc. Returns stdout, stderr, and exit code.
delete_sprite Permanently delete a Sprite and all its data.
read_sprite_file Read a file from a Sprite's filesystem. Images are displayed inline; text files are returned directly.
write_sprite_file Write text content to a file on a Sprite. Creates parent directories automatically.

Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:

cd datasette-agent-sprites
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run pytest

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

datasette_agent_sprites-0.1a0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

datasette_agent_sprites-0.1a0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file datasette_agent_sprites-0.1a0.tar.gz.

File metadata

  • Download URL: datasette_agent_sprites-0.1a0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for datasette_agent_sprites-0.1a0.tar.gz
Algorithm Hash digest
SHA256 0b4945c34a09afa4d0f3bdc367096973ace1f5f46ecc675d494615658a4a9255
MD5 3e6b064f6b0413365714865616bf5aa9
BLAKE2b-256 4e6e9dbaa9ffad28b26f5937eee31b04c172c87d9db29259f91c7db5c81597cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_agent_sprites-0.1a0.tar.gz:

Publisher: publish.yml on datasette/datasette-agent-sprites

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

File details

Details for the file datasette_agent_sprites-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_agent_sprites-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1b26838ddd3804c4d8274005d747b36cf1f1d1fc465e58fd195b972c8af0ebc
MD5 d0c365ff27dc328b5128818db1928f89
BLAKE2b-256 b5b6fab084b539acde04092eca468ecfb0c781526e7a6461e8801f2cfae4ea6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_agent_sprites-0.1a0-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-agent-sprites

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