Skip to main content

Generate text document from simple scripts using your favorite language.

Project description

StupidGen version

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:

git clone https://framagit.org/squirrrr/stupidgen.git
cd stupidgen 
pip install .

Check your installation with the following command:

stupdigen --version

Usage

Example for python, but many other languages are supported. Check out the documentation.

#test.py.multi

for i in range(5) : 
	>Hello world {% i %}

Then run your program with:

stupidgen -C --run test.py.multi

This produces the following output:

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:

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.

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

stupidgen-0.3.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

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

stupidgen-0.3.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file stupidgen-0.3.0.tar.gz.

File metadata

  • Download URL: stupidgen-0.3.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for stupidgen-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4877f201d85523c7595dc9ea75f8cafc0cfbe02ad322cb555373c3159debec01
MD5 5aeedab65d11abe2d2d9db7f7338bf17
BLAKE2b-256 9edecf5f872ed7e3e5dddf137a7e5b2fc6f79456e1c11bcfdac059f7ddd8fade

See more details on using hashes here.

File details

Details for the file stupidgen-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: stupidgen-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for stupidgen-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e561bfa1e80ed5515dfdcab4f1207407678b2a695e0ab703a83c0504e7597553
MD5 4b34268c9233874e4b88de82273a6743
BLAKE2b-256 4d32bd6d8f921545ea9a0a52110f9a34886df1cd2e6e1b4fd3ebd21e55c31eb0

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