home / content / pypi_packages

pypi_packages: datasette-copyable

This data as json

name summary classifiers description author author_email description_content_type home_page keywords license maintainer maintainer_email package_url platform project_url project_urls release_url requires_dist requires_python version yanked yanked_reason
datasette-copyable Datasette plugin for outputting tables in formats suitable for copy and paste [] # datasette-copyable [![PyPI](https://img.shields.io/pypi/v/datasette-copyable.svg)](https://pypi.org/project/datasette-copyable/) [![Changelog](https://img.shields.io/github/v/release/simonw/datasette-copyable?include_prereleases&label=changelog)](https://github.com/simonw/datasette-copyable/releases) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-copyable/blob/master/LICENSE) Datasette plugin for outputting tables in formats suitable for copy and paste ## Installation Install this plugin in the same environment as Datasette. $ pip install datasette-copyable ## Demo You can try this plugin on [fivethirtyeight.datasettes.com](https://fivethirtyeight.datasettes.com/) - browse for tables or queries there and look for the "copyable" link. Here's an example for a table of [airline safety data](https://fivethirtyeight.datasettes.com/fivethirtyeight/airline-safety%2Fairline-safety.copyable). ## Usage This plugin adds a `.copyable` output extension to every table, view and query. Navigating to this page will show an interface allowing you to select a format for copying and pasting the demo. The default is TSV, which is suitable for copying into Google Sheets or Excel. You can add `?_raw=1` to get back just the raw data. ## Development To set up this plugin locally, first checkout the code. Then create a new virtual environment: cd datasette-copyable 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 Simon Willison   text/markdown https://github.com/simonw/datasette-copyable   Apache License, Version 2.0     https://pypi.org/project/datasette-copyable/   https://pypi.org/project/datasette-copyable/ {"CI": "https://github.com/simonw/datasette-copyable/actions", "Changelog": "https://github.com/simonw/datasette-copyable/releases", "Homepage": "https://github.com/simonw/datasette-copyable", "Issues": "https://github.com/simonw/datasette-copyable/issues"} https://pypi.org/project/datasette-copyable/0.3.1/ ["datasette (>=0.49)", "tabulate", "pytest ; extra == 'test'", "pytest-asyncio ; extra == 'test'", "httpx ; extra == 'test'", "sqlite-utils ; extra == 'test'"]   0.3.1 0  

Links from other tables

  • 4 rows from package in pypi_versions
  • 8 rows from package in pypi_releases
Powered by Datasette · Queries took 0.993ms