semvec/pypi-packages huggingface dataset:
django-api-playground 0.1.0
API Playground for RESTful APIs
License: BSD

Django API Playground
=====================

A django app that creates api explorer for RESTful APIs.

Works with any RESTful API. For example, you can create api explorer for your tastypie based API with this app.

Demo: `http://api-playground-demo.hipo.biz <http://api-playground-demo.hipo.biz>`_

.. image:: https://github.com/hipo/Django-API-Playground/raw/master/docs/images/api-playground-2.png



Instructions
""""""""""""

To get this application up and running, please follow the steps below:

Install from pip::

    pip install django-api-playground

Or from source::

   pip install git+git://github.com/Hipo/Django-API-Playground.git

Add to installed apps::

    INSTALLED_APPS =(
        # ...

        'apiplayground',
    )

Installation is completed. You can define the API schema now.

Firs step, Create an url::

    # urls.py

    from api.playgrounds import ExampleAPIPlayground

    urlpatterns = patterns('',
        (r'api-explorer/', include(ExampleAPIPlayground().urls)),
    )

Second step, Define a subclass for your API::

    # api/playgrounds.py

    from apiplayground import APIPlayground

    class ExampleAPIPlayground(APIPlayground):

        schema = {
            "title": "API Playground",
            "base_url": "http://localhost/api/",
            "resources": [
                {
                    "name": "/feedbacks",
                    "description": "This resource allows you to manage feedbacks.",
                    "endpoints": [
                        {
                            "method": "GET",
                            "url": "/api/feedbacks/{feedback-id}",
                            "description": "Returns a specific feedback item"
                        },
                        {
                            "method": "POST",
                            "url": "/api/feedbacks/",
                            "description": "Creates new feedback item",
                            "parameters": [{
                                "name": "title",
                                "type": "string"
                            },
                            {
                                "name": "resource",
                                "type": "string"
                            },
                            {
                               "name": "description",
                               "type": "string"
                            }]
                        }
                    ]
                },
            ]
        }

That's all. More detailed documentation will be coming soon.
gisdata 0.5.4
Sample data and metadata for GIS packages
License: BSD
Keywords: gis

=======================================
gis-data - Sample data for GIS packages
=======================================

Sometimes you need sample raster and vector data for your python applications.

Sometimes you need bad data for your corner test cases. (No projections, NaN values).

Sometimes you just need test metadata.

This library provides all of the above.

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

The latest release can be installed using::

    pip install gisdata

Usage
=====

Get the absolute path to the the sample data from python::

    >>> from gisdata import DATA_DIR
    >>> print DATA_DIR
    '/usr/lib/python2.6/site-packages/gisdata/data'
    >>> from gisdata import BAD_DATA
    >>> print BAD_DATA
    '/usr/lib/python2.6/site-packages/gisdata/data/bad'
    >>> from gisdata import GOOD_DATA
    >>> print GOOD_DATA
    '/usr/lib/python2.6/site-packages/gisdata/data/good'
    >>> from gisdata import METADATA_DIR
    >>> print METADATA_DIR
    '/usr/lib/python2.6/site-packages/gisdata/metadata'
    >>> from gisdata import GOOD_METADATA
    >>> print GOOD_METADATA
    '/usr/lib/python2.6/site-packages/gisdata/metadata/good'

Known Issues
============

 * Vector data does not have sld files
 * No .keywords files for machine tags

Contributors
============

 * Ariel Núñez (ingenieroariel)
    Initial vector and raster data
 * Rob Marianski (rmarianski)
    Time enabled datasets
 * Tom Kralidis (tomkralidis)
    Metadata samples