Skip to main content

walkindb

Python client for walkindb — the database for agents.

A single HTTP call provisions a private SQLite database with a 10-minute TTL. No signup, no API key, no credit card.

Install

pip install walkindb

Zero runtime dependencies — the client uses only the Python standard library, so it installs cleanly inside any agent sandbox.

Use

from walkindb import Client

db = Client()
db.execute("CREATE TABLE notes(id INTEGER PRIMARY KEY, body TEXT)")
db.execute("INSERT INTO notes(body) VALUES('hello')")
result = db.execute("SELECT * FROM notes")
print(result.columns)       # ['id', 'body']
print(result.rows)          # [[1, 'hello']]
print(result.rows_affected) # 0 for SELECT, N for INSERT/UPDATE/DELETE

# The session token lives on the Client instance and is reused on subsequent
# calls, so you keep reaching the same walk-in database until its 10-minute
# TTL expires. `db.session` holds the token; `db.expires_at` is the unix
# timestamp at which the instance will be deleted.
print(db.session, db.expires_at)

If you want a fresh walk-in:

db.reset_session()
db.execute("SELECT 1")  # provisions a new instance

Errors

Non-2xx responses raise WalkinDBError with status and error attributes. Notable codes:

  • 400 — invalid JSON, missing sql, forbidden keyword, or SQL syntax error
  • 404 — session token unknown, tampered, or expired (walkindb returns 404, not 401, on all session failures to prevent enumeration)
  • 408 — query exceeded the 2-second wall-clock timeout
  • 413 — request body exceeded the 8 KB cap
  • 429 — rate limit exceeded (60 req/min, 10 new instance creations/min per IP)
  • 507 — instance storage quota exceeded (10 MB per walk-in)
from walkindb import Client, WalkinDBError

db = Client()
try:
    db.execute("SELECT * FROM does_not_exist")
except WalkinDBError as e:
    print(f"error {e.status}: {e.error}")

Smoke test

python -m walkindb

Provisions a fresh walk-in, runs SELECT 1, and prints the session token.

What walkindb is not

  • Not a durable database. Data is deleted after ~10 minutes.
  • Not for PII or regulated data. See the AUP.
  • Not a Postgres or MySQL replacement.

Apache 2.0. Server source at github.com/walkindb/walkindb. Landing page and full docs at walkindb.com.

Metadata

Release files for walkindb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for walkindb 0.1.1
File Size Uploaded
walkindb-0.1.1.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for walkindb 0.1.1
File Interpreter ABI Platform
walkindb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 kB

Release files / walkindb-0.1.1.tar.gz

Download URL walkindb-0.1.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1e33d46cebdac0185b183c6679e59dd8b2d970b922e7ded6099340e9d6870f55
BLAKE2b-256 checksum
How to use checksums
fe297aeee9e88a394d4e580cacc2c70ef276b2a5acb0376f15a3485f5d40df62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.2

Release files / walkindb-0.1.1-py3-none-any.whl

Download URL walkindb-0.1.1-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44548ced8d15a2e922414cd375be327e939af5c5c3c7086097525cc879890663
BLAKE2b-256 checksum
How to use checksums
9679a820577c4235b5d0d9c21d81e5be23c788bd72cc5b2c8386acc7e1007f9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page