Skip to main content

A modern CLI for managing QGIS plugin development, deployment, and packaging.

Project description

QGIS Plugin Manager

PyPI version PyPI Downloads Python versions CI Ruff Checked with mypy Maintenance License: GPL v2+ Code Quality GitHub stars GitHub issues

QGIS Plugin Manager is a professional, high-performance CLI tool designed to manage the full lifecycle of QGIS plugins. From local development and smart synchronization to official repository compliance and automated versioning. Now available on PyPI for easy integration.


🥇 The "Manager" Difference

qgis-plugin-manager is the modern successor to traditional QGIS development workflows.

📊 Ecosystem Comparison

Feature pb_tool qgis-plugin-ci qgis-plugin-manager
Configuration Legacy .cfg Hybrid .yml Pure PEP 621 (TOML)
Deployment Delete & Copy N/A Smart Sync (rsync-like)
Backups None None Rotation & Multi-profile
Hooks Shell only Shell only Native Python + Shell
Validation Basic Schema only Deep Structure & Compliance
Modern RCC Fixed tools Limited Dynamic Tooling & Patching

🚀 Key Differentiators (USPs)

  • Smart Synchronization (Sync v2.0): We use idempotent sync logic. Instead of slow "delete and copy", we only update modified files.
  • Native Python Hooks Architecture: Write your automation in pure Python via plugin_hooks.py. Hooks receive full project context (metadata, paths, profiles).
  • Official Repository "First-Time-Right": Built-in --repo-check and structural validation catch errors before you upload to QGIS.
  • AI-Agent Friendly: Specifically designed to be easily automated by AI agents, featuring clear metadata and a modular command system.

📦 Installation

Install system-wide using uv (recommended):

uv tool install qgis-manage

Or add as a dev-dependency:

uv add --group dev qgis-manage

Or using pip:

pip install qgis-manage

🛠️ Command Reference

1. Project Initialization

Scaffold a professional plugin project.

# Create a processing plugin
qgis-manage init "My Plugin" --author "Tester" --email "test@test.com" --template processing

2. Development & Deployment

Speed up your local iteration.

# Smart deploy to default QGIS profile
qgis-manage deploy

# Deploy to a specific profile with backup rotation
qgis-manage deploy --profile production --max-backups 5

# Purge old backups to save space
qgis-manage deploy --purge-backups

3. Advanced Hooks (hooks)

Manage and test your native Python hooks.

# List all hooks from pyproject.toml and plugin_hooks.py
qgis-manage hooks list

# Initialize a standard plugin_hooks.py template
qgis-manage hooks init

# Test a hook in isolation without deploying
qgis-manage hooks test pre_deploy

4. Automated Versioning (bump)

Keep your versions in sync across all project files.

# Increment version (Patch, Minor, Major)
qgis-manage bump patch   # 0.1.0 -> 0.1.1
qgis-manage bump minor   # 0.1.1 -> 0.2.0

# Sync metadata.txt from pyproject.toml source of truth
qgis-manage bump sync

5. Packaging & Compliance

Prepare for the Official QGIS Plugin Repository.

# Create a "Repo-Ready" ZIP package
qgis-manage package

# Package with strict compliance check (fails if binaries or errors found)
qgis-manage package --repo-check --sync-version

6. Maintenance & Quality

# Run deep structural validation
qgis-manage validate --strict --repo

# Run QGIS Plugin Analyzer on the project
qgis-manage analyze

# Clean Python artifacts (__pycache__) and build files
qgis-manage clean

⚙️ Configuration (pyproject.toml)

Leverage YOUR existing configuration. No new files needed.

[tool.qgis-manager]
max_backups = 5  # Control backup rotation

[tool.qgis-manager.ignore]
ignore = [
    "data/*.csv",
    "tests/temp/*"
]

[tool.qgis-manager.hooks]
post_deploy = "python scripts/notify.py"

🌍 Internationalization (i18n)

Automated compilation and management of .ts and .qm files is handled by qgis-manage compile.

📄 License

GPL-2.0-or-later

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qgis_manage-0.6.1.tar.gz (274.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qgis_manage-0.6.1-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

Details for the file qgis_manage-0.6.1.tar.gz.

File metadata

  • Download URL: qgis_manage-0.6.1.tar.gz
  • Upload date:
  • Size: 274.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qgis_manage-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8a04bb598df205a402c349677911c8a33ed3cc7397ea3f7e356b4f0c267d820f
MD5 94fd51e92bec4ce2eb3ad5a7f4c3df7c
BLAKE2b-256 b2f4bc1045e03a273d365b8a8110b594577327877bff3720938431f59ac71f56

See more details on using hashes here.

File details

Details for the file qgis_manage-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: qgis_manage-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 45.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qgis_manage-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6cb4679feb24808b84622a3c46ee9f442659149a06492d6b0245aa789d5e89
MD5 9e0c9117670af64ebb75caf2b45e0aea
BLAKE2b-256 b86f1cbe95f2f0bff9e3ff49d27c0b27b8d30ef7f27cbe645ea47624dd76520a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page