Skip to main content

gencode – Sporniket's toolbox for generating code

PyPI - Version PyPI - License

[WARNING] Please read carefully this note before using this project. It contains important facts.

Content

  1. What is gencode – Sporniket's toolbox for generating code, and when to use it ?
  2. What should you know before using gencode – Sporniket's toolbox for generating code ?
  3. How to use gencode – Sporniket's toolbox for generating code ?
  4. Known issues
  5. Miscellanous

1. What is gencode – Sporniket's toolbox for generating code, and when to use it ?

gencode – Sporniket's toolbox for generating code is a code generator. For now it can generate a set of blanks cpp files and their header files, with parameters to have proper licence notice, copyright notices and taylored header guards.

What's new in version 1.1.0

A new generator is available to create a test runner for a source library project.

  • Resolves #6 : [gencpp] 'gencpp sourcelib-testing'

What's new in version 1.0.1

Change entry point from gncpp to gencpp, as expected by the READMEs.

What's new in version 1.0.0

Initial release, that can generate blank cpp files and their header files.

  • Resolves #1 : [gencpp] generate a blank cpp file and its header
  • Resolves #2 : [gencpp] generate a valid copyright notice
  • Resolves #3 : [gencpp] generate a valid licence notice
  • Resolves #4 : [gencpp] generate a header guard using a library name
  • Resolves #5 : [gencpp] use a config file to factor common parameters

Licence

gencode – Sporniket's toolbox for generating code is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

gencode – Sporniket's toolbox for generating code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with gencode – Sporniket's toolbox for generating code. If not, see http://www.gnu.org/licenses/ .

2. What should you know before using gencode – Sporniket's toolbox for generating code ?

SECURITY WARNING : gencode – Sporniket's toolbox for generating code is not meant to be installed on a public server.

gencode – Sporniket's toolbox for generating code is written in Python language, version 3.9 or above, and consists of :

  • gencpp : the generator of CPP code.

Do not use gencode – Sporniket's toolbox for generating code if this project is not suitable for your project

3. How to use gencode – Sporniket's toolbox for generating code ?

Requirements

Python 3.9 or later versions, pip3 and pdm are required.

From source

To get the latest available code, one must clone the git repository, build and install to the maven local repository.

git clone https://github.com/gencode.git
cd gencode
pdm sync
pdm build
sudo pip3 install dist/gencode-by-sporniket-<version>-py3-none-any.whl

From Pypi

Add any of the following dependencies that are appropriate to your project.

sudo pip3 install gencode-by-sporniket

Documentation

4. Known issues

See the project issues page.

5. Miscellanous

Report issues

Use the project issues page.

Release files for gencode-by-sporniket 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gencode-by-sporniket 1.1.0
File Size Uploaded
gencode_by_sporniket-1.1.0.tar.gz 29.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gencode-by-sporniket 1.1.0
File Interpreter ABI Platform
gencode_by_sporniket-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 68.0 kB

Release files / gencode_by_sporniket-1.1.0.tar.gz

Download URL gencode_by_sporniket-1.1.0.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
33e9cf96bc90317520884526a871175f6cd3eedce0f3971b5c8c9ae87a338246
BLAKE2b-256 checksum
How to use checksums
a1175b9194bde99616cf1804921f338ad0cccd34084e81711f7f3d653031a644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / gencode_by_sporniket-1.1.0-py3-none-any.whl

Download URL gencode_by_sporniket-1.1.0-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a239e1145c4923fe11390ed67363202fce95d8af56740520c64abad769a02ca
BLAKE2b-256 checksum
How to use checksums
48795f05af05c9ecf1b80239b12764c0491d493fb5b1500ec7f9d526c6133860
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page