pocket

A python wrapper for the pocket api.

https://github.com/tapanpandita/pocket

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 12 committers (8.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

A python wrapper for the pocket api.

Basic Info
  • Host: GitHub
  • Owner: tapanpandita
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: master
  • Size: 51.8 KB
Statistics
  • Stars: 351
  • Watchers: 18
  • Forks: 36
  • Open Issues: 5
  • Releases: 0
Created almost 14 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

Pocket

CircleCI Pypi PyPI - Downloads GitHub

A python wrapper for the pocket api.

Installation

pip install pocket

Usage

You'll need your pocket consumer key. You can find this from your account page. You will also need the access token for the account you want to modify. Then, you need to create an instance of the pocket object

```python import pocket

pocketinstance = pocket.Pocket(consumerkey, access_token) ```

Chaining Modify Methods

All the modify methods can be chained together for creating one bulk query. If you don't wish to chain the methods, just pass wait=False.

```python import pocket

pocketinstance = pocket.Pocket(consumerkey, access_token)

perfoms all these actions in one request

NOTE: Each individual method returns the instance itself. The response

dictionary is not returned till commit is called on the instance.

response, headers = pocketinstance.archive(itemid1).archive(itemid2).favorite(itemid3).delete(item_id4).commit()

performs action immediately and returns a dictionary

pocketinstance.archive(itemid1, wait=False) ```

OAUTH

To get request token, use the getrequesttoken class method. To get the access token use the getaccesstoken method.

```python from pocket import Pocket

requesttoken = Pocket.getrequesttoken(consumerkey=consumerkey, redirecturi=redirect_uri)

URL to redirect user to, to authorize your app

authurl = Pocket.getauthurl(code=requesttoken, redirecturi=redirecturi)

e.g. import subprocess; subprocess.run(['xdg-open', auth_url])

usercredentials = Pocket.getcredentials(consumerkey=consumerkey, code=request_token)

accesstoken = usercredentials['access_token'] ```

For detailed documentation of the methods available, please visit the official pocket api documentation.

Owner

  • Name: Tapan Pandita
  • Login: tapanpandita
  • Kind: user
  • Location: London, England
  • Company: Monzo

GitHub Events

Total
  • Issues event: 1
  • Watch event: 7
  • Pull request event: 1
  • Fork event: 1
Last Year
  • Issues event: 1
  • Watch event: 7
  • Pull request event: 1
  • Fork event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 85
  • Total Committers: 12
  • Avg Commits per committer: 7.083
  • Development Distribution Score (DDS): 0.176
Past Year
  • Commits: 14
  • Committers: 1
  • Avg Commits per committer: 14.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Tapan Pandita t****a@g****m 70
Filipe Ximenes f****s@g****m 3
kumarstack55 k****5@g****m 3
Victor z****e@g****m 1
dependabot[bot] 4****]@u****m 1
Dmitrii Gerasimov k****s@g****m 1
Olivier Demah o****r@f****o 1
robbie r****e@p****t 1
moqada m****a@g****m 1
Chris Vaughn c****n@l****v 1
Amit Upadhyay c****s@a****m 1
Peter M. Landwehr p****h@c****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 14
  • Total pull requests: 16
  • Average time to close issues: 7 months
  • Average time to close pull requests: 5 months
  • Total issue authors: 13
  • Total pull request authors: 15
  • Average comments per issue: 2.86
  • Average comments per pull request: 0.69
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • filipeximenes (2)
  • fniephaus (1)
  • AlJohri (1)
  • pirate (1)
  • seanbetts (1)
  • foxmask (1)
  • louxiu (1)
  • rkhwaja (1)
  • Vinz87 (1)
  • dmoklaf (1)
  • whonut (1)
  • amitu (1)
  • gregimba (1)
Pull Request Authors
  • dependabot[bot] (2)
  • rgeronimi (2)
  • hyperreal64 (1)
  • filipeximenes (1)
  • foxmask (1)
  • moqada (1)
  • amitu (1)
  • ziliangpeng (1)
  • erfan-mehraban (1)
  • abdinoor (1)
  • foolscap (1)
  • pmlandwehr (1)
  • kumarstack55 (1)
  • karlicoss (1)
  • chrisvaughn (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels
dependencies (2)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 3,178 last-month
  • Total dependent packages: 1
    (may contain duplicates)
  • Total dependent repositories: 66
    (may contain duplicates)
  • Total versions: 19
  • Total maintainers: 1
pypi.org: pocket

api wrapper for getpocket.com

  • Versions: 18
  • Dependent Packages: 1
  • Dependent Repositories: 66
  • Downloads: 3,178 Last month
  • Docker Downloads: 0
Rankings
Docker downloads count: 1.4%
Dependent repos count: 1.8%
Stargazers count: 3.5%
Average: 3.7%
Downloads: 4.4%
Dependent packages count: 4.7%
Forks count: 6.6%
Maintainers (1)
Last synced: 12 months ago
conda-forge.org: pocket
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Stargazers count: 19.7%
Forks count: 26.7%
Average: 32.9%
Dependent repos count: 34.0%
Dependent packages count: 51.2%
Last synced: 12 months ago

Dependencies

requirements.txt pypi
  • coverage ==3.7.1
  • mock ==1.0.1
  • nose ==1.3.0
  • requests ==2.20.0
setup.py pypi
  • requests *