datasette-import-table-0.3
توضیحات
Datasette plugin for importing tables from other Datasette instances
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datasette-import-table-0.3 |
| نام | datasette-import-table |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Simon Willison |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/simonw/datasette-import-table |
| آدرس اینترنتی | https://pypi.org/project/datasette-import-table/ |
| مجوز | Apache License, Version 2.0 |
# datasette-import-table
[](https://pypi.org/project/datasette-import-table/)
[](https://github.com/simonw/datasette-import-table/releases)
[](https://github.com/simonw/datasette-import-table/actions?query=workflow%3ATest)
[](https://github.com/simonw/datasette-import-table/blob/main/LICENSE)
Datasette plugin for importing tables from other Datasette instances
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-import-table
## Usage
Visit `/-/import-table` for the interface. Paste in the URL to a table page on another Datasette instance and click the button to import that table.
By default only [the root actor](https://datasette.readthedocs.io/en/stable/authentication.html#using-the-root-actor) can access the page - so you'll need to run Datasette with the `--root` option and click on the link shown in the terminal to sign in and access the page.
The `import-table` permission governs access. You can use permission plugins such as [datasette-permissions-sql](https://github.com/simonw/datasette-permissions-sql) to grant additional access to the write interface.
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-import-table
python3 -mvenv venv
source venv/bin/activate
Or if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
نیازمندی
| مقدار | نام |
|---|---|
| - | datasette |
| - | httpx |
| - | sqlite-utils |
| - | pytest |
| - | pytest-asyncio |
| - | httpx |
| - | pytest-httpx |
نحوه نصب
نصب پکیج whl datasette-import-table-0.3:
pip install datasette-import-table-0.3.whl
نصب پکیج tar.gz datasette-import-table-0.3:
pip install datasette-import-table-0.3.tar.gz