Skip to main content
https://travis-ci.org/djangonauts/django-rest-framework-hstore.png https://coveralls.io/repos/djangonauts/django-rest-framework-hstore/badge.png Code Health Requirements Status https://badge.fury.io/py/djangorestframework-hstore.png https://img.shields.io/pypi/dm/djangorestframework-hstore.svg

Django Rest Framework tools for django-hstore.

Tribute to Nodeshot

This code was originally written for Nodeshot and then extracted into this generic python package.

Compatibility with DRF, Django and Python

DRF-hstore version

DRF version

django-hstore version

Django version

Python version

1.3

3.1.x

1.3.1 to 1.4.0

1.6, 1.7, 1.8

2.7, 3.4

1.2

3.1.x

1.3.1 to 1.4.0

1.6, 1.7, 1.8

2.7, 3.4

1.1

2.4.x

1.3.1 to 1.3.5

1.6, 1.7

2.7, 3.4

1.0

2.4.x

1.3.1 to 1.3.5

1.6, 1.7

2.7, 3.4

Install

pip install djangorestframework-hstore

HStoreField Usage

This field is not sufficient to support django-hstore schema-mode.

from rest_framework import serializers
from myapp.models import MyModel

# rest_framework_hstore
from rest_framework_hstore.fields import HStoreField

class MyHStoreSerializer(serializers.ModelSerializer):
    data = HStoreField()

    class Meta:
        model = MyModel

HStoreSerializer Usage

Supports django-hstore DictionaryField and schema-mode out of the box.

Prefer this to HStoreField.

from myapp.models import MyModel

# rest_framework_hstore
from rest_framework_hstore.serializers import HStoreSerializer

class MyHStoreSerializer(HStoreSerializer):
    class Meta:
        model = MyModel

Contributing

  1. Join the Django REST Framework HStore Mailing List and announce your intentions

  2. Follow the PEP8 Style Guide for Python Code

  3. Fork this repo

  4. Write code

  5. Write tests for your code

  6. Ensure all tests pass

  7. Ensure test coverage is not under 90%

  8. Document your changes

  9. Send pull request

BSD License

Copyright (C) 2014 Federico Capoano

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release files for djangorestframework-hstore 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangorestframework-hstore 1.3
File Size Uploaded
djangorestframework-hstore-1.3.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangorestframework-hstore 1.3
File Interpreter ABI Platform
djangorestframework_hstore-1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 14.7 kB

Release files / djangorestframework-hstore-1.3.tar.gz

Download URL djangorestframework-hstore-1.3.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2f9516a26f251ab007460573f13c76e5420528cf2bb91637811842e25c6180c6
BLAKE2b-256 checksum
How to use checksums
ea4e3fcab3de20fb43cd06537e5845d3175d363f09cdeba105a72218a2601861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / djangorestframework_hstore-1.3-py2.py3-none-any.whl

Download URL djangorestframework_hstore-1.3-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4825ae8aff299aa3dc5a137b8bd9ca3efe0580fcb5c3699eb7e1a1030b17465d
BLAKE2b-256 checksum
How to use checksums
f7b06a921950a4afe9d2b2a521ec1336884daa713fb6a72ce60f14cd72c65c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2

2 release files

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page