Datasette Agent tools for working with Fly Sprites
Project description
datasette-agent-sprites
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4945c34a09afa4d0f3bdc367096973ace1f5f46ecc675d494615658a4a9255
|
|
| MD5 |
3e6b064f6b0413365714865616bf5aa9
|
|
| BLAKE2b-256 |
4e6e9dbaa9ffad28b26f5937eee31b04c172c87d9db29259f91c7db5c81597cd
|
Provenance
The following attestation bundles were made for datasette_agent_sprites-0.1a0.tar.gz:
Publisher:
publish.yml on datasette/datasette-agent-sprites
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_agent_sprites-0.1a0.tar.gz -
Subject digest:
0b4945c34a09afa4d0f3bdc367096973ace1f5f46ecc675d494615658a4a9255 - Sigstore transparency entry: 1593397175
- Sigstore integration time:
-
Permalink:
datasette/datasette-agent-sprites@80a4e42dbee3deae0da1a93500702286addfbe2c -
Branch / Tag:
refs/tags/0.1a0 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@80a4e42dbee3deae0da1a93500702286addfbe2c -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_agent_sprites-0.1a0-py3-none-any.whl.
File metadata
- Download URL: datasette_agent_sprites-0.1a0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b26838ddd3804c4d8274005d747b36cf1f1d1fc465e58fd195b972c8af0ebc
|
|
| MD5 |
d0c365ff27dc328b5128818db1928f89
|
|
| BLAKE2b-256 |
b5b6fab084b539acde04092eca468ecfb0c781526e7a6461e8801f2cfae4ea6c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_agent_sprites-0.1a0-py3-none-any.whl -
Subject digest:
e1b26838ddd3804c4d8274005d747b36cf1f1d1fc465e58fd195b972c8af0ebc - Sigstore transparency entry: 1593397310
- Sigstore integration time:
-
Permalink:
datasette/datasette-agent-sprites@80a4e42dbee3deae0da1a93500702286addfbe2c -
Branch / Tag:
refs/tags/0.1a0 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@80a4e42dbee3deae0da1a93500702286addfbe2c -
Trigger Event:
release
-
Statement type: