semvec/pypi-packages huggingface dataset:
maprouletteupload 0.1.0
A simple Maproulette uploader
License: MIT
Keywords: maps maproulette openstreetmap

# maprouletteupload

Simply upload a GeoJSON file of tasks to [Maproulette](http://maproulette.org/).

## Installation

```
pip install git+git://github.com/ebrelsford/maprouletteupload.git
```

## Usage

Use via the command line:

```
Usage: maprouletteupload [OPTIONS]

  Upload a GeoJSON file of tasks to Maproulette.

Options:
  --api-key TEXT          Your API key, via Maproulette.
  --challenge-id INTEGER  The challenge ID these tasks should be added to.
  --geojson-file TEXT     A GeoJSON file of tasks to upload. Alternatively,
                          you can provide this file via stdin.
  --identifier TEXT       The name of the property to use as the identifier.
                          Default: "identifier".
  --instruction TEXT      The name of the property to use as the instruction.
                          Default: "instruction".
  --name TEXT             The name of the property to use as the name.
                          Default: "name".
  --version               Show the version and exit.
  --help                  Show this message and exit.

```

A task is made for each GeoJSON feature and the tasks are bulk uploaded to Maproulette.


## License

MIT.
django-json-renderer 0.1.2
A Simple json renderer for django.
License: MIT

django-json-renderer
====================

A Simple json renderer for django.

Install
-------
::

    pip install django-json-renderer

Api
---
``JsonResponse``
>>>>>>>>>>>>>>>>
Native Django ``JsonResponse`` (or it’s polyfill).

``ModelJSONEncoder``
>>>>>>>>>>>>>>>>>>>>
Inherit from ``DjangoJSONEncoder``, extends the parser
of ``QuerySet`` (using ``list(queryset.values())``) and ``Models`` (using ``model_to_dict``).

``render_json(encoder=ModelJSONEncoder, safe=True, **kwargs)``
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Return the
decorator that convert json-serializable to JsonResponse (using
``ModelJSONEncoder`` as default). ``encoder`` and ``safe`` params has the same
meaning as `Django JsonResponse <https://docs.djangoproject.com/en/1.10/ref/request-response/#jsonresponse-objects>`_.

Example
-------
.. code-block:: python

    from django.db import models
    from django_json_encoder import render_json

    class Person(models.Model):
        first_name = models.CharField(max_length=30)
        last_name = models.CharField(max_length=30)

    @render_json()
    def get_first_person(request):
        return Person.objects.all().first()

    ## `safe` params
    @render_json(safe=False)
    def get_all_person(request):
        return Person.objects.all()

License
-------

MIT