Metadata-Version: 2.4
Name: django-sp
Version: 1.24.5
Summary: Django application for custom Social Profile Auth and User model.
Author-email: DLRSP <dlrsp.dev@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/DLRSP/django-sp
Project-URL: Documentation, https://github.com/DLRSP/django-sp/
Project-URL: Repository, https://github.com/DLRSP/django-sp
Project-URL: Issues, https://github.com/DLRSP/django-sp/issues
Project-URL: Changelog, https://github.com/DLRSP/django-sp/blob/main/CHANGELOG.rst
Keywords: django,socialprofile,authentication,oauth,social-auth,2fa,user-profile
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Internet :: WWW/HTTP :: Session
Classifier: Topic :: Security
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.2
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=3.2
Requires-Dist: django-errors
Requires-Dist: python-social-auth
Requires-Dist: social-auth-app-django
Requires-Dist: django-otp
Requires-Dist: django-two-factor-auth
Requires-Dist: django-oauth-toolkit
Requires-Dist: djangorestframework
Requires-Dist: easy_thumbnails
Requires-Dist: django-cors-headers
Requires-Dist: geoip2
Requires-Dist: django-user-sessions
Requires-Dist: django-axes
Requires-Dist: phonenumbers
Requires-Dist: django-phonenumber-field
Requires-Dist: django-image-cropping
Requires-Dist: django-countries
Requires-Dist: django-crispy-forms
Requires-Dist: sweetify
Provides-Extra: party
Requires-Dist: django-party>=0.3.0; extra == "party"
Provides-Extra: testing
Requires-Dist: coverage; extra == "testing"
Requires-Dist: codecov; extra == "testing"
Requires-Dist: pytest; extra == "testing"
Requires-Dist: pytest-django; extra == "testing"
Provides-Extra: linting
Requires-Dist: flake8; extra == "linting"
Requires-Dist: flake8-pyproject; extra == "linting"
Requires-Dist: flake8-bugbear; extra == "linting"
Requires-Dist: flake8-comprehensions; extra == "linting"
Requires-Dist: flake8-tidy-imports; extra == "linting"
Requires-Dist: flake8-typing-imports; extra == "linting"
Requires-Dist: pylint; extra == "linting"
Dynamic: license-file

# django-sp

[![CI](https://github.com/DLRSP/django-sp/actions/workflows/ci.yaml/badge.svg)](https://github.com/DLRSP/django-sp/actions/workflows/ci.yaml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI version](https://img.shields.io/pypi/v/django-sp.svg)](https://pypi.org/project/django-sp/)
[![Docs](https://img.shields.io/badge/docs-github.io-blue.svg)](https://dlrsp.github.io/django-sp/)

Django social profile authentication: OAuth providers, optional two-factor auth, session hardening, and a customizable user profile.

## Why use it

- Social login via python-social-auth without building provider wiring from scratch
- Extended user profile (avatar, contact fields, preferences)
- Optional TOTP / two-factor authentication
- Login monitoring and session listing helpers
- OAuth2 toolkit and DRF-friendly token surfaces
- Optional dual-write to django-party external identities (`[party]` extra)

## Requirements

- Python 3.10+
- Django 3.2+ (4.2+ recommended)

## Install

```bash
pip install django-sp
```

Optional Party identity sync:

```bash
pip install "django-sp[party]"
```

## Quickstart

```python
INSTALLED_APPS = [
    # ...
    "socialprofile",
]

urlpatterns = [
    path("sp/", include("socialprofile.urls")),
]
```

```bash
python manage.py migrate
```

Configure OAuth backends and site settings as described in the documentation.

## Documentation

- Docs: https://dlrsp.github.io/django-sp/
- PyPI: https://pypi.org/project/django-sp/
- Source: https://github.com/DLRSP/django-sp

## License

MIT
