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
===========
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 txgoogle 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| txgoogle-0.0.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| txgoogle-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.6 kB
Release files / txgoogle-0.0.1.tar.gz
| Download URL | txgoogle-0.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b09803f55646489f9f12489ec10cf8710b1930fb4bfe2c06a413fc7671eb443d
|
|
BLAKE2b-256 checksum How to use checksums |
7e435bc3832b171928b33b6fbede346b4c90796eafb5706a35d7af8cec008d1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / txgoogle-0.0.1-py2.py3-none-any.whl
| Download URL | txgoogle-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9feb9dfdfc67bbbd39b37787c1586dfe78d45b12e6a3afefb4f8cb2aac049f05
|
|
BLAKE2b-256 checksum How to use checksums |
c9f3ce436744bd9e87d3c641fd8f89f62ea14cfe5075f401f7a8cd1b4aeec3ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |