semvec/pypi-packages huggingface dataset:
gddkia-impediments-on-roads 0.1.1
Impediments on roads provided by GDDKiA
License: MIT

=======================================
Impediments on roads provided by GDDKiA
=======================================

.. image:: https://codeclimate.com/github/tomi77/python-gddkia-impediments-on-roads/badges/gpa.svg
   :target: https://codeclimate.com/github/tomi77/python-gddkia-impediments-on-roads
   :alt: Code Climate
.. image:: https://travis-ci.org/tomi77/python-gddkia-impediments-on-roads.svg?branch=master
    :target: https://travis-ci.org/tomi77/python-gddkia-impediments-on-roads
.. image:: https://coveralls.io/repos/github/tomi77/python-gddkia-impediments-on-roads/badge.svg?branch=master
    :target: https://coveralls.io/github/tomi77/python-gddkia-impediments-on-roads?branch=master

Simple wrapper for a data about impediments on roads provided by GDDKiA.

Installation
============

Install package via ``pip``
::

    pip install gddkia-impediments-on-roads


Usage
=====

::

    from impediments import get_impediments

    impediments = get_impediments()
django-tastypie-sorl-thumbnail 0.1.5
sorl-thumbnail support for a Django Tastypie
License: MIT

==============================
django-tastypie-sorl-thumbnail
==============================

.. image:: https://travis-ci.org/tomi77/tastypie-sorl-thumbnail.svg?branch=master
   :target: https://travis-ci.org/tomi77/tastypie-sorl-thumbnail
.. image:: https://coveralls.io/repos/github/tomi77/tastypie-sorl-thumbnail/badge.svg?branch=master
   :target: https://coveralls.io/github/tomi77/tastypie-sorl-thumbnail?branch=master
.. image:: https://codeclimate.com/github/tomi77/tastypie-sorl-thumbnail/badges/gpa.svg
   :target: https://codeclimate.com/github/tomi77/tastypie-sorl-thumbnail
   :alt: Code Climate

Add a ``sorl-thumbnail`` support for a Django Tastypie.

Installation
============

Install package via ``pip``
::

    pip install django-tastypie-sorl-thumbnail

Usage
=====

::

   from tastypie.authentication import Authentication
   from tastypie.authorization import Authorization
   from tastypie.resources import ModelResource
   from tastypie_sorl_thumbnail.fields import ThumbnailField

   from .models import Photo


   class PhotoResource(ModelResource):
       thumbnail = ThumbnailField('photo', '120', quality=80)

       class Meta(object):
           queryset = Photo.objects.all()
           resource_name = 'photo'
           authentication = Authentication()
           authorization = Authorization()

Logging
=======

Configure ``tastypie-sorl-thumbnail`` logger.

Testing
=======

::

   $ python setup.py test

or

::

   $ python manage.py test tastypie_sorl_thumbnail
django-gddkia-impediments-on-roads 0.1.1
Django client for gddkia-impediments-on-roads
License: MIT

==================================
django-gddkia-impediments-on-roads
==================================

.. image:: https://codeclimate.com/github/tomi77/django-gddkia-impediments-on-roads/badges/gpa.svg
   :target: https://codeclimate.com/github/tomi77/django-gddkia-impediments-on-roads
   :alt: Code Climate
.. image:: https://travis-ci.org/tomi77/django-gddkia-impediments-on-roads.svg?branch=master
   :target: https://travis-ci.org/tomi77/django-gddkia-impediments-on-roads
.. image:: https://coveralls.io/repos/github/tomi77/django-gddkia-impediments-on-roads/badge.svg?branch=master
   :target: https://coveralls.io/github/tomi77/django-gddkia-impediments-on-roads?branch=master

Installation
============

Install package via ``pip``
::

    pip install django-gddkia-impediments-on-roads

Configuration
=============

Configure cache options
::

   # Cache backend name
   IMPEDIMENTS_CACHE_BACKEND_NAME = 'default'

   # Cache key
   IMPEDIMENTS_CACHE_KEY = 'impediments'

   # Max time of cache
   IMPEDIMENTS_CACHE_TIMEOUT = 3600

API Usage
=========

::

    from dj_impediments import get_impediments

    print get_impediments()