Skip to main content

A small app providing a tesseract field for django 3.1.2

Project description

PyPI version

djtesseract

This repo forked from (https://github.com/duboisR/django-tesseractfield) to update last release versions of packages, framework, and Python.

Repo created by @duboisR originally.

This module fills the need of having a tesseractfield that's usable in both django models and forms.

djtesseract

Makes use of tesseract.

Installation

  • Run pip install djtesseract
  • Add tesseractfield to your INSTALLED_APPS
  • Collect static files with ./manage.py collectstatic

Usage

To activate tesseract transcription on your Django site, add this line to your URLconf:

path('', include('tesseractfield.urls')),

In your models, you can use it like this:

from django.db import models
from tesseractfield.fields import TesseractField

class MyModel(model.Model):
    content = TesseractField()

In your foms, you can use it like this:

from django import forms
from tesseractfield.fields import TesseractWidget

class MyForm(forms.Form):
    content = forms.Textarea()

    class Meta:
        widgets = {
            'content': TesseractWidget(),
        }

Maintainers

Articles

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djtesseract-0.0.6.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djtesseract-0.0.6-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file djtesseract-0.0.6.tar.gz.

File metadata

  • Download URL: djtesseract-0.0.6.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for djtesseract-0.0.6.tar.gz
Algorithm Hash digest
SHA256 22de20ab113ae9ee3eaec15adf7e097f8ba0da6376e75b869d90cfdf98bae861
MD5 d34fb3cbb5c9c54ebed7c2f61e6e9ff4
BLAKE2b-256 8ebfb8c7b2489a8939d8bd5eff22ac78f725cb4f4a011dac9da83fff556e1f41

See more details on using hashes here.

File details

Details for the file djtesseract-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: djtesseract-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for djtesseract-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa89bfa210e0844eacca5e2b1a821da6957989d910fd94681053676d2ed6bfc
MD5 c32bc51dde2feff120910528e7d8ed27
BLAKE2b-256 bc5cf1572fcf5c93332f6fd72925841b467dd995492c09ab2ef603a4dad6d0f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page