{"id":26817284,"url":"https://github.com/willandskill/django-parse-push","last_synced_at":"2026-05-19T09:11:04.316Z","repository":{"id":57421170,"uuid":"48489890","full_name":"willandskill/django-parse-push","owner":"willandskill","description":"Django library for pushing notifications thru Parse","archived":false,"fork":false,"pushed_at":"2017-09-27T22:52:57.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T11:06:05.920Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willandskill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-23T12:40:24.000Z","updated_at":"2016-01-15T17:10:40.000Z","dependencies_parsed_at":"2022-08-28T16:21:10.596Z","dependency_job_id":null,"html_url":"https://github.com/willandskill/django-parse-push","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willandskill/django-parse-push","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willandskill%2Fdjango-parse-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willandskill%2Fdjango-parse-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willandskill%2Fdjango-parse-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willandskill%2Fdjango-parse-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willandskill","download_url":"https://codeload.github.com/willandskill/django-parse-push/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willandskill%2Fdjango-parse-push/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266240855,"owners_count":23898062,"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","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-03-30T04:15:54.691Z","updated_at":"2026-05-19T09:10:59.279Z","avatar_url":"https://github.com/willandskill.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-parse-push #\n\nA simple Django library for pushing notifications thru Parse.\n\n---\n\n**Comes out of the box with**\n\n* Django REST Framework endpoint for registering a device token thru REST\n* Basic tests\n\n## Installation ##\n\n1) Install thru PIP\n\n    pip install django-parse-push\n\n2) Add `parse_push` to `settings.INSTALLED_APPS`\n\n```python\n    INSTALLED_APPS = (\n        # ...,\n        parse_push,\n    )\n```\n\n3) Run migrations\n\n    python manage.py migrate parse_push\n\n4) Add environment vars\n\n```bash\nPARSE_APPLICATION_ID=your_parse_application_id\nPARSE_REST_API_KEY=your_parse_api_key\n\n# Optional environment vars\nPARSE_API_URL=https://api.parse.com\nPARSE_API_VERSION=1\n```\n\n5) Add REST endpoint to urls.py\n\n```python\nfrom django.conf.urls import patterns, include, url\n\nurlpatterns = patterns('',\n\n    # ...\n\n    (r'^api/v1/parse-push', include('parse_push.urls')),\n\n    # ...\n)\n```\n\n## Usage ##\n\n### Example 1 ###\n*A simple Django based example*\n\n```python\nfrom django.contrib.auth import get_user_model\n\nUser = get_user_model()\nuser = User.objects.get(email='donald@duck.com')\ndevice = user.device_set.get_latest('created_at')\ndevice.push({'alert': 'Hello World!', 'text': 'Lorem ipsum dolor...'})\n```\n\n### Example 2 ###\n*With Django based User model*\n\n```python\nfrom django.contrib.auth.models import AbstractBaseUser, PermissionsMixin\n\nclass User(AbstractBaseUser, PermissionsMixin)\n\n    # ...\n\n    def get_full_name(self):\n        \"\"\" Returns the full name \"\"\"\n        full_name = u\"{} {}\".format(self.first_name, self.last_name)\n        return full_name.strip()\n\n    def push(self, data):\n        device = self.device_set.get_latest()\n        return device.push(data)\n```\n\n### Example 3 ###\n*Barebone client, no dependency on Django*\n\n```python\nfrom parse_push.client import get_client\n\nclient = get_client()\nclient.push('ios', 'devicetokenabcdefghijklmnopqstruvwxyz0123456789', {'foo': 'bar'})\n```\n\nYou can also configure a Client instance with `APPLICATION_ID` and `REST_API_KEY`\n\n```python\nclient = Client(application_id='applicationidabcdefghijklmn0123456789', rest_api_key='restapikeyabcdefghijklmn0123456789')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillandskill%2Fdjango-parse-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillandskill%2Fdjango-parse-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillandskill%2Fdjango-parse-push/lists"}