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.3.tar.gz (6.2 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.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpsoauth-1.0.3.tar.gz
  • Upload date:
  • Size: 6.2 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.3.tar.gz
Algorithm Hash digest
SHA256 7fa3b7da2a13c9c32d1c19848af88f519d1a9f00ba9deee924b3fef2bec76911
MD5 7fbc77e2a24acbd34775a338f72042b0
BLAKE2b-256 0f794fe1c69516b1720d45990a1cd2274689d782a28e3e7d07da5f5f2e40cebf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpsoauth-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ea4145e17afe103c43063d8807e09a43e86b46bce778c34f23b56c90e8c96f
MD5 ff11b237a6e9dceade210739daf07be5
BLAKE2b-256 7903bd639e7f386f708f94b74547059fc5bcbac95d2161083f139ff9d554f167

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