Skip to main content

Python package to parse and generate C/C++ code as context aware preprocessor.

Project description

Devana

License: LGPL v2.1 PyPI - Python Version PyPI - Status PyPI - Format PyPI - Implementation
Tests Release
PyPI GitHub issues Website PyPI - Downloads

Devana is a python tool that make it easy to parsing, format, transform and generate C++ (or C) code. This tool uses libclang to parse the code. Fundamental problems, bugs and missing features of libclang are fixed in Devann's internal code.
Please note that Devana focuses on the header-level code e.g. class and functions definitions, templates resolving, typedefs and includes. Control statements, arithmetics operations etc. (pure body of functions) are supported as access to raw string field "body". It is planned to introduce more control over this type of code in future versions.
Important: Devana is still under development. At the moment, parsing and basic code generation is available (almost full coverage of development plans). Please check roadmap.

Installation

Devana is published on PyPI and can be installed from there:

pip install -U devana

If you wish to install Devana for development purposes, refer to the contributors guide.

How to start

You can find the complete guide in this section of the documentation.
Demo applications are located in project repository inside demo folder.

Documentation

Documentation is available from GitHub Pages.

Contributing

Please check contributing guide for take more details about contributing this project.
For now, the most wanted help is bugreports, bugfix, writing test and parser features completion. You can write e-mail to me directly with question about help.

Testing

Continuous testing is GitHub Actions. For information on running tests locally, refer to the contributors guide.

Roadmap

A detailed list of missing functionalities and planned features can be found in the documentation.

Acknowledgments

JetBrains Black Box Logo logo For providing a very good development environment within Free License Programs for Open Source.

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

devana-2.4.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

devana-2.4.0-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file devana-2.4.0.tar.gz.

File metadata

  • Download URL: devana-2.4.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for devana-2.4.0.tar.gz
Algorithm Hash digest
SHA256 d61f2d891aaba6410796fbf02ccf1b725215dc92b34176f3505a5184ed1481e0
MD5 bf955735d61b7d3d01d7097a5165b561
BLAKE2b-256 06e484d082725383d2718bab4587b111069ea9b1bced6d4c4c163d4cbf589a28

See more details on using hashes here.

File details

Details for the file devana-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: devana-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for devana-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78946243d8dcdb2dbdb3aa287f4fcf37f406086b34397cb6f4c24c1985fe6c73
MD5 a812ca0429299b8126e7e764f706e1f2
BLAKE2b-256 5f6f610a6db132a5a4fc9f52f07090dc989414ba970645efaac6a8aa5d962d9d

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