Skip to main content

A compiler for PEP 345 environment markers.

Project description


Compile or interpret PEP 345 environment markers.


>>> import markerlib
>>> marker = markerlib.as_function(" == 'posix'")
>>> marker(environment=markerlib.default_environment(),
>>> marker(environment=markerlib.default_environment(),

The implementation uses the ast to compile environment markers as Python statements with a limited set of allowed node types.


  • Might work on Python 2.5 (includes needed parts of the ast module from Python 2.6+)
  • Include 100% test coverage, tox config file


  • Initial version

Project details

Download files

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

Files for markerlib, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size markerlib-0.3.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page