Skip to main content

A Django field for storing fuzzy date information

Project description

Django Interval

django-interval is a Django app. It provides model fields to store date information with some extra data stored in additional fields. The additional fields are composed of a _date_sort, a _date_from and a _date_to field that store data that is generated from the string stored in the main model field.

Installation

Install django-interval and add django_interval to your INSTALLED_APPS add the django_interval.urls to your urlpatterns:

urlpatterns += [path("", include("django_interval.urls"))]

Use either the django_interval.fields.FuzzyDateParserField or the django_interval.fields.FuzzyDateRegexField in your models. Both come with sensible defaults (a parser method in the FuzzyDateParserField and a list of regexes in the FuzzyDateRegexField), but it is possible to pass custom parser or regexes as arguments.

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

django_interval-0.5.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

django_interval-0.5.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file django_interval-0.5.2.tar.gz.

File metadata

  • Download URL: django_interval-0.5.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_interval-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ee385b66c5b5ad018f1f8aaa2cf0cf5ac3d090cc20ef41d7c380d55930ae5c49
MD5 83cf6609f6729108de9a58901b257f03
BLAKE2b-256 05fc6c8a77658d5a57a3ae53a7a3672fd103ba7e04277c02d60d4980695b4afa

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_interval-0.5.2.tar.gz:

Publisher: publish.yml on acdh-oeaw/django-interval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_interval-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_interval-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04efe14c10eea04aac352d0bbbe5f4d9070db0d5dfaf7c7f17cb116f159a9782
MD5 6a1f556c01f13122d0c1a1e3824251dd
BLAKE2b-256 cc8a3973a640e30c39e2a0d2a26edafa9890da48a70edf1d45a7830ef3a72587

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_interval-0.5.2-py3-none-any.whl:

Publisher: publish.yml on acdh-oeaw/django-interval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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