Name | pocket-to-sqlite JSON |
Version |
0.2.3
JSON |
| download |
home_page | |
Summary | Create a SQLite database containing data from your Pocket account |
upload_time | 2023-07-09 01:16:08 |
maintainer | |
docs_url | None |
author | Simon Willison |
requires_python | >3.7 |
license | Apache-2.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pocket-to-sqlite
[![PyPI](https://img.shields.io/pypi/v/pocket-to-sqlite.svg)](https://pypi.org/project/pocket-to-sqlite/)
[![Changelog](https://img.shields.io/github/v/release/dogsheep/pocket-to-sqlite?include_prereleases&label=changelog)](https://github.com/dogsheep/pocket-to-sqlite/releases)
[![Tests](https://github.com/dogsheep/pocket-to-sqlite/workflows/Test/badge.svg)](https://github.com/dogsheep/pocket-to-sqlite/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/dogsheep/pocket-to-sqlite/blob/main/LICENSE)
Create a SQLite database containing data from your [Pocket](https://getpocket.com/) account.
## How to install
```bash
pip install pocket-to-sqlite
```
## Usage
You will need to first obtain a valid OAuth token for your Pocket account. You can do this by running the `auth` command and following the prompts:
```bash
pocket-to-sqlite auth
```
Which looks like this:
```
Visit this page and sign in with your Pocket account:
https://getpocket.com/auth/author...
Once you have signed in there, hit <enter> to continue
Authentication tokens written to auth.json
```
Now you can fetch all of your items from Pocket like this:
```bash
pocket-to-sqlite fetch pocket.db
```
The first time you run this command it will fetch all of your items, and display a progress bar while it does it.
On subsequent runs it will only fetch new items.
You can force it to fetch everything from the beginning again using `--all`. Use `--silent` to disable the progress bar.
## Using with Datasette
The SQLite database produced by this tool is designed to be browsed using [Datasette](https://datasette.readthedocs.io/). Use the [datasette-render-timestamps](https://github.com/simonw/datasette-render-timestamps) plugin to improve the display of the timestamp values.
Raw data
{
"_id": null,
"home_page": "",
"name": "pocket-to-sqlite",
"maintainer": "",
"docs_url": null,
"requires_python": ">3.7",
"maintainer_email": "",
"keywords": "",
"author": "Simon Willison",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/2b/c4/ccfb042bc2dc13521ad140d71c00e8633304eae35a2ef65bb8732f5e96e0/pocket-to-sqlite-0.2.3.tar.gz",
"platform": null,
"description": "# pocket-to-sqlite\n\n[![PyPI](https://img.shields.io/pypi/v/pocket-to-sqlite.svg)](https://pypi.org/project/pocket-to-sqlite/)\n[![Changelog](https://img.shields.io/github/v/release/dogsheep/pocket-to-sqlite?include_prereleases&label=changelog)](https://github.com/dogsheep/pocket-to-sqlite/releases)\n[![Tests](https://github.com/dogsheep/pocket-to-sqlite/workflows/Test/badge.svg)](https://github.com/dogsheep/pocket-to-sqlite/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/dogsheep/pocket-to-sqlite/blob/main/LICENSE)\n\nCreate a SQLite database containing data from your [Pocket](https://getpocket.com/) account.\n\n## How to install\n```bash\npip install pocket-to-sqlite\n```\n## Usage\n\nYou will need to first obtain a valid OAuth token for your Pocket account. You can do this by running the `auth` command and following the prompts:\n```bash\npocket-to-sqlite auth\n```\nWhich looks like this:\n```\nVisit this page and sign in with your Pocket account:\n\nhttps://getpocket.com/auth/author...\n\nOnce you have signed in there, hit <enter> to continue\nAuthentication tokens written to auth.json\n```\n\nNow you can fetch all of your items from Pocket like this:\n\n```bash\npocket-to-sqlite fetch pocket.db\n```\n\nThe first time you run this command it will fetch all of your items, and display a progress bar while it does it.\n\nOn subsequent runs it will only fetch new items.\n\nYou can force it to fetch everything from the beginning again using `--all`. Use `--silent` to disable the progress bar.\n\n## Using with Datasette\n\nThe SQLite database produced by this tool is designed to be browsed using [Datasette](https://datasette.readthedocs.io/). Use the [datasette-render-timestamps](https://github.com/simonw/datasette-render-timestamps) plugin to improve the display of the timestamp values.\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Create a SQLite database containing data from your Pocket account",
"version": "0.2.3",
"project_urls": {
"CI": "https://github.com/dogsheep/pocket-to-sqlite/actions",
"Changelog": "https://github.com/dogsheep/pocket-to-sqlite/releases",
"Issues": "https://github.com/dogsheep/pocket-to-sqlite/issues",
"homepage": "https://github.com/dogsheep/pocket-to-sqlite"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bc9e7c93f37dfbe2d155976616b84912fd8a647ad53193613c8021b83903ff40",
"md5": "e21813ec69377d4859981ab6dc1e930a",
"sha256": "a9822e12b5e93ff7dde9efbe18341e7e98601e1f25f1dd0e68535fee405a06e7"
},
"downloads": -1,
"filename": "pocket_to_sqlite-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e21813ec69377d4859981ab6dc1e930a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">3.7",
"size": 9392,
"upload_time": "2023-07-09T01:16:07",
"upload_time_iso_8601": "2023-07-09T01:16:07.455649Z",
"url": "https://files.pythonhosted.org/packages/bc/9e/7c93f37dfbe2d155976616b84912fd8a647ad53193613c8021b83903ff40/pocket_to_sqlite-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2bc4ccfb042bc2dc13521ad140d71c00e8633304eae35a2ef65bb8732f5e96e0",
"md5": "daf8d3310edb14bf36cda2e7be3d6b48",
"sha256": "396690c372e12110b0af59a17e51baafd7d4656f44f4d6e68c894a454e186eab"
},
"downloads": -1,
"filename": "pocket-to-sqlite-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "daf8d3310edb14bf36cda2e7be3d6b48",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">3.7",
"size": 9178,
"upload_time": "2023-07-09T01:16:08",
"upload_time_iso_8601": "2023-07-09T01:16:08.723512Z",
"url": "https://files.pythonhosted.org/packages/2b/c4/ccfb042bc2dc13521ad140d71c00e8633304eae35a2ef65bb8732f5e96e0/pocket-to-sqlite-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-09 01:16:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dogsheep",
"github_project": "pocket-to-sqlite",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pocket-to-sqlite"
}