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.

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.1.0.tar.gz (4.2 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.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_interval-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for django_interval-0.1.0.tar.gz
Algorithm Hash digest
SHA256 af09e4687678f3e2ba64b32de89644d7ccc49bf3a808ff373a58afda22f9523d
MD5 6b719beb672722e4db855420abe75f76
BLAKE2b-256 e77d99b899e525deca3f11ba5b1fa2e11041759fb9ccce6c9ff0382431946d1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_interval-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 582ad0ccdec26e9822f2c1edac3d0cd86e193eeb02278b8f7c1896962543bd7e
MD5 e5ed6b7bb8d9ae2759d1fe0e50199314
BLAKE2b-256 4c5a9c5db58f207f38aef1349fa2e5493188ea7e02efe3d84453c0d405eb6890

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