semvec/pypi-packages huggingface dataset:
django-dataexporter 2.1.0
Extensible helper to export Django QuerySets and other data to CSV and Excel.
License: MIT
Requires Python: <4,>=3.10

django-dataexporter
===================

.. image:: https://img.shields.io/pypi/v/django-dataexporter.svg
   :target: https://pypi.org/project/django-dataexporter/
   :alt: Latest Version

.. image:: https://github.com/stephrdev/django-tapeforms/workflows/Test/badge.svg?branch=master
   :target: https://github.com/stephrdev/django-tapeforms/actions?workflow=Test
   :alt: CI Status

.. image:: https://codecov.io/gh/lenarother/django-dataexporter/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/lenarother/django-dataexporter
   :alt: Coverage Status

.. image:: https://readthedocs.org/projects/django-dataexporter/badge/?version=latest
   :target: https://django-dataexporter.readthedocs.io/en/stable/?badge=latest
   :alt: Documentation Status


*django-dataexporter* is a extensible helper to export Django QuerySets and other data to CSV and Excel.


Features
--------

* Exporter class to generate CSV and Excel files out of QuerySets and other iterables.
* Factory to generate Django ModelAdmin actions to trigger an export out of Django's famous admin interface.


Requirements
------------

django-dataexporter supports Python 3.10+ and Django 3.2+.
In addition, the Python package ``openpyxl`` needs to be installed.


Prepare for development
-----------------------

A Python 3.10+ interpreter is required in addition to uv.

Install uv:

.. code-block:: shell

    $ curl -LsSf https://astral.sh/uv/install.sh | sh
    # or
    $ pip install uv

Install dependencies:

.. code-block:: shell

    $ uv sync --extra dev

Set up pre-commit hooks (optional but recommended):

.. code-block:: shell

    $ uv run pre-commit install

Now you're ready to run the tests:

.. code-block:: shell

    $ uv run pytest

Run linting and formatting checks:

.. code-block:: shell

    $ uv run ruff check .
    $ uv run ruff format --check .

Run tests with coverage:

.. code-block:: shell

    $ uv run pytest --cov

Run tests across multiple Python and Django versions (includes linting):

.. code-block:: shell

    $ uv run tox

Format code with ruff:

.. code-block:: shell

    $ uv run ruff format .

Run pre-commit on all files:

.. code-block:: shell

    $ uv run pre-commit run --all-files


Resources
---------

* `Documentation <https://django-dataexporter.readthedocs.io>`_
* `Bug Tracker <https://github.com/lenarother/django-dataexporter/issues>`_
* `Code <https://github.com/lenarother/django-dataexporter/>`_
m2ai-n8n-mcp 1.0.0
MCP server for n8n workflow management
License: MIT
Requires Python: >=3.11
Keywords: ai, automation, claude, mcp, model-context-protocol, n8n, workflow

# n8n-mcp

MCP server for n8n workflow management. Provides AI assistants with the ability to review workflow status in n8n instances.

Generated by GRIMLOCK MCP Factory.

## Features

- **check_workflows**: Reviews all workflows and reports their status, including active/inactive counts and workflows with recent errors.

## Installation

```bash
# Clone or download the package
cd n8n-mcp

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/macOS
# or: venv\Scripts\activate  # Windows

# Install package
pip install -e .
```

## Configuration

Create a `.env` file or set environment variables:

```bash
# Base URL of your n8n instance (no trailing slash)
N8N_BASE_URL=https://your-n8n-instance.app.n8n.cloud

# API key from n8n Settings > API
N8N_API_KEY=your_api_key_here
```

### Getting Your n8n API Key

1. Open your n8n instance
2. Go to **Settings** > **API**
3. Create a new API key or copy an existing one
4. Use the full URL of your n8n instance for `N8N_BASE_URL`

## Usage

### Claude Desktop Configuration

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "n8n": {
      "command": "/path/to/n8n-mcp/venv/bin/python",
      "args": ["-m", "n8n_mcp.server"],
      "env": {
        "N8N_BASE_URL": "https://your-n8n-instance.app.n8n.cloud",
        "N8N_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### Running Directly

```bash
# Activate virtual environment
source venv/bin/activate

# Run the server
python -m n8n_mcp.server
```

## Available Tools

### check_workflows

Reviews all workflows and reports their status.

**Parameters**: None

**Returns**:
- `total_workflows`: Total number of workflows
- `active_workflows`: Number of active workflows
- `inactive_workflows`: Number of inactive workflows
- `workflows_with_errors`: Count of workflows with recent errors
- `error_workflows`: List of workflows with errors (id, name, error count)
- `workflows`: Detailed list of all workflows with execution stats

**Example Response**:
```json
{
  "total_workflows": 5,
  "active_workflows": 3,
  "inactive_workflows": 2,
  "workflows_with_errors": 1,
  "error_workflows": [
    {"id": "2", "name": "Data Sync", "errors": 3}
  ],
  "workflows": [
    {
      "id": "1",
      "name": "Email Notifications",
      "active": true,
      "recent_executions": {
        "success": 10,
        "error": 0,
        "waiting": 0,
        "running": 0
      }
    }
  ]
}
```

## Development

```bash
# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=n8n_mcp

# Type checking
mypy src/

# Linting
ruff check src/
```

## License

MIT