StupidGen ![version](https://framagit.org/squirrrr/stupidgen/-/badges/release.svg)
=========
Stupidly simple template generator for people that don't want to learn an yet an other way to write a for loop.
Installation
----
You need to have python installed. Install the latest release with:
```
pip install stupidgen
```
The development version can be installed with the following commands:
```bash
git clone https://framagit.org/squirrrr/stupidgen.git
cd stupidgen
pip install .
```
Check your installation with the following command:
```bash
stupdigen --version
```
Usage
----
Example for python, but many other languages are supported. Check out the [documentation](http://stupidgen-1b56ce.frama.io/).
```python
#test.py.multi
for i in range(5) :
>Hello world {% i %}
```
Then run your program with:
```bash
stupidgen -C --run test.py.multi
```
This produces the following output:
```text
Hello world 0
Hello world 1
Hello world 2
Hello world 3
Hello world 4
```
Development
---
You can use the ./stupidgen bash script at the source of the repository to make sure that you run the local version of the program, and not the one you might have installed globally.
Some tests are provided in the `tests/`folder to verify that the output remain correct. They can be run with:
```bash
sh tests/runTests.sh
```
Finally, the code for the documentation pages is in the `doc/` folder, and uses mkdocs. To host it locally you will need to install the dependencies with::
```
pip install -r doc/requirements.txt
```
Then a test version of the website that automatically reloads when you make changes can be started with:
```
cd doc && mkdocs serve
```
Contributing
---
Contributions are welcome. Check out the open issues, or open your own if you have suggestions for improvements/bugs to report.
License
----
This software is distributed under the GNU General Public License v3.
Raw data
{
"_id": null,
"home_page": "https://framagit.org/squirrrr/stupidgen",
"name": "stupidgen",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "stupidgen",
"author": "Marc Heinrich",
"author_email": "marc.heinrich@free.fr",
"download_url": "https://files.pythonhosted.org/packages/9e/de/cf5f872ed7e3e5dddf137a7e5b2fc6f79456e1c11bcfdac059f7ddd8fade/stupidgen-0.3.0.tar.gz",
"platform": null,
"description": "StupidGen ![version](https://framagit.org/squirrrr/stupidgen/-/badges/release.svg)\n=========\n\nStupidly simple template generator for people that don't want to learn an yet an other way to write a for loop.\n\nInstallation \n----\n\nYou need to have python installed. Install the latest release with: \n```\npip install stupidgen\n```\n\nThe development version can be installed with the following commands:\n\n```bash\ngit clone https://framagit.org/squirrrr/stupidgen.git\ncd stupidgen \npip install .\n```\n\nCheck your installation with the following command:\n```bash \nstupdigen --version\n```\n\nUsage \n----\n\nExample for python, but many other languages are supported. Check out the [documentation](http://stupidgen-1b56ce.frama.io/).\n\n```python\n#test.py.multi\n\nfor i in range(5) : \n\t>Hello world {% i %}\n```\n\nThen run your program with:\n\n```bash\nstupidgen -C --run test.py.multi\n```\n\nThis produces the following output:\n\n```text\nHello world 0\nHello world 1\nHello world 2\nHello world 3\nHello world 4\n```\n\nDevelopment \n---\n\nYou can use the ./stupidgen bash script at the source of the repository to make sure that you run the local version of the program, and not the one you might have installed globally.\n\nSome tests are provided in the `tests/`folder to verify that the output remain correct. They can be run with:\n\n```bash\nsh tests/runTests.sh\n```\n\nFinally, the code for the documentation pages is in the `doc/` folder, and uses mkdocs. To host it locally you will need to install the dependencies with:: \n```\npip install -r doc/requirements.txt \n```\nThen a test version of the website that automatically reloads when you make changes can be started with:\n```\ncd doc && mkdocs serve\n```\n\nContributing\n---\nContributions are welcome. Check out the open issues, or open your own if you have suggestions for improvements/bugs to report.\n\nLicense\n----\nThis software is distributed under the GNU General Public License v3.\n",
"bugtrack_url": null,
"license": "GNU General Public License v3",
"summary": "Generate text document from simple scripts using your favorite language.",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://framagit.org/squirrrr/stupidgen"
},
"split_keywords": [
"stupidgen"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4d32bd6d8f921545ea9a0a52110f9a34886df1cd2e6e1b4fd3ebd21e55c31eb0",
"md5": "4b34268c9233874e4b88de82273a6743",
"sha256": "e561bfa1e80ed5515dfdcab4f1207407678b2a695e0ab703a83c0504e7597553"
},
"downloads": -1,
"filename": "stupidgen-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4b34268c9233874e4b88de82273a6743",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 24177,
"upload_time": "2024-11-24T11:55:12",
"upload_time_iso_8601": "2024-11-24T11:55:12.426490Z",
"url": "https://files.pythonhosted.org/packages/4d/32/bd6d8f921545ea9a0a52110f9a34886df1cd2e6e1b4fd3ebd21e55c31eb0/stupidgen-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9edecf5f872ed7e3e5dddf137a7e5b2fc6f79456e1c11bcfdac059f7ddd8fade",
"md5": "5aeedab65d11abe2d2d9db7f7338bf17",
"sha256": "4877f201d85523c7595dc9ea75f8cafc0cfbe02ad322cb555373c3159debec01"
},
"downloads": -1,
"filename": "stupidgen-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "5aeedab65d11abe2d2d9db7f7338bf17",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 23610,
"upload_time": "2024-11-24T11:55:15",
"upload_time_iso_8601": "2024-11-24T11:55:15.264471Z",
"url": "https://files.pythonhosted.org/packages/9e/de/cf5f872ed7e3e5dddf137a7e5b2fc6f79456e1c11bcfdac059f7ddd8fade/stupidgen-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-24 11:55:15",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "stupidgen"
}