Skip to main content

Google Data APIs for twisted

Project description


This library allows accessing Google Data APIs in an asynchronous fashion
using the Twisted application framework.

Currently, very few APIs are actually implemented but adding APIs should be
rather trivial.

Implemented APIs

- Google URL shortener
- YouTube Data API v3
- Playlists
- PlaylistItems


Google APIs are usually accessed using either OAuth 2.0 authentication or
by adding an API key to the query string. txgoogleapi provides utility
classes for both these scenarios.

txgoogleapi.unauth_requester - Unauthenticated API access
txgoogleapi.api_key_requester - Authentication using an API key
txgoogleapi.oauth_requester - Authentication using OAuth 2.0


from twisted.internet import defer
from twisted.internet.task import react
import txgoogleapi

requester = txgoogleapi.ApiKeyRequester(YOUR_API_KEY)
google = txgoogleapi.Google(requester)

def main(reactor):
result = yield google.urlshortener.url.insert(body={
'longUrl': '',
print 'Short url:', result['id']


Version 1.0.0 - Initial release
- Everything

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for txgoogleapi, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size txgoogleapi-0.0.1-py2.py3-none-any.whl (8.1 kB) File type Wheel Python version 3.5 Upload date Hashes View hashes
Filename, size txgoogleapi-0.0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page