Skip to main content

A library to render HTML

Project description

createmeal-py

A HTML library renderer.

Get Started

Instalation

pip install createmeal-py

Basic Usage

The main metod of createmeal is toHtml({}), so:

    print(createmeal.toHtml({div:{}}))

output:

    <div></div>

Take a Hello world example:

    helloWorld = {
        html:{
            head: {},
            body: {
                div: [
                    {
                        h3: ["Hello World!"]
                    },
                    {
                        p: ["This is a simple way to generate DOM without write HTML."]
                    }
                ]
            }
        }
    }
        
    print(createmeal.toHtml(helloWorld));

output:

<html>
    <head>
    </head>
    <body>
        <div>
            <h3>Hello World!</h3>
            <p>This is a simple way to generate DOM without write HTML.</p>
        </div>
    </body>
</html>

Build

Make sure you have the latest version of PyPA’s build installed:

python3 -m pip install --upgrade build

Now run this command from the same directory where pyproject.toml is located:

python3 -m build

Documentation

You can find the createmeal documentation on the website.

License

Createmeal is MIT licensed.

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

createmeal-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

createmeal-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file createmeal-0.1.0.tar.gz.

File metadata

  • Download URL: createmeal-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for createmeal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a72548ad3a77130c7184a60f83d7759e10f1da6006541d44e894416a147bb097
MD5 476ae2bb62f3aaa8b60c0c8765f64167
BLAKE2b-256 d939cab2a814b2dc6ee8ca87d83b1cb5ebf3b95fcd06d04af8fe6828cf948f75

See more details on using hashes here.

File details

Details for the file createmeal-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: createmeal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for createmeal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1df600e18272ce679c9cc62482daf030335902f530e91959bf96d75adb31814
MD5 af29ebc224c85840265262daaf25969c
BLAKE2b-256 01fbc4b4b085f3e7f3e28ccac0fe2d7e8880cde346877eb8d8349d45e8e718a3

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