Skip to main content
txgoogleapi
===========

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


Requesters
----------

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


Usage
-----

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


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


@defer.inlineCallbacks
def main(reactor):
result = yield google.urlshortener.url.insert(body={
'longUrl': 'http://github.com',
})
print 'Short url:', result['id']

react(main)


Version 1.0.0 - Initial release
- Everything

Release files for txgoogleapi 0.0.1

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

Source distribution (sdist)

Source distribution for txgoogleapi 0.0.1
File Size Uploaded
txgoogleapi-0.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

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

Total release size: 12.6 kB

Release files / txgoogleapi-0.0.1.tar.gz

Download URL txgoogleapi-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
93622fa47ba58428353f50ae97c01c9614f7db4a5ffa7c7ed2f954f981c0204a
BLAKE2b-256 checksum
How to use checksums
9ee7f4fe437fa1649a29078008dce026c8b85168169a4b5db78aeede3f5a5ba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / txgoogleapi-0.0.1-py2.py3-none-any.whl

Download URL txgoogleapi-0.0.1-py2.py3-none-any.whl
Size 8.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1efebd5fea77df11fa15b20bb2a076ddea52de44db234305267fd74fed30f2eb
BLAKE2b-256 checksum
How to use checksums
bc905b3da53f697a18904ab52f1ae6105b7f7f76c9a52e9878f1d73f9321a2f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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