datasette-paste


Namedatasette-paste JSON
Version 0.1a5 PyPI version JSON
download
home_pageNone
SummaryPaste data to create tables in Datasette
upload_time2024-04-06 16:26:03
maintainerNone
docs_urlNone
authorSimon Willison
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datasette-paste

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

Paste data to create tables in Datasette

**This plugin is no longer being developed.** It has been replaced by [datasette-import](https://github.com/datasette/datasette-import).

## Installation

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

This plugin adds a database action item called "Create table with pasted data".

This action is available to users with the `create-table` permission.

It links to a page that allows users to paste in CSV, TSV or JSON data, and then use that to create and populate a new table in Datasette.

CSV and TSV data must have headers on the first row.

JSON data must be an array of objects with the same keys, or a container object object where one of the keys is an array of objects.

## Credits

The CSV and TSV parsing is performed using [Papa Parse](https://www.papaparse.com/), an MIT licensed JavaScript library that is bundled with this plugin.

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-paste
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
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "datasette-paste",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Simon Willison",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ef/21/2d66dbbf37b7db2c8ce7fd61ad428ec87f350ced4102e84bb254e5b274e6/datasette-paste-0.1a5.tar.gz",
    "platform": null,
    "description": "# datasette-paste\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-paste.svg)](https://pypi.org/project/datasette-paste/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-paste?include_prereleases&label=changelog)](https://github.com/datasette/datasette-paste/releases)\n[![Tests](https://github.com/datasette/datasette-paste/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-paste/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-paste/blob/main/LICENSE)\n\nPaste data to create tables in Datasette\n\n**This plugin is no longer being developed.** It has been replaced by [datasette-import](https://github.com/datasette/datasette-import).\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-paste\n```\n## Usage\n\nThis plugin adds a database action item called \"Create table with pasted data\".\n\nThis action is available to users with the `create-table` permission.\n\nIt links to a page that allows users to paste in CSV, TSV or JSON data, and then use that to create and populate a new table in Datasette.\n\nCSV and TSV data must have headers on the first row.\n\nJSON data must be an array of objects with the same keys, or a container object object where one of the keys is an array of objects.\n\n## Credits\n\nThe CSV and TSV parsing is performed using [Papa Parse](https://www.papaparse.com/), an MIT licensed JavaScript library that is bundled with this plugin.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-paste\npython3 -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Paste data to create tables in Datasette",
    "version": "0.1a5",
    "project_urls": {
        "CI": "https://github.com/datasette/datasette-paste/actions",
        "Changelog": "https://github.com/datasette/datasette-paste/releases",
        "Homepage": "https://github.com/datasette/datasette-paste",
        "Issues": "https://github.com/datasette/datasette-paste/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7a062b2f11f2b42fdb442cdb5276c362135c64f327141eabd882fca44e20005",
                "md5": "c898638e2cdb8ea4540f4f098dae6525",
                "sha256": "0d09a6922d9bc278c27be3f468cecf8aa40d35dbd2b37b9ef91b205bb1edc1ce"
            },
            "downloads": -1,
            "filename": "datasette_paste-0.1a5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c898638e2cdb8ea4540f4f098dae6525",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 18351,
            "upload_time": "2024-04-06T16:26:02",
            "upload_time_iso_8601": "2024-04-06T16:26:02.031463Z",
            "url": "https://files.pythonhosted.org/packages/e7/a0/62b2f11f2b42fdb442cdb5276c362135c64f327141eabd882fca44e20005/datasette_paste-0.1a5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef212d66dbbf37b7db2c8ce7fd61ad428ec87f350ced4102e84bb254e5b274e6",
                "md5": "3b64d98256708427f33655f206b30d20",
                "sha256": "4309c00a13b69fa6958b0f2bd4b753983e7f9dfe7c54dc59d639c0cc18dc356f"
            },
            "downloads": -1,
            "filename": "datasette-paste-0.1a5.tar.gz",
            "has_sig": false,
            "md5_digest": "3b64d98256708427f33655f206b30d20",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 18732,
            "upload_time": "2024-04-06T16:26:03",
            "upload_time_iso_8601": "2024-04-06T16:26:03.899608Z",
            "url": "https://files.pythonhosted.org/packages/ef/21/2d66dbbf37b7db2c8ce7fd61ad428ec87f350ced4102e84bb254e5b274e6/datasette-paste-0.1a5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-06 16:26:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "datasette",
    "github_project": "datasette-paste",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-paste"
}
        
Elapsed time: 0.71101s