semvec/pypi-packages huggingface dataset:
xtify 0.1
Python module for using the Xtify webservice API
License: BSD
Keywords: xtify,python,webservice,api,mobile

About
=====

Python library for using the `Xtify
<http://xtify.com/>`_ web service API for mobile push notifications.

Requirements
============

Tested using Python 2.7, it will probably work on older versions. For versions
of Python 2.5 or earlier``simplejson`` will need to be installed.

Functionality
=============

As of version 0.1 only the Xtify Push API 2.0 is implemented. Mostly because it
was the only one I needed, at least for now....

Available Classes:
PushNotification, PushContent, PushAction, PushRichContent

Usage Examples
==============

    >>> import xtify
    >>> pushNotif = xtify.PushNotification(appKey='myAppKey', apiKey='myApiKey)
    >>> pushNotif.sendAll=True
    >>> pushNotif.content.subject='greetings earthling'
    >>> pushNotif.content.message='take me to your leader'
    >>> pushNotif.push()

    >>> import xtify
    >>> pushContent = xtify.PushContent(
        subject='greetings earthling', message='take me to your leader')
    >>> pushNotif = xtify.pushNotification(
        appKey='myAppKey', apiKey='myApiKey', sendall=True, content=pushContent)
    >>> pushNotif.push()
fancy_cache 0.1
clears the junk out of your CSS
License: BSD

django-fancy-cache
==================

(c) Peter Bengtsson, mail@peterbe.com, 2013

About django-fancy-cache
------------------------

A Django `cache_page` decorator on steroids.

Unlike the stock `django.views.decorators.cache.change_page` this
decorator makes it possible to set a `key_prefixer` that is a
callable. This callable is passed the request and if it returns `None`
the page is not cached.

Also, you can set another callable called `post_process_response`
(which is passed the response and the request) which can do some
additional changes to the response before it's set in cache.

Lastly, you can set `post_process_response_always=True` so that the
`post_process_response` callable is always called, even when the
response is coming from the cache.


How to use it
-------------

In your Django views:

        from fancy_cache import cache_page

	@cache_page(60 * 60)
	def myview(request):
	    return render(request, 'page1.html')

	def prefixer(request):
	    if request.method != 'GET':
	        return None
	    if request.GET.get('no-cache'):
	        return None
	    return 'myprefix'

	@cache_page(60 * 60, key_prefixer=prefixer)
	def myotherview(request):
	    return render(request, 'page2.html')

	def post_processor(response, request):
	    response.content += '<!-- this was post processed -->'
	    return response

	@cache_page(60 * 60,
	            key_prefixer=prefixer,
		    post_process_response=post_processor)
	def yetanotherotherview(request):
	    return render(request, 'page3.html')


Running the test suite
----------------------

The simplest way is to simply run:

        $ pip install -r requirements.txt
        $ fab test

Or to run it without `fab` you can simply run:

        $ export PYTHONPATH=`pwd`
	$ export DJANGO_SETTINGS_MODULE=fancy_cache.tests.settings
	$ django-admin.py test
toolkit_library 0.4.8
Toolkit Library, full of useful toolkits
License: BSD

===============
Toolkit Library
===============


|

Introduction
************
Tookit Library is a collection of python modules for general purpose usage.

It's a supplementary to the standard python library.


|

Quick Start
***********

::

    pip install toolkit_library    


|

Modules included
****************

::


    toolkit_library.encryption
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Generate random salt, hashcode for a password and validate the password against them.


    toolkit_library.input_util
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Get inputs from user and validate them 


    toolkit_library.inspector
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Inspect a module or a package, get information of modules, methods and classes.


    toolkit_library.mail_server
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Connect to a SMTP server and send email


    toolkit_library.string_util
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Utilities to deal with strings


    toolkit_library.text_converter
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Convert text from one format to another


    toolkit_library.web_client
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Web client for fetching web resources.              


|

You wanna involve? 
******************
toolkit_library is released under BSD lisence.

The source code is hosted on github: https://github.com/tylerlong/toolkit_library


|

Feedback
********
Comments, suggestions, questions, free beer, t-shirts, kindles, ipads ... are all welcome!

Email: toolkit.library.feedback@gmail.com