peerreach
peerreach is a python library to access the api from http://peerreach.com
For more infor about the api go to http://peerreach.com/api/overview
The last source code ant hte bugtracking is at http://bitbucket.org/ferranp/peerreach
Install
Install using pip:
pip install peerreach
or using easy_install:
easy_install peerreach
Usage
By now the api does not requre authentiation, so to use is:
import peerreach
api = peerreach.Api()
# lookup one user by screen name
userdata = api.lookup_user(screen_name="user")
# lookup one user by user_id
userdata = api.lookup_user(user_id=12345)
# lookup various users by screen name
usersdata = api.lookup_user(screen_names=("user1", "user2"))
# lookup various users by user_ids
usersdata = api.lookup_user(user_ids=(12345, 54321))
The data returned is a dictionary containing the data returned by the api. You can change the deserializer to get the raw api response or the response as an object:
import peerreach # with raw data api = peerreach.Api(parser=peerreach.RawPArser()) rawdata = api.lookup_user(screen_name="user") # with object api = peerreach.Api(parser=peerreach.ObjectPArser()) objectdata = api.lookup_user(screen_name="user")
Command Line
The package also includes a command line tool to test the api:
$ peerreach --help Usage: peerreach [options] screen_name [screen_name...] Options: --version show program's version number and exit -h, --help show this help message and exit -i, --ids Use twitter ids instead of screen name -r, --raw Show raw peerreach api output
Metadata
Release files for peerreach 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| peerreach-0.2.tar.gz | 3.2 kB | Without provenance | Details for peerreach-0.2.tar.gz |
Release files / peerreach-0.2.tar.gz
| Download URL | peerreach-0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbc65dae5ef761248de0dc05a20dd69c66cbef68a6ccfad06cd2834e893c91c9
|
|
BLAKE2b-256 checksum How to use checksums |
c17065d4aab05b98650e7af6fee6deb91c52f115e358e8be9777168a88478f5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for peerreach 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.