Skip to main content

django-signature-field

Django field for storing canvas signatures as binary data or image files.

Purpose

Store signature pad output in the database either as a binary blob (default) or as an uploaded PNG file.

Installation

pip install django-signature-field

Quick Start

from django.db import models
from signature import SignatureField


class Contract(models.Model):
    title = models.CharField(max_length=100)

    # Default: binary storage
    signature = SignatureField()

    # Or explicitly as blob
    signature_blob = SignatureField(field_type="blob")

    # Or as image file
    signature_image = SignatureField(field_type="image", upload_to="signatures/")

Input formats

The field accepts:

  • Raw bytes
  • Base64 text
  • Data URLs (data:image/png;base64,...)

Field modes

field_type Storage Django field
"blob" (default) Raw PNG bytes in database BinaryField
"image" PNG file on storage ImageField

Development

pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for django-signature-field 0.1.2

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-signature-field 0.1.2
File Size Uploaded Provenance
django_signature_field-0.1.2.tar.gz 192.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-signature-field 0.1.2
File Interpreter ABI Platform
django_signature_field-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 380.7 kB

Release files / django_signature_field-0.1.2.tar.gz

Download URL django_signature_field-0.1.2.tar.gz
Size 192.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9d8402dfd1b119b7376bf5bf8711e183d9291a62cf5efccc25db075108fc2aea
BLAKE2b-256 checksum
How to use checksums
34be0cfa611881eb1d15b04d4dba110533a18267b56463da1653971107c832ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / django_signature_field-0.1.2-py3-none-any.whl

Download URL django_signature_field-0.1.2-py3-none-any.whl
Size 188.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26263416fe12154b46309baae858138038fb9eac660c3a5ff15015fc4cca0be2
BLAKE2b-256 checksum
How to use checksums
1b1739b343536f221ae041117db4e60a5cb5e7650ed4dbe9c6b426c80c2a0ff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for django-signature-field 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_signature_field-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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