$npx skillfedfor your agent

django-picklefield

Pickled object field for Django

With conditionsPyPI Python ModulesReleased Nov 20251.3M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_picklefield-3.4.0-py3-none-any.whl
v3.4.0 · released 2025-11-27 · Python >=3.10 · 1 runtime deps: Django

Yes, if you need to store non-relational Python objects in Django and trust the source of all data assigned to the field. The package is stable, actively maintained, and supports current Django and Python versions. Install only if you understand the pickle security implications and will never assign unsanitized user input to PickledObjectField.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Do not store untrusted user input directly in PickledObjectField; pickle.loads() can execute arbitrary code.
  • The field is marked editable=False by default to prevent form exposure, but programmatic assignment of unsanitized data remains a security risk.
  • Low install friction with a single Django dependency.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and places no restrictions on use or redistribution. You may use this package in commercial or proprietary projects without obligation to share modifications.

last release 2025-11-27 (260 days) · last repo commit 2025-11-27 · 185 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,327,233 downloads/mo, #4,054 on PyPI

Verify before relying

pip install django-picklefield

from picklefield.fields import PickledObjectField
from django.db import models

class MyModel(models.Model):
    data = PickledObjectField()

obj = MyModel()
obj.data = ['any', {'picklable': 'object'}]
obj.save()
  • Whether the package's compression feature (compress=True) is actively used or maintained in production deployments.
  • Performance characteristics when storing very large object trees, especially with the copy parameter set to False.
  • Compatibility with database-specific pickle handling or edge cases beyond the tested Django/Python versions.
Same gist for agents: .md · .json

What it is and what it does

django-picklefield extends Django models with a field type that transparently serializes and stores arbitrary Python objects in the database. Instead of manually pickling and unpickling data or designing a schema for each object type, you define a PickledObjectField and assign any picklable Python object to it—lists, dicts, custom classes, or nested structures—and the field handles encoding, storage, and retrieval automatically.

The package base64-encodes pickled data to ensure ASCII-safe storage across database backends and supports optional zlib compression, configurable pickle protocols, and database lookups (exact, in, isnull). It is designed for cases where a proper relational schema does not exist, such as storing configuration objects, cached computations, or heterogeneous data. The critical caveat is that pickle is inherently unsafe for untrusted input; the field is marked non-editable by default and should never receive unsanitized user data.

Use it for

  • Store configuration or settings objects in a Django model without designing a separate schema for each setting type.
  • Cache computed Python objects (e.g., analysis results, transformed data) directly in the database for later retrieval.
  • Persist application state or workflow context that does not fit a normalized relational structure.
  • Store lookup tables or reference data as Python dicts or lists without creating additional database tables.
  • Handle heterogeneous data in a single field when the object structure varies per record.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to store non-relational Python objects in Django and trust the source of all data assigned to the field.

The package is stable, actively maintained, and supports current Django and Python versions. Install only if you understand the pickle security implications and will never assign unsanitized user input to PickledObjectField.

Install

django-picklefield on PyPI

Before you install

Low install friction with a single Django dependency. Last release was 260 days ago; the repository is active and not archived, though maintenance status is aging. Supports current Python versions (3.10+) and recent Django versions through 6.0.

Do not store untrusted user input directly in PickledObjectField; pickle.loads() can execute arbitrary code. The field is marked editable=False by default to prevent form exposure, but programmatic assignment of unsanitized data remains a security risk.

License in practice

MIT license is permissive and places no restrictions on use or redistribution. You may use this package in commercial or proprietary projects without obligation to share modifications.

Quickstart

pip install django-picklefield

from picklefield.fields import PickledObjectField
from django.db import models

class MyModel(models.Model):
    data = PickledObjectField()

obj = MyModel()
obj.data = ['any', {'picklable': 'object'}]
obj.save()

Verify before relying

  • Whether the package's compression feature (compress=True) is actively used or maintained in production deployments.
  • Performance characteristics when storing very large object trees, especially with the copy parameter set to False.
  • Compatibility with database-specific pickle handling or edge cases beyond the tested Django/Python versions.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
Django
MaintenanceAging 260 days since the last release
Last repo commit
First released
Downloads1,327,233 / month, #4,054 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules

Evidence: django_picklefield-3.4.0-py3-none-any.whl

Tags

Capabilities
django pickle fieldstore python objects in django modelsdjango serialized fieldpickle database fielddjango model field any typedjango object persistencebase64 encoded pickle storage
Topics
django-ormserializationdatabase-field
PyPI keywords
djangopicklemodelfield

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “django pickle field”

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also jsonfield · pypickle · django-dirtyfields · dill · django-versatileimagefield · cloudpickle · django-hashids · django-sqids · sqlitedict · jsonpickle