Skip to main content

A python client library for Google Play Services OAuth.

Project description

gpsoauth

CI PyPI version repominder

Python client library for Google Play Services OAuth.

gpsoauth allows python code to use the "master token" flow that KB Sriram described at http://sbktech.blogspot.com/2014/01/inside-android-play-services-magic.html.

import gpsoauth

email = 'example@gmail.com'
password = 'my-password'
android_id = '0123456789abcdef'

master_response = gpsoauth.perform_master_login(email, password, android_id)
master_token = master_response['Token']

auth_response = gpsoauth.perform_oauth(
    email, master_token, android_id,
    service='sj', app='com.google.android.music',
    client_sig='...')
token = auth_response['Auth']

This can be useful when writing code that poses as a Google app, like gmusicapi does here.

Many thanks to Dima Kovalenko for reverse engineering the EncryptedPasswd signature in https://web.archive.org/web/20150814054004/http://codedigging.com/blog/2014-06-09-about-encryptedpasswd/.

For an explanation of recent changes, see the changelog.

Ports

Contributing

See Contributing guidelines. This is an open-source project and all countributions are highly welcomed.

Project details


Download files

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

Source Distribution

gpsoauth-1.0.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpsoauth-1.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file gpsoauth-1.0.4.tar.gz.

File metadata

  • Download URL: gpsoauth-1.0.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.7

File hashes

Hashes for gpsoauth-1.0.4.tar.gz
Algorithm Hash digest
SHA256 496617358ae7ccaf0fe282bd7fb6e63a255d594407a7c5af84dcc84bb6349ac8
MD5 aa990961206eed5102b8ec3ecf531fc5
BLAKE2b-256 7ce48c34dc4876a0f9929b264103d0a698b478b8ea30a4384885035af18d76a8

See more details on using hashes here.

File details

Details for the file gpsoauth-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: gpsoauth-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.7

File hashes

Hashes for gpsoauth-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 17218ac3cb5c0183666d59a10e1fb5657472d29f969f231a33509ceb79b26f4f
MD5 9a820a678ea6d719efb0281fb892c87b
BLAKE2b-256 89c95b1dc38c46fd005c961c4663120f7e103bcb3e4e61305f2719e7898cfab7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page