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
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
Metadata Files
README.md
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
- Repositories: 25
- Profile: https://github.com/tapanpandita
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
Top Committers
| Name | 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
Pull Request Labels
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
- Homepage: http://github.com/tapanpandita/pocket/
- Documentation: https://pocket.readthedocs.io/
- License: BSD
-
Latest release: 0.3.6
published about 11 years ago
Rankings
Maintainers (1)
conda-forge.org: pocket
- Homepage: https://github.com/tapanpandita/pocket/
- License: BSD 3-Clause
-
Latest release: 0.3.6
published almost 4 years ago
Rankings
Dependencies
- coverage ==3.7.1
- mock ==1.0.1
- nose ==1.3.0
- requests ==2.20.0
- requests *