Skip to content

Commit

Permalink
Rename datasette-assistant to datasette-query-assistant, refs #7
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 31, 2024
1 parent f945235 commit 2059aa6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# datasette-assistant
# datasette-query-assistant

[![PyPI](https://img.shields.io/pypi/v/datasette-assistant.svg)](https://pypi.org/project/datasette-assistant/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-assistant?include_prereleases&label=changelog)](https://github.com/datasette/datasette-assistant/releases)
[![Tests](https://github.com/datasette/datasette-assistant/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-assistant/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-assistant/blob/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/datasette-query-assistant.svg)](https://pypi.org/project/datasette-query-assistant/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-query-assistant?include_prereleases&label=changelog)](https://github.com/datasette/datasette-query-assistant/releases)
[![Tests](https://github.com/datasette/datasette-query-assistant/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-query-assistant/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-query-assistant/blob/main/LICENSE)

Query databases and tables with AI assistance

Expand All @@ -13,7 +13,7 @@ Query databases and tables with AI assistance

Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-assistant
datasette install datasette-query-assistant
```
## Usage

Expand All @@ -23,7 +23,7 @@ Users with `execute-sql` permission will gain a database action menu item for "Q

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-assistant
cd datasette-query-assistant
python3 -m venv venv
source venv/bin/activate
```
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "datasette-assistant"
name = "datasette-query-assistant"
version = "0.1"
description = "Query databases and tables with AI assistance"
readme = "README.md"
Expand All @@ -16,13 +16,13 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/datasette/datasette-assistant"
Changelog = "https://github.com/datasette/datasette-assistant/releases"
Issues = "https://github.com/datasette/datasette-assistant/issues"
CI = "https://github.com/datasette/datasette-assistant/actions"
Homepage = "https://github.com/datasette/datasette-query-assistant"
Changelog = "https://github.com/datasette/datasette-query-assistant/releases"
Issues = "https://github.com/datasette/datasette-query-assistant/issues"
CI = "https://github.com/datasette/datasette-query-assistant/actions"

[project.entry-points.datasette]
assistant = "datasette_assistant"
assistant = "datasette_query_assistant"

[project.optional-dependencies]
test = ["pytest", "pytest-asyncio", "pytest-recording", "sqlite-utils"]
Expand All @@ -31,4 +31,4 @@ test = ["pytest", "pytest-asyncio", "pytest-recording", "sqlite-utils"]
asyncio_mode = "strict"

[tool.setuptools.package-data]
datasette_assistant = ["templates/*"]
datasette_query_assistant = ["templates/*"]
4 changes: 2 additions & 2 deletions tests/test_assistant.py → tests/test_query_assistant.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datasette.app import Datasette
from datasette_assistant import get_related_tables
from datasette_query_assistant import get_related_tables
import pytest
import sqlite_utils

Expand All @@ -10,7 +10,7 @@ async def test_plugin_is_installed():
response = await datasette.client.get("/-/plugins.json")
assert response.status_code == 200
installed_plugins = {p["name"] for p in response.json()}
assert "datasette-assistant" in installed_plugins
assert "datasette-query-assistant" in installed_plugins


def test_get_related_tables():
Expand Down

0 comments on commit 2059aa6

Please sign in to comment.