Skip to main content

Pure Python library to parse CMake scripts

Project description

cmake_parser is a pure Python parser for CMake code. It is still work in progress, but is reasonably usable. It provides the following features:

  • AST representation of CMake code

  • Correct handling of quoted and bracketed values

  • Variable expansion

  • Basic boolean expression evaluation

Notably missing but planned are:

  • Some operators for boolean expressions

  • Generator expression support

  • Script engine for convenient CMake execution within Python

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

cmake_parser-0.9.2.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

cmake_parser-0.9.2-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file cmake_parser-0.9.2.tar.gz.

File metadata

  • Download URL: cmake_parser-0.9.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cmake_parser-0.9.2.tar.gz
Algorithm Hash digest
SHA256 b7a313d3f41e58c09e0886f2c98f3fcee2b1897fe7f87449823a53e51ab23a3d
MD5 12a3866ac17a80ed774fe348379bdcbd
BLAKE2b-256 0747403d7cae1e6251a8e3581cec3ee74dd843f3bc441865a74e04013a35b83d

See more details on using hashes here.

File details

Details for the file cmake_parser-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: cmake_parser-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cmake_parser-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd763c10ce118b9ef1ddfa550ac270c28ca443804f41981eae45fcf30c0f7b0b
MD5 65da7ad9c75bd173d0dcf93149b47884
BLAKE2b-256 91d5b18630e6ac33d2e29ad399ca4df1f2ddc94dd8ec1746e42a4661c2a5b3cd

See more details on using hashes here.

Supported by

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