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 _sort, a _from and a _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.2.3.tar.gz (6.4 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.2.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_interval-0.2.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for django_interval-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5f84a9b7983a6897712fda157b5e714e25bb18375e2884c0b3811c8ae3df347b
MD5 5217b7a83bb0722d752b9864c0031dda
BLAKE2b-256 3db311d7fb29fc63bf01ab095a422a7a9d9995a28f04a21ed2eb77d436699bea

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on b1rger/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.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_interval-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f693d2d04c81baacc7e4958b7172ff425743a61ddda9bb4f6d73e8b6928be4e
MD5 9ecbfa82a8545c4ffa80ea7382d85b5c
BLAKE2b-256 283f7345a865a2b4b1d7194c90bab552598731f036a9054af43c5c373731c3b9

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on b1rger/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