{"id":26518822,"url":"https://github.com/geeknam/python-gcm","last_synced_at":"2025-12-18T03:59:47.936Z","repository":{"id":3795584,"uuid":"4874179","full_name":"geeknam/python-gcm","owner":"geeknam","description":"Python client for Google Cloud Messaging for Android (GCM)","archived":false,"fork":false,"pushed_at":"2019-04-23T07:52:46.000Z","size":152,"stargazers_count":459,"open_issues_count":10,"forks_count":145,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-03-21T10:02:38.646Z","etag":null,"topics":["google","push-notifications","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geeknam.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-03T15:49:59.000Z","updated_at":"2025-02-01T05:07:05.000Z","dependencies_parsed_at":"2022-08-23T23:41:13.503Z","dependency_job_id":null,"html_url":"https://github.com/geeknam/python-gcm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/geeknam/python-gcm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeknam%2Fpython-gcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeknam%2Fpython-gcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeknam%2Fpython-gcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeknam%2Fpython-gcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geeknam","download_url":"https://codeload.github.com/geeknam/python-gcm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeknam%2Fpython-gcm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27790826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-18T02:00:09.725Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","push-notifications","python"],"created_at":"2025-03-21T10:02:37.547Z","updated_at":"2025-12-18T03:59:47.922Z","avatar_url":"https://github.com/geeknam.png","language":"Python","readme":"python-gcm\n======================\n\n.. image:: https://badges.gitter.im/Join%20Chat.svg\n   :alt: Join the chat at https://gitter.im/geeknam/python-gcm\n   :target: https://gitter.im/geeknam/python-gcm?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\n.. image:: https://img.shields.io/pypi/v/python-gcm.svg\n   :target: https://pypi.python.org/pypi/python-gcm\n.. image:: https://img.shields.io/pypi/dm/python-gcm.svg\n   :target: https://pypi.python.org/pypi/python-gcm\n.. image:: https://secure.travis-ci.org/geeknam/python-gcm.png?branch=master\n   :alt: Build Status\n   :target: http://travis-ci.org/geeknam/python-gcm\n.. image:: https://landscape.io/github/geeknam/python-gcm/master/landscape.png\n   :target: https://landscape.io/github/geeknam/python-gcm/master\n   :alt: Code Health\n.. image:: https://coveralls.io/repos/geeknam/python-gcm/badge.svg?branch=master\n   :target: https://coveralls.io/r/geeknam/python-gcm\n.. image:: https://img.shields.io/gratipay/geeknam.svg\n   :target: https://gratipay.com/geeknam/\n\nPython client for Google Cloud Messaging for Android (GCM)\n\nInstallation\n-------------\n\n.. code-block:: bash\n\n   pip install python-gcm\n\nFeatures\n------------\n\n* Supports multicast message\n* Resend messages using exponential back-off\n* Proxy support\n* Easily handle errors\n* Uses `requests` from version \u003e 0.2\n* `Topic Messaging  \u003chttps://developers.google.com/cloud-messaging/topic-messaging\u003e`__\n* TCP connection pooling and Keep-Alive when passing an explict requests.Session object to the used GCM request call\n\nUsage\n------------\n\nRead about `Google Cloud Messaging \u003chttps://developers.google.com/cloud-messaging\u003e`__\n\n.. code-block:: python\n\n   from gcm import GCM\n\n   gcm = GCM(API_KEY)\n   data = {'param1': 'value1', 'param2': 'value2'}\n\n   # Downstream message using JSON request\n   reg_ids = ['token1', 'token2', 'token3']\n   response = gcm.json_request(registration_ids=reg_ids, data=data)\n\n   # Downstream message using JSON request with extra arguments\n   res = gcm.json_request(\n       registration_ids=reg_ids, data=data,\n       collapse_key='uptoyou', delay_while_idle=True, time_to_live=3600\n   )\n\n   # Topic Messaging\n   topic = 'topic name'\n   gcm.send_topic_message(topic=topic, data=data)\n\nSee `examples \u003cexamples\u003e`_  directory for more usage details, including error handling.\n\nContributing\n==========\nSee `CONTRIBUTING.md \u003cCONTRIBUTING.md\u003e`_\n\nLicensing\n=======\nSee `LICENSE \u003cLICENSE\u003e`_\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeeknam%2Fpython-gcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeeknam%2Fpython-gcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeeknam%2Fpython-gcm/lists"}