semvec/pypi-packages huggingface dataset:
python-bada-push 0.5.1
Python module for push messaging service for Samsung Bada.
License: BSD
Keywords: python samsung bada push messaging

python-bada-push
================

Python module for push messaging service for Samsung Bada.

Usage
-----

    import bada_push

    message = bada_push.send(
        url='https://apnortheast.push.samsungosp.com:8088/spp/pns/api/push',
        app_id='your-app-id',
        app_secret='your-app-secret',
        reg_id='registration-id',
        action='ALERT',
        alert_message='any-alert-message',
        app_data='any-data'
    )

    See doc comments for details.


Useful links
------------

Push Messaging Guide: http://developer.bada.com/article/push-messaging-guide

Error codes: http://developer.bada.com/article/push-messaging-guide#status_codes_messages
tastypie-services 0.2.2
Service URLs for tastypie
License: BSD

A simple API end point that we've found useful for our Tastypie API services at
Mozilla.

Installation
------------

Install using pip::

        pip install tastypie-services

Note: version 2 renamed the lib from services to tastypie_services.

Configuration
-------------

Add to your urls::

        from tastypie_services.urls import services

        urlpatterns = patterns('',
                ...
                url(r'^', include(services.urls)),
        )

If you want to allow settings access, set::

        CLEANSED_SETTINGS_ACCESS = False

The actual server status is very specific to your server, so you need to create
a base class overriding the one in services. The tell the library where the
object is. For example::

        SERVICES_STATUS_MODULE = 'lib.services.resources'

Then in `lib.tastypie_services.resources`::

        from tastypie_services.services import StatusObject as Base

        class StatusObject(Base):

            def test_cache(self):
                cache.set('status', 'works')
                if cache.get('status') == 'works':
                        self.cache = True

See solitude for an example of this.