semvec/pypi-packages huggingface dataset:
js.fanstatictools 0.1
Fanstatic related javascript tools packaged as a fanstatic library.
License: BSD

js.fanstatictools
*****************

Introduction
============

This library provides some javascript helpers for use with `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org


Get URLs of resources from within Javascript
============================================

When you need to load other (fanstatic) resources inside your javascript, you
may want to calculate the URL to the fanstatic library the resource is defined
in. Using relative URLs does not work, because they are calculated relative to
the windows URL, not to the URL of the current script, which can be different.

After including the js.fanstatictools.lib_url fanstatic resource, you are able
to call fanstatictools.get_library_url('name_of_your_library'), which returns
the url. Add the filename of the resource to the end and you are done.

How to use?
===========


You can import ``url`` from ``js.fanstatictools`` and ``need`` it where you want
these resources to be included on a page::

  >>> from js.fanstatictools import lib_url
  >>> lib_url.need()


CHANGES
*******

0.1 (2013-05-15)
================

- Initial release.
js.namespace 0.1
Fanstatic package providing a small js library for declaring namespaces.
License: BSD

js.namespace
************

Introduction
============

This library provides a small javascript library to declare namespaces,
packaged for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org


Create and use a namespace
==========================

Once included, you can use namespace.declare('your.namespace'); to declare a
namespace. Then you can bind objects to that namespace by just assigning them
like your.namespace.your_funky_function = function(foo) {…};

You are then able to access these objects from anywhere, without polluting the
global scope. Using dotted namespaces is a well known pattern to get a nice
and tidy codebase.


How to use?
===========


You can import ``namespace`` from ``js.namespace`` and ``need`` it where you want
these resources to be included on a page::

  >>> from js.namespace import namespace
  >>> namespace.need()


CHANGES
*******

0.1 (2013-05-15)
================

- Initial release.
django-localflavor-nz 1.1
Country-specific Django helpers for New Zealand.
License: BSD

=====================
django_localflavor_nz
=====================

Country-specific Django helpers for New Zealand.


What's in the New Zealand localflavor?
======================================

* forms.NZRegionSelect - a ``Select`` widget 
  with a list of New Zealand regions.

* forms.NZProvinceSelect - a ``Select`` widget 
  with a list of New Zealand provinces.

* forms.NZNorthIslandSelect - a ``Select`` widget 
  with a list of Norh Island city and district councils.

* forms.NZSouthIslandSelect - a ``Select`` widget 
  with a list of South Island city and district councils.

* forms.NZPostCodeField - a form field that validates input 
  as a New Zealand postal code. Valid format is XXXX, where X is a digit.

* forms.NZPhoneNumberField - a form field that validates input 
  as a New Zealand phone number. Validates local and international land line
  and mobile numbers just as well as 0800 number validation.

* forms.NZBankAccountNumberField - a form field that validates input
  as a New Zealand bank account number. Validates the format XX-XXXX-XXXXXXX-XX(X).
  When strict checking is enabled the bank ID part of account number is validatedm too. 

See the source code for full details.

NZ specific ``settings``
------------------------

* ``LOCALFLAVOR_NZ_STRICT`` defaults to ``False``. Add it to your ``settings`` 
  if you want to enable strict validation. Currently, if set to ``True``,
  ``NZBankAccountNumberField`` will also validate if given bank account number's
  bank id is one of the valid ones. See ``django_localflavor_nz.forms.BANK_IDS``
  for full list of valid bank IDs.


About django-localflavor-nz
===========================

``django_localflavor_nz`` package was created by Marek Kuziel, because
New Zealand "localflavor" didn't make it to Django before 
``django.contrib.localflavor`` was deprecated in Django 1.5.

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

Install the package ``easy_install django-localflavor_nz`` or 
``pip install django-localflavor_nz``.

Add ``django_localflavor_nz`` to ``INSTALLED_APPS`` in your ``settings``.

Testing
-------

``django test django_localflavor_nz`` will run the tests for this localflavor.


About localflavors
==================

Django's localflavor packages offer additional functionality for particular
countries or cultures.

For example, these might include form fields for your country's postal codes,
phone number formats or government ID numbers.

The localflavors code used to live in Django proper -- in django.contrib.localflavor -- 
but was separated into standalone packages in Django 1.5 to keep the framework's core clean.

For other localflavor packages, see https://github.com/django/
django-twitter-relations-history 0.3.8
Django implementation for storing twitter user relations history
License: BSD

# Django Vkontakte Groups Migration

[![Build Status](https://travis-ci.org/ramusus/django-vkontakte-groups-migration.png?branch=master)](https://travis-ci.org/ramusus/django-vkontakte-groups-migration) [![Coverage Status](https://coveralls.io/repos/ramusus/django-vkontakte-groups-migration/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-vkontakte-groups-migration)

Приложение позволяет взаимодействовать с историей миграции пользователей в группах Вконтакте через Вконтакте API используя стандартные модели Django

## Установка

    pip install django-vkontakte-groups-migration

В `settings.py` необходимо добавить:

    INSTALLED_APPS = (
        ...
        'oauth_tokens',
        'vkontakte_api',
        'vkontakte_users',
        'vkontakte_groups',
        'vkontakte_groups_migration',
    )

    # oauth-tokens settings
    OAUTH_TOKENS_HISTORY = True                                         # to keep in DB expired access tokens
    OAUTH_TOKENS_VKONTAKTE_CLIENT_ID = ''                               # application ID
    OAUTH_TOKENS_VKONTAKTE_CLIENT_SECRET = ''                           # application secret key
    OAUTH_TOKENS_VKONTAKTE_SCOPE = ['ads,wall,photos,friends,stats']    # application scopes
    OAUTH_TOKENS_VKONTAKTE_USERNAME = ''                                # user login
    OAUTH_TOKENS_VKONTAKTE_PASSWORD = ''                                # user password
    OAUTH_TOKENS_VKONTAKTE_PHONE_END = ''                               # last 4 digits of user mobile phone

## Покрытие методов API

* [groups.getMembers](http://vk.com/developers.php?oid=-1&p=groups.getMembers) – возвращает список участников группы;

В планах:

* Перенести реализацию groups.getMembers в приложение [`django-vkontakte-groups`](http://github.com/ramusus/django-vkontakte-groups/);

## Примеры использования

### Получение среза подписчиков группы

    >>> from vkontakte_groups.models import Group
    >>> group = Group.remote.fetch(ids=[16297716])[0]
    >>> group.update_users()

Срез подписчиков доступен через менеджер

    >>> migration = group.migrations.all()[0]
    >>> len(migration.members_ids)
    5277888
    >>> migration.members_count
    5277888

Подписчики доступны через менеджер

    >>> group.users.count()
    5277888
smssluzbacz-api 1.1
api library for sending SMS (shor text message) via sms.sluzba.cz service
License: BSD
Keywords: sms api

smssluzbacz-api
===============

smssluzba-api is API for sending SMS via sms.sluzba.cz HTTP service.
It allows you to send SMS (short text messages) from python applications.
In order to use this API you have to register to http://sms.sluzba.cz/ service.
There is restriction on sms.sluzba.cz that will block your account after
several invalid login attempts. Length of one SMS is restricted to 459 characters.


Note
----

There is known bug in authentication in post API making it unable to authenticate properly.
sms.sluzba.cz service is working on resolving this issue.


Requirements
------------

- python 2.7+


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

Install via *pip* or copy this module into your project or into your PYTHON_PATH.

::

 $ pip install smssluzbacz-api


Examples
--------

**Example 1**

Using lite API

::

 from smssluzbacz_api.lite import SmsGateApi

 api = SmsGateApi('login', 'password', timeout=2, use_ssl=True)
 api.send('123456789', 'my SMS message', use_post=True)


**Example 2**

Using post API

::

 from smssluzbacz_api.post import SmsGateApi

 api = SmsGateApi('login', 'password', timeout=2, use_ssl=True)
 api.send('123456789', 'my SMS message')


Tests
-----

**Tested on environment**

- Xubuntu Linux 12.04.02 LTS precise 64-bit
- python 2.7.3
- python unittest
- mock

**Running tests**

To run the unit tests, first install `tests_require` dependencies from setup.py, then run command: ::

 $ python test.py
 $ python setup.py test


**Running integration tests for lite API**

To run integration tests for lite API run command: ::

 $ python integration_test_lite.py <login> <password> <tel_number>

To list all command line options run command: ::

 $ python integration_test_lite.py --help


**Running integration tests for post API**

To run integration tests for post API run command: ::

 $ python integration_test_post.py <login> <password> <tel_number>

To list all command line options run command: ::

 $ python integration_test_post.py --help



Authors
-------

| Jozef Sevcik, CodeScale s.r.o.
| char0n (Vladimir Gorej, CodeScale s.r.o.)
| email: info@codescale.net
| web: http://www.codescale.net/


References
----------

- http://sms.sluzba.cz
- http://sms.sluzba.cz/downloads/SMS_Gate_API_LITE_20.pdf
- http://sms.sluzba.cz/downloads/SMS_Gate_API_POST_20.pdf
- http://github.com/jsk/python-smssluzbacz-api
- http://pypi.python.org/pypi/smssluzbacz-api/
- http://www.codescale.net/en/community#smssluzbacz-api