This release is a pre-release and may not be stable for production use.
datasette-debug-gotham
A debugging utility for testing actor permissions/actions with DC Superheros (superman, Batman, Daily Planet, etc.)
It can be hard to test or debug Datasette plugins that use the new permissions system. This plugin offers a few builtin actors and a small widget for switching between actors:
Once you select an actor like "Clark Kent" or "Bruce Wayne", the page will refresh and Datasette will recognize the actor in request.actor. You can change actors however you like:
The switcher also has a "Signed out (no actor)" choice, which removes the cookie so you can see what a logged-out visitor sees. That is also the state it shows before you have picked anyone.
The pre-configured actors have some attributes you can use for debugging or "group permissions":
# https://github.com/datasette/datasette-debug-gotham/blob/main/datasette_debug_gotham/__init__.py#L8-L21
ACTORS = {
###### DAILY PLANET ######
"clark": {
"id": "clark",
"name": "Clark Kent",
"newsroom": "daily-planet",
"profile_picture_url": pfp("C", bg="blue"),
},
"lois": {
"id": "lois",
"name": "Lois Lane",
"newsroom": "daily-planet",
"profile_picture_url": pfp("L", bg="red"),
},
... # many more
}
Or access the actors with Python:
from dataseette_debug_gotham import ACTORS
print(ACTORS["clark"])
Personally I use this with uv for dynamic permissions testing:
uvx \
--from 'datasette>=1a' \
--with datasette-debug-gotham \
datasette \
--default-deny \
-s permissions.view-instance.newsroom daily-planet \
--memory
Here --default-deny means that by default everyone will see a Forbidden view-instance error when visiting dataset.
But, if you use the debug widget and select clark/lois/jimmy, since they have newsroom: daily-planet in their actor config, they will be able to see the instance!
And if you change to bruce/alfred/selina, who have newsroom: gotham-gazette, they will be blocked!
Metadata
Release files for datasette-debug-gotham 0.1.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datasette_debug_gotham-0.1.0a4.tar.gz | 13.5 kB | With provenance | Details for datasette_debug_gotham-0.1.0a4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_debug_gotham-0.1.0a4-py3-none-any.whl | Python 3 | none | any | Details for datasette_debug_gotham-0.1.0a4-py3-none-any.whl |
Total release size: 26.9 kB
Release files / datasette_debug_gotham-0.1.0a4.tar.gz
| Download URL | datasette_debug_gotham-0.1.0a4.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec5f390315fd8d1f983b98faab1e8a10805f784c854e3e4ea941691398d1566f
|
|
BLAKE2b-256 checksum How to use checksums |
84bbfac3fafaf68a1ff44fd29e04bea68e8e6266f0c6db5e990f5ada6baa552e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / datasette_debug_gotham-0.1.0a4-py3-none-any.whl
| Download URL | datasette_debug_gotham-0.1.0a4-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87253e9ed346b7eb217c4c3c6d5ffd751af7fea0c90fdf776a7fa42bf4dcfc5b
|
|
BLAKE2b-256 checksum How to use checksums |
7081afb69d8ca286b983abdc7b89547b63e31d9f8cd8a23cbdab424d9e62e710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for datasette-debug-gotham 0.1.0a4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for datasette_debug_gotham-0.1.0a4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.