skillfed

crossplane

Reliable and fast NGINX configuration file parser.

crossplane v0.5.8 3.4M downloads/30d#2,646 on PyPI762
Permissive license Apache 2.0 Active released

What it is and what it does

Crossplane is a parser and builder for NGINX configuration files. It reads NGINX configs and converts them into structured JSON, making it possible to programmatically analyze, validate, or regenerate configurations. It also provides command-line utilities to parse, build, lex, format, and minify NGINX configs. The package has no runtime dependencies and works as both a Python module and a standalone CLI tool.

The parser handles the full NGINX config syntax including nested blocks, includes, and arguments, and can optionally exclude sensitive directives for privacy. It's commonly used in infrastructure tooling, configuration management, and the NGINX Amplify Agent for analyzing server configurations without exposing secrets.

Use it for:

  • Programmatically analyze NGINX configurations in Python to audit settings or extract values.
  • Convert NGINX configs to JSON for storage, comparison, or transmission to other systems.
  • Rebuild NGINX configs from JSON payloads in automated deployment or configuration management workflows.
  • Format or minify NGINX configuration files from the command line.
  • Extract and validate NGINX directives while filtering out sensitive data like certificates or passwords.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses NGINX configuration files into JSON and rebuilds them from JSON, with command-line tools for parsing, building, lexing, formatting, and minifying configs.

Yes. Crossplane is actively maintained, has no dependencies, and fills a specific need for NGINX config parsing and manipulation. It's widely used (top 5000 PyPI packages) with no known vulnerabilities. Install it if you need to programmatically work with NGINX configurations or provide config analysis tooling.

Install

crossplane on PyPI

pip

pip install crossplane

uv

uv add crossplane

poetry

poetry add crossplane

Installing crossplane

Before you install

Low install friction with no runtime dependencies. Actively maintained as of 2026-03-31 with 762 repository stars. Supports Python 2.7 and Python 3.6 through 3.10.

License in practice

Apache 2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install crossplane

import crossplane
result = crossplane.parse('/etc/nginx/nginx.conf')
print(result['status'])

Verify before relying

  • Whether the package handles all NGINX directive types or has known limitations with newer NGINX versions.
  • Current compatibility status with Python 3.11+ given the latest release was 2022-09-22.

Package facts

License Apache 2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 1,422 days since the last release
Last repo commit
First released
Downloads 3,373,566/month — #2,646 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: crossplane-0.5.8-py2.py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

nginx config parserparse nginx configurationnginx to jsonnginx config buildernginx configuration toolnginx config formatternginx lexer
nginxconfiguration-managementcli-tool

More Utilities packages