Skip to main content

django-yaml-field

Same as Django JSONField but represent it as YAML (internally stores as JSON)

Pip install

pip install django-yaml-field

Example

from django.db import models
from django_yaml_field import YAMLField


class ModelName(models.Model):
	yaml = YAMLField()

Allows querying the stored data using lookups in the same way described in Django documentation

Syntax Highlight

If you want a nice syntax highlight in form, you can use with django-ace

from django_ace import AceWidget

@admin.register(ModelName)
class ModelName(admin.ModelAdmin):

	formfield_overrides = {YAMLField: {"widget": AceWidget(mode="yaml")}}

License

MIT

Metadata

Release files for django-yaml-field 0.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 django-yaml-field 0.1.3
File Size Uploaded
django_yaml_field-0.1.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-yaml-field 0.1.3
File Interpreter ABI Platform
django_yaml_field-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / django_yaml_field-0.1.3.tar.gz

Download URL django_yaml_field-0.1.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
750567c1fe9858d0ecf664fa17b5485e5d71722dad45db485b96b096bc26cef5
BLAKE2b-256 checksum
How to use checksums
66f017ba5af2bbc2e6e9888de5644f00c26aeb166771b215480d376acf6555c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / django_yaml_field-0.1.3-py3-none-any.whl

Download URL django_yaml_field-0.1.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1d1c167c4793cf61ddf96e67b8a3a332c24c0b0b4408ae9a2129b7960705721
BLAKE2b-256 checksum
How to use checksums
dbea1c7457e3402585af798b85f9afb398b8a47e083a9499c887653820c64302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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