gpsoauth
A python client library for Google Play Services OAuth.
What it is and what it does
gpsoauth is a Python client library that implements Google Play Services' master token authentication flow, allowing your code to obtain OAuth tokens for Google services using email and password credentials. It wraps the cryptographic handshake and HTTP requests needed to authenticate as an Android device, which is useful when you need to programmatically access Google services that expect Play Services authentication—for example, accessing Google Music or other Google APIs that mobile apps use.
The library depends on pycryptodomex for cryptographic operations, requests and urllib3 for HTTP communication. It supports Python 3.9 through 3.13 and is classified as production-stable. The package has been maintained since its early releases and remains in the top tier of PyPI packages by download volume, though the last release was over a year ago.
Use it for:
- Authenticate to Google Music or other Google services that expect Android Play Services credentials.
- Build a bot or automation tool that needs to log into a Google account and access Play Services–protected APIs.
- Reverse-engineer or interact with Google services that use the master token flow for authentication.
- Integrate Google account authentication into a Python application without using official Google SDKs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements Google Play Services OAuth authentication for Python, enabling the master token flow to obtain access tokens for Google services.
Yes, if you need to authenticate to Google Play Services APIs and understand the security implications. The library is stable and permissively licensed, with low install friction. However, the aging maintenance status and release gap mean you should verify that Google's authentication endpoints have not changed and that the flow still works with current account security policies before relying on it in production.
Install
gpsoauth on PyPI
pip
pip install gpsoauthuv
uv add gpsoauthpoetry
poetry add gpsoauthInstalling gpsoauth
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was over a year ago—but the repository remains active with a recent commit and no archived status.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must retain the license notice but face no copyleft obligations.
Quickstart
pip install gpsoauth
import gpsoauth
master_response = gpsoauth.perform_master_login('user@gmail.com', 'password', 'android_id')
master_token = master_response['Token']
auth_response = gpsoauth.perform_oauth(
'user@gmail.com', master_token, 'android_id',
service='sj', app='com.google.android.music', client_sig='...')
token = auth_response['Auth']
Requires valid Google account credentials and a valid Android device ID; Google may reject requests if account security policies or device verification fail.
Verify before relying
- Whether Google's authentication endpoints remain stable or if changes to their security policies have broken the master token flow.
- Current compatibility with modern Google account security features (2FA, app passwords, device verification).
- Whether the library is actively maintained or in maintenance-only mode given the release gap.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — pycryptodomex, requests, urllib3 |
| Maintenance | aging — 406 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 751,186/month — #5,157 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gpsoauth-2.0.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
gkeepapigkeepapi is an unofficial client library for…
permissive · top 15,000 on PyPI
glocaltokensExtracts local authentication tokens from…
permissive · top 15,000 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
gassist-textWraps the Google Assistant API to send text…
permissive · top 15,000 on PyPI
requests-oauthAdds OAuth 1.0 authentication support to the…
permissive · top 5,000 on PyPI
garthGarth provides Python access to Garmin Connect…
permissive · top 15,000 on PyPI
plexauthHandles authorization flow to obtain tokens…
permissive · top 15,000 on PyPI
supabase-authA Python client library for Supabase Auth that…
permissive · top 1,000 on PyPI
googleauthenticationA meta package for connecting Python…
permissive · top 15,000 on PyPI
nsj-gcf-utilsProvides utility modules for building Google…
unclear · top 15,000 on PyPI