datasette-notebook-0.2a0
توضیحات
A markdown wiki and dashboarding system for Datasette
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datasette-notebook-0.2a0 |
| نام | datasette-notebook |
| نسخه کتابخانه | 0.2a0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Simon Willison |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/simonw/datasette-notebook |
| آدرس اینترنتی | https://pypi.org/project/datasette-notebook/ |
| مجوز | Apache License, Version 2.0 |
# datasette-notebook
[](https://pypi.org/project/datasette-notebook/)
[](https://github.com/simonw/datasette-notebook/releases)
[](https://github.com/simonw/datasette-notebook/actions?query=workflow%3ATest)
[](https://github.com/simonw/datasette-notebook/blob/main/LICENSE)
A markdown wiki and dashboarding system for Datasette
This is an **experimental alpha** and everything about it is likely to change.
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-notebook
## Usage
Start Datasette with a SQLite file called `notebook.db`:
datasette notebook.db --create
Here the `--create` option will create that file if it does not yet exist.
Visit `/n` to create an index page. Visit `/n/name` to create a page with that name.
You can link to other pages using `[[WikiLink]]` syntax. This will create a link to `/n/WikiLink` - spaces will be converted to underscores, and you can link to nested pages such as `[[nested/page]]`.
## Configuration
You can use a file other than `notebook.db` by configuring it using `metadata.yml`. To use a database file called `otherfile.db` you would use this:
```yaml
plugins:
datasette-notebook:
database: otherfile
```
Then start Datasette like so:
datasette otherfile.db
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-notebook
python3 -mvenv venv
source venv/bin/activate
Or if you are using `pipenv`:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
نیازمندی
| مقدار | نام |
|---|---|
| - | datasette |
| - | sqlite-utils |
| - | markdown |
| - | bleach |
| - | pytest |
| - | pytest-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl datasette-notebook-0.2a0:
pip install datasette-notebook-0.2a0.whl
نصب پکیج tar.gz datasette-notebook-0.2a0:
pip install datasette-notebook-0.2a0.tar.gz