Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datasette/datasette-unsafe-actor-debug
Debug plugin that lets you imitate any actor
https://github.com/datasette/datasette-unsafe-actor-debug
datasette-plugin
Last synced: about 1 month ago
JSON representation
Debug plugin that lets you imitate any actor
- Host: GitHub
- URL: https://github.com/datasette/datasette-unsafe-actor-debug
- Owner: datasette
- License: apache-2.0
- Created: 2024-02-18T19:15:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-18T20:20:13.000Z (11 months ago)
- Last Synced: 2024-11-24T17:34:14.236Z (about 2 months ago)
- Topics: datasette-plugin
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datasette-unsafe-actor-debug
[![PyPI](https://img.shields.io/pypi/v/datasette-unsafe-actor-debug.svg)](https://pypi.org/project/datasette-unsafe-actor-debug/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-unsafe-actor-debug?include_prereleases&label=changelog)](https://github.com/datasette/datasette-unsafe-actor-debug/releases)
[![Tests](https://github.com/datasette/datasette-unsafe-actor-debug/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-unsafe-actor-debug/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-unsafe-actor-debug/blob/main/LICENSE)Debug plugin that lets you imitate any actor. **Only use this for debugging purposes.**
## Installation
Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-unsafe-actor-debug
```
## ConfigurationYou need to set the following plugin configuration to enable this tool:
```yaml
plugins:
datasette-unsafe-actor-debug:
enabled: true
```With Datasette 1.0 alpha you can enable it like this:
```bash
datasette -s plugins.datasette-unsafe-actor-debug.enabled 1
```## Usage
This plugin adds a public page at `/-/unsafe-actor` that lets you sign into Datasette as _any_ actor.
This option will also be available through the Datasette global navigation menu.
**Do not enable this tool in production!**
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-unsafe-actor-debug
python3 -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
pytest
```