django-citext


Namedjango-citext JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryPostgreSQL CIText integration for Django.
upload_time2023-10-27 11:42:56
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords postgresql django citext case insensitive postgres
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Django CIText

PostgreSQL CIText integration for Django.

[![PyPi Version](https://img.shields.io/pypi/v/django-citext.svg)](https://pypi.python.org/pypi/django-citext/)
[![Test Coverage](https://codecov.io/gh/voiio/django-citext/branch/main/graph/badge.svg)](https://codecov.io/gh/voiio/django-citext)
[![GitHub License](https://img.shields.io/github/license/voiio/django-citext)](https://raw.githubusercontent.com/voiio/django-citext/main/LICENSE)

## Setup

```ShellSession
python3 -m pip install django-citext
```

```python
# settings.py
INSTALLED_APPS = [
    'citext',
    # ...
]
```

## Usage

```python
# myapp/models.py
from django.db import models
from citext import CITextField, CIEmailField


class MyModel(models.Model):
    name = CITextField()
    email = CIEmailField(unique=True)
```

```python
# myapp/views.py
from django.http import HttpResponse, HttpResponseNotFound

from . import models


def my_view(request, email):
    try:
        my_model = models.MyModel.objects.get(email=email)
    except models.MyModel.DoesNotExist:
        return HttpResponseNotFound()
    return HttpResponse(my_model.name)
```

## Credits

Project is based on the Django's own CIText implementation,
which was removed in Django 5.0. Big thanks to the Django contributors
for their excellent work.


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-citext",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "PostgreSQL,Django,CITEXT,Case Insensitive,postgres",
    "author": "",
    "author_email": "Johannes Maron <johannes@maron.family>, J\u00f6rg Benesch <benesch.joerg@gmail.com>, Rust Saiargaliev <fly.amureki@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/92/1b/db53a85f9b457693ddc64921a9326df9bca04a0bf94d7149403683b52266/django_citext-0.2.0.tar.gz",
    "platform": null,
    "description": "# Django CIText\n\nPostgreSQL CIText integration for Django.\n\n[![PyPi Version](https://img.shields.io/pypi/v/django-citext.svg)](https://pypi.python.org/pypi/django-citext/)\n[![Test Coverage](https://codecov.io/gh/voiio/django-citext/branch/main/graph/badge.svg)](https://codecov.io/gh/voiio/django-citext)\n[![GitHub License](https://img.shields.io/github/license/voiio/django-citext)](https://raw.githubusercontent.com/voiio/django-citext/main/LICENSE)\n\n## Setup\n\n```ShellSession\npython3 -m pip install django-citext\n```\n\n```python\n# settings.py\nINSTALLED_APPS = [\n    'citext',\n    # ...\n]\n```\n\n## Usage\n\n```python\n# myapp/models.py\nfrom django.db import models\nfrom citext import CITextField, CIEmailField\n\n\nclass MyModel(models.Model):\n    name = CITextField()\n    email = CIEmailField(unique=True)\n```\n\n```python\n# myapp/views.py\nfrom django.http import HttpResponse, HttpResponseNotFound\n\nfrom . import models\n\n\ndef my_view(request, email):\n    try:\n        my_model = models.MyModel.objects.get(email=email)\n    except models.MyModel.DoesNotExist:\n        return HttpResponseNotFound()\n    return HttpResponse(my_model.name)\n```\n\n## Credits\n\nProject is based on the Django's own CIText implementation,\nwhich was removed in Django 5.0. Big thanks to the Django contributors\nfor their excellent work.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "PostgreSQL CIText integration for Django.",
    "version": "0.2.0",
    "project_urls": {
        "Changelog": "https://github.com/voiio/citext/releases",
        "Project-URL": "https://github.com/voiio/citext"
    },
    "split_keywords": [
        "postgresql",
        "django",
        "citext",
        "case insensitive",
        "postgres"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1007f1eca8a0c45af68046fbcd73307f11011da9a05c9fbfc4730faaff538ce0",
                "md5": "deea684c0a1ee7230bdc836ce59ad137",
                "sha256": "60c87e8719d594f177c5c44cd63e5af7bcc585657fab29be8d8c819f82edd350"
            },
            "downloads": -1,
            "filename": "django_citext-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "deea684c0a1ee7230bdc836ce59ad137",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5209,
            "upload_time": "2023-10-27T11:42:54",
            "upload_time_iso_8601": "2023-10-27T11:42:54.695864Z",
            "url": "https://files.pythonhosted.org/packages/10/07/f1eca8a0c45af68046fbcd73307f11011da9a05c9fbfc4730faaff538ce0/django_citext-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "921bdb53a85f9b457693ddc64921a9326df9bca04a0bf94d7149403683b52266",
                "md5": "0da95a2a6b689cf31e6ae3612d5e2871",
                "sha256": "0cbd9b2b51134dfc20196998dc07183c3adabca0c99b579bbaad78da7e850e4a"
            },
            "downloads": -1,
            "filename": "django_citext-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0da95a2a6b689cf31e6ae3612d5e2871",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4125,
            "upload_time": "2023-10-27T11:42:56",
            "upload_time_iso_8601": "2023-10-27T11:42:56.199161Z",
            "url": "https://files.pythonhosted.org/packages/92/1b/db53a85f9b457693ddc64921a9326df9bca04a0bf94d7149403683b52266/django_citext-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-27 11:42:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "voiio",
    "github_project": "citext",
    "github_not_found": true,
    "lcname": "django-citext"
}
        
Elapsed time: 0.12945s