{"id":30700140,"url":"https://github.com/operasoftware/mpns-client","last_synced_at":"2025-09-02T11:44:22.290Z","repository":{"id":35370449,"uuid":"39633480","full_name":"operasoftware/mpns-client","owner":"operasoftware","description":"Microsoft Push Notification Service client","archived":false,"fork":false,"pushed_at":"2018-08-09T07:56:18.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-08-25T22:26:14.604Z","etag":null,"topics":[],"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/operasoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-24T12:59:45.000Z","updated_at":"2019-03-26T20:57:13.000Z","dependencies_parsed_at":"2022-09-11T12:43:07.470Z","dependency_job_id":null,"html_url":"https://github.com/operasoftware/mpns-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/operasoftware/mpns-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fmpns-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fmpns-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fmpns-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fmpns-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/operasoftware","download_url":"https://codeload.github.com/operasoftware/mpns-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fmpns-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273279959,"owners_count":25077318,"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-09-02T02:00:09.530Z","response_time":77,"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":[],"created_at":"2025-09-02T11:43:37.291Z","updated_at":"2025-09-02T11:44:22.276Z","avatar_url":"https://github.com/operasoftware.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft Push Notification Service client\n\n## Overview\n*MPNS-client* is an implementation of provider-side client for Microsoft Push\nNotification Service, based on\n[official WP8 documentation](https://msdn.microsoft.com/en-us/library/windows/apps/ff402558.aspx).\nIt uses [Twisted networking engine](https://twistedmatrix.com).\n\n## Features\n* Preparing Raw, Toast, and Tile notifications\n* Sending prepared notifications to the gateway server\n* Extracting information about device and notification state from gateway\nresponse\n\n## Requirements\n* Python\u003e=2.7\n* Twisted\u003e=15.0.0\n\n## Usage example\n\n```python\nimport logging\nfrom mpns.notifications import ToastNotification\nfrom mpns.pusher import Pusher\nfrom twisted.internet.task import react\nfrom twisted.internet.defer import inlineCallbacks\n\nlogger = logging.getLogger()\nlogger.setLevel(logging.DEBUG)\nlogger.addHandler(logging.StreamHandler())\n\nuri = '*PASTE YOUR SUBSCRIPTION URI HERE*'\n\n\n@inlineCallbacks\ndef main(reactor):\n    notification = ToastNotification(uri, text1='Hello!', text2='Wassup?')\n    pusher = Pusher()\n    yield pusher.send(notification)\n\nreact(main)\n\n```\n\nIf everything was setup correctly, you should see in console something like\nthis:\n```\nSending request\nResponse code: 200\nDevice Connected\nNotification Received\nSubscription Active\n```\nThen a notification should pop up on your phone.\n\n## Contributing\nYou are highly encouraged to participate in the development, simply use\nGitHub's fork/pull request system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperasoftware%2Fmpns-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperasoftware%2Fmpns-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperasoftware%2Fmpns-client/lists"}