semvec/pypi-packages huggingface dataset:
undine 0.2.6
A GraphQL library for Django
License: MIT
Requires Python: <4,>=3.11
Keywords: Django, GraphQL

# Undine - GraphQL for Django

[![Coverage Status][coverage-badge]][coverage]
[![GitHub Workflow Status][status-badge]][status]
[![PyPI][pypi-badge]][pypi]
[![GitHub][licence-badge]][licence]
[![GitHub Last Commit][repo-badge]][repo]
[![GitHub Issues][issues-badge]][issues]
[![Downloads][downloads-badge]][pypi]
[![Python Version][version-badge]][pypi]
[![Django Version][django-badge]][pypi]

[coverage-badge]: https://coveralls.io/repos/github/MrThearMan/undine/badge.svg?branch=main
[status-badge]: https://img.shields.io/github/actions/workflow/status/MrThearMan/undine/test.yml?branch=main
[pypi-badge]: https://img.shields.io/pypi/v/undine
[licence-badge]: https://img.shields.io/github/license/MrThearMan/undine
[repo-badge]: https://img.shields.io/github/last-commit/MrThearMan/undine
[issues-badge]: https://img.shields.io/github/issues-raw/MrThearMan/undine
[version-badge]: https://img.shields.io/pypi/pyversions/undine
[downloads-badge]: https://img.shields.io/pypi/dm/undine
[django-badge]: https://img.shields.io/pypi/djversions/undine

[coverage]: https://coveralls.io/github/MrThearMan/undine?branch=main
[status]: https://github.com/MrThearMan/undine/actions/workflows/test.yml
[pypi]: https://pypi.org/project/undine
[licence]: https://github.com/MrThearMan/undine/blob/main/LICENSE
[repo]: https://github.com/MrThearMan/undine/commits/main
[issues]: https://github.com/MrThearMan/undine/issues

```shell
pip install undine
```

---

**Documentation**: [https://mrthearman.github.io/undine/](https://mrthearman.github.io/undine/)

**Source Code**: [https://github.com/MrThearMan/undine/](https://github.com/MrThearMan/undine/)

**Contributing**: [https://mrthearman.github.io/undine/contributing/](https://mrthearman.github.io/undine/contributing/)

---

Undine is a GraphQL library for Django. It's designed to be easy to use and extend
while providing out-of-the-box solutions for many common issues GraphQL developers face.

**Feature highlights:**

- Automatic generation of GraphQL types from Django models
- Automatic query optimization
- Logically composable filtering
- Ordering based on enums
- Single and bulk mutations, including relations
- Hidden and input-only mutation inputs
- Built-in permission and validation hooks
- Support for Relay Global object IDs and Connection pagination
- File uploads based on GraphQL multipart request specification
- Support for asynchronous execution
- Subscriptions with websockets
- Optional persisted documents support
- Lifecycle hooks for customizing the GraphQL request cycle
- Hiding fields and types from schema (experimental)
- Built-in testing tools

Check out the [Tutorial] to get started.

[Tutorial]: https://mrthearman.github.io/undine/tutorial/
django-mercadopago-integration 1.0.1
Reusable Mercado Pago integration for Django projects
License: MIT
Requires Python: <4.0,>=3.8

# django-mercadopago-integration

Plug-and-play Mercado Pago integration for Django. Direct integration out of the box — fully customizable via config and handlers. No model changes — declare your entity in config and the package handles linking automatically.

*Actively developed — more features and customization options are added over time.*

- **Using the package in your project?** → [**Integration guide**](INTEGRATION.md) (install, credentials, URLs, entity & webhook setup).
- **Developing or publishing this package?** → [**Developer guide**](DEVELOPER.md) (local development, testing, publishing to PyPI).

---

## What it offers (high level)

- **Direct payments** — Charge customers from your main account.
- **Third-party account linking** — Connect sellers/suppliers via OAuth; they authorize once, the package links them to your entities automatically.
- **Split payments** — Split each payment between your business and linked third parties; fees and commissions tracked in Payment, Income, and Commission models.
- **Automatic logs** — Every webhook and notification is logged in `MercadoPagoNotificationLog` for audit and debugging.
- **Notification handling** — Webhook endpoint included; processes MP notifications, creates records, and calls your custom handler when configured.

---

## What you get

| What | Description |
|------|-------------|
| **URLs** | Include `mercado_pago.urls` to get callback, payments, webhook, and refresh routes. |
| **Endpoints** | OAuth callback, direct payment (main account), notifications. Per-entity: register, disconnect, create_payment (split to that entity’s account). |
| **Callbacks** | **OAuth** `GET /mercado_pago/oauth_callback/` (MP redirect; links account to entity). **Webhook** `POST /mercado_pago/notifications/` (notifications; creates Payment/Income/Commission and optionally calls `notification_handler`). See [INTEGRATION.md → Callbacks](INTEGRATION.md#callbacks-what-they-are-and-which-ones-exist). |
| **Models** | `MercadoPagoAccount`, `MercadoPagoAccountLink`, `MercadoPagoNotificationLog`, `MercadoPagoPayment`, `MercadoPagoIncome`, `MercadoPagoAppCommission`. Payment/Income/Commission are created automatically for approved notifications. |
| **Admin** | Django admin for accounts, links, and notification logs. |

Quick start (see [INTEGRATION.md](INTEGRATION.md) for full steps):

```bash
pip install django-mercadopago-integration
```

Add `"mercado_pago"` to `INSTALLED_APPS`, run migrations, set credentials, and include the URLs. For per-entity register, disconnect, and create_payment, add `entity_model` (and optional fee/notification keys) to `MERCADO_PAGO` and mount the nested ViewSet — no code in your app, linking and payments are automatic.

License: MIT