Skip to main content

PyPeri

PyPeri makes getting data out of Periscope easy, with a sane and understandable API.

https://img.shields.io/pypi/v/pyperi.svg https://img.shields.io/travis/takeontom/PyPeri.svg Documentation Status Updates 'Stories in Ready'

Features

  • Python 3

  • Easy to understand API

  • Fully tested & documented

Functionality so far:

  • Get information about Users

  • Get information about Broadcasts

  • Get a User’s Broadcast history

About

Periscope is pretty neat, but it’s difficult to get information out of it in a programatic way. Getting answers to simple questions like: “How many broadcasts did our client do this week” is not trivial, and in-depth analysis is pretty tough. This project is an attempt to make the lives of people who dip into Digital Marketing a little better.

PyPeri attempts to do this by providing a sane interface, and hides some of the tedium of using Periscope’s API. For example, Periscope makes doing simple things, like getting a list of a User’s past Broadcasts a 2-step process:

  1. Request a short-lived API session key from the Periscope Web Interface

  2. Use the session key on the Periscope API Interface using the getUserBroadcastsPublic endpoint.

PyPeri simplifies this considerably:

>>> from pyperi import Peri
>>> pp = Peri()
>>> history = pp.get_user_broadcast_history(username='george_clinton')

Quick start

Install via pip:

$ pip install pyperi

Do stuff:

>>> from pyperi import Peri
>>> pp = Peri()
>>> history = pp.get_user_broadcast_history(username='george_clinton')
>>> print(history[0]['status'])
#George Clinton listening to music in houston

Full documentation is available here: https://pyperi.readthedocs.io

License

PyPeri is free software, distributed under the MIT license.

History

0.2.0 (2016-12-23)

  • URL parsing with parse_periscope_url

  • Get a User’s Broadcast history with get_user_broadcast_history

  • Rename PyPeri class to Peri

0.1.0 (2016-12-12)

  • First release on PyPI.

Metadata

Release files for pyperi 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyperi 0.2.0
File Size Uploaded Provenance
pyperi-0.2.0.tar.gz 112.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyperi 0.2.0
File Interpreter ABI Platform
pyperi-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 118.7 kB

Release files / pyperi-0.2.0.tar.gz

Download URL pyperi-0.2.0.tar.gz
Size 112.1 kB
Tags Source
SHA-256 checksum
How to use checksums
94cb500404fe8e86b3264186ab0e96084a4f1b7af220269d3c258d86a9e04c77
BLAKE2b-256 checksum
How to use checksums
7d05c45f4554a5a6aaa10b8d21fc30d215716b929e41670aa576fd0e68adf2b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyperi-0.2.0-py2.py3-none-any.whl

Download URL pyperi-0.2.0-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e99148390fd2196e079bd755c3c459a6b0dbaae1c17d204d2d11cc8466f16032
BLAKE2b-256 checksum
How to use checksums
6974f8d8a0b49f6760b0a2d5e566ddcff37acc44abea9f7875fe42d3e09e6a1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyperi 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page