Metadata-Version: 2.4
Name: nextune-geofencing
Version: 0.1.0
Summary: Geofencing middleware and NextUne IP/whoami helpers for Django.
Author: Nextune Solutions
License: Proprietary
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: Django>=4.1
Requires-Dist: requests>=2.0

# nextune-geofencing

Internal Django app providing:

- `GeofencingMiddleware` that attaches `request.geofencing`, `request.country_code`, `request.country_name`
- `WhoAmIView` and `GeoByIPView` wrappers around NextUne geolocation APIs

## Installation

Install from your internal index or Git repository, for example:

```bash
pip install nextune-geofencing
```

## Django setup

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

MIDDLEWARE = [
    # ...
    "nextune_geofencing.middleware.GeofencingMiddleware",
]
```

Optional URLs:

```python
from django.urls import include, path

urlpatterns = [
    # ...
    path("v1/geo/", include("nextune_geofencing.urls")),
]
```

## Simple release workflow to PyPI

1. **Bump version** in `pyproject.toml`:

```toml
[project]
version = "0.1.1"
```

2. **Commit and tag**:

```bash
git add pyproject.toml nextune_geofencing
git commit -m "Bump nextune-geofencing to 0.1.1"
git tag v0.1.1
git push origin main --tags
```

3. **Build and upload** (locally or in CI):

```bash
python -m pip install --upgrade build twine
python -m build
twine upload dist/*
```

