=================
Purpose
-------
* To easily write C files
* It provides classes so you dont have to worry about maintaining indent, ending things with semi colong
* Make your C code standard if autogenerating using python script
* Can be used in following scenarios
* Generating C code for your communication networks like CAN, LIN etc
* Generation of code through other database networks
* It also includes a templating engine, that can produce a skeleton of python file that can generate the C code given
as input
* So for example you want to start using this script for generating C code, you can follow the following steps
* Generate a skeleton of the C code with example functions
* Feed this as input to the parser as given below
* This will generate a python file called <c_file_name>_gen.py
* When this file is run it should produce a decent copy of the input file
* Use this template python file either as a function to extend and connect the code to your database info
.. warning::
The templating function is in beta mode
Installation
------------
This package can be pip installed
pip install c_builder
.. note::
Built and tested with python 3.6
Usage
-----
* For templating
run_c_builder -i <input_c_file.c>
* For just writing to a c file
.. highlight:: python
from c_builder import c_writer
* Then just use the file classes provided and check the documentation in the classes
* You can also check the generated template for pointers to usage
* Or check out the sample installed along with the library
For Bugs
--------
Join the slack workspace at -
https://join.slack.com/t/projectaja/shared_invite/enQtMjk1NTk0NzIwNDIzLWRmMTNjMzY3ZGFmYjY4MGZhOTBiNjZjZTA1YzM3MmFmYWIxOTJkY2QyOWNjM2JhZTk3NTMzMzNmZGIyZGM3NmY
And join the c_builder channel
Also you can email me at
pip[at]abhijit.bansal.com
Future
------
1. Add support for more C code
2. Support for doing standards check on the datatypes
3. More intelligent analysis
4. Support for C++
5. C++ style template classes for C
Version History
---------------
0.0.6 : Fix for package installation
0.0.2 : More support and documentation
0.0.1 : Initial version, tested upload to pypi
Metadata
Release files for c_builder 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| c_builder-0.0.6.tar.gz | 17.8 kB | Without provenance | Details for c_builder-0.0.6.tar.gz |
Release files / c_builder-0.0.6.tar.gz
| Download URL | c_builder-0.0.6.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70f338e59b38adebf3bbae45c709e657e99426ff611ccbf59cff0e69f9e4b165
|
|
BLAKE2b-256 checksum How to use checksums |
510ce04012a770d2516c0e0b700715420aea8d39194efbf4d5874ba9ceb62384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for c_builder 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.