zope.configuration
Zope Configuration Markup Language (ZCML)
What it is and what it does
Zope.configuration is a framework for building extensible configuration systems centered on configuration directives. It abstracts the idea that users express configuration choices in a pluggable language—XML by default—which the system then interprets and applies. The package is part of the Zope ecosystem and provides the core machinery for declarative configuration, allowing applications to define what configuration directives are valid, how they are processed, and what actions they trigger.
The package depends on zope.interface, zope.schema, and zope.i18nmessageid to handle interface definitions, field validation, and internationalization of messages. It is typically used in frameworks or applications that need to support configuration files written in a domain-specific language rather than Python code, enabling non-developers to adjust application behavior through configuration markup.
Use it for:
- Build a web framework that accepts XML-based configuration files to define routes, handlers, and middleware without requiring code changes.
- Create a plugin system where third-party packages register configuration directives that are validated and executed at startup.
- Implement a declarative configuration layer for a CMS or application server where administrators configure features via ZCML markup.
- Support environment-variable-based conditional configuration (added in version 6.0) to enable different setups for dev, test, and production.
- Extend an existing Zope-based application with custom configuration directives for domain-specific settings.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Zope.configuration provides an extensible configuration system based on configuration directives, with XML as the default language, enabling pluggable configuration approaches for applications.
Yes, if you are building or extending a Zope-based application or need a mature, extensible configuration framework with XML support. The package is actively maintained, has no known vulnerabilities, and supports modern Python versions. Verify ZPL-2.1 license compatibility first. Not necessary for most general-purpose Python applications.
Install
zope-configuration on PyPI
pip
pip install zope-configurationuv
uv add zope-configurationpoetry
poetry add zope-configurationInstalling zope.configuration
Before you install
Low install friction with three lightweight runtime dependencies. Actively maintained as of 2026-04-10, supporting modern Python versions (3.10 through 3.14) and PyPy. No known vulnerabilities.
License in practice
Licensed under ZPL-2.1 (Zope Public License 2.1), though license treatment is marked unclear in the metadata. Verify compatibility with your project's license requirements before use.
Quickstart
pip install zope.configuration
from zope.configuration import xmlconfig
xmlconfig.file('configure.zcml')
Requires Python 3.10 or later.
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license or distribution model.
- Whether the XML-based configuration language meets your use case or if custom directive languages are needed.
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — zope.i18nmessageid, zope.interface, zope.schema |
| Maintenance | actively maintained — 126 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 862,161/month — #4,871 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_configuration-7.1-py3-none-any.whl
Keywords: zope, configuration, zcml
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
ZConfigZConfig is a schema-driven configuration…
unclear · top 15,000 on PyPI
zope.browserpageProvides ZCML directives (browser:page,…
unclear · top 15,000 on PyPI
zope.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
zope.browsermenuProvides browser menu implementation and ZCML…
unclear · top 15,000 on PyPI
zope.viewletzope.viewlet provides a pluggable framework for…
unclear · top 15,000 on PyPI
MultiMappingMultiMapping provides special mapping objects…
unclear · top 15,000 on PyPI
zope.browserresourceRegisters and serves static browser resources…
unclear · top 15,000 on PyPI
zope.schemaDefines structured data schemas for Python…
unclear · top 5,000 on PyPI
zope.contentproviderProvides a framework for building componentized…
unclear · top 15,000 on PyPI
zope.sizeProvides a standard interface and adapter for…
unclear · top 15,000 on PyPI