semvec/pypi-packages huggingface dataset:
mjson 0.3.1
Extended "python -mjson.tool"
License: MIT License
Keywords: json,tool,command

=====
mjson
=====

This module is extended "python -mjson.tool".


Install
----------

.. code-block:: bash

   $ pip install mjson


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

Same the original

.. code-block:: bash

   $ echo '{"a":1,"b":2}' | mjson
   {
       "a": 1, 
       "b": 2
   }


Change indents

.. code-block:: bash

   $ echo '{"a":1,"b":2}' | mjson -i 2
   {
     "a": 1, 
     "b": 2
   }
tastypie-queryset-client 0.7.2
Client for Tastypie. Provide operation similar to the Django Model API
License: MIT License
Keywords: tastypie,client,django,rest,api

Tastypie Queryset Client
========================

Client for `Tastypie. <https://github.com/toastdriven/django-tastypie>`_ Provide operation similar to the Django Model API .

Usage
=====

Get
------

::

    >>> client = Client("http://api.server.com/your/v1/")
    >>> client.your.objects.get(name="your")
    <your: {u"id": u"1", u"name": u"your", u"status": u"any"}>

Count
------

::

    >>> client = Client("http://api.server.com/your/v1/")
    >>> client.your.objects.count()
    100

Filter
------

::

    >>> client = Client("http://api.server.com/your/v1/")
    >>> client.your.objects.filter(name="your")
    <QuerySet <class 'Response'> (3/3)>


Save
----

::

    >>> client = Client("http://api.server.com/your/v1/")
    >>> your = client.your(name="name")
    >>> your
    <your: {u"name": u"name"}>
    >>> your.save()  # save Your object.
    >>> your
    <your: {u"id": u"2", u"name": u"name"}>


Delete
------

::

    >>> client = Client("http://api.server.com/your/v1/")
    >>> message = client.message(subject="subject delete 1", body="body delete 1")
    >>> message.save()
    >>> message.id
    <message: {u"id": u"1", u"subject": u"subject delete 1", u"body": u"body delete 1"}>
    >>> message.delete()  # remove Message object.
    >>> try:
    >>>     message.id
    >>> except AttributeError:
    >>>     assert True  # throw AttributeError.


Setup
=====

::

    $ pip install tastypie-queryset-client

Documentation
==============

`tastypie-queryset-client.readthedocs.org <http://tastypie-queryset-client.readthedocs.org>`_

License
=======
MIT License