aio-yte


Nameaio-yte JSON
Version 2.0.5 PyPI version JSON
download
home_pagehttps://github.com/Akm0d/aio-yte
SummaryAn Async YAML template engine with Python expressions
upload_time2024-09-02 00:23:33
maintainerNone
docs_urlNone
authorJohannes Köster
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AIO-YTE - An Asynchronous YAML Template Engine with Python Expressions

[![Docs](https://img.shields.io/badge/user-documentation-green)](https://yte-template-engine.github.io)
[![test coverage: 100%](https://img.shields.io/badge/test%20coverage-100%25-green)](https://github.com/yte-template-engine/yte/blob/main/pyproject.toml#L30)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/yte-template-engine/yte/testing.yml?branch=main)
![PyPI](https://img.shields.io/pypi/v/yte)
[![Conda Recipe](https://img.shields.io/badge/recipe-yte-green.svg)](https://anaconda.org/conda-forge/yte)
[![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/yte.svg)](https://anaconda.org/conda-forge/yte)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/yte.svg)](https://github.com/conda-forge/yte-feedstock)

AIO-YTE is an asynchronous template engine for YAML format that extends the YAML structure with Python expressions, enabling dynamic YAML document generation. The key feature of AIO-YTE is its ability to process Python expressions asynchronously, making it ideal for use in environments that require asynchronous operations, such as web servers or other I/O-bound applications.

## Key Features

- **Asynchronous Evaluation:** AIO-YTE allows you to use `await` within your YAML templates, enabling asynchronous processing of expressions. This is particularly useful in modern Python applications where asynchronous code is prevalent.
  
- **YAML-First Approach:** Like its predecessor YTE, AIO-YTE leverages YAML's structure to simplify2the syntax for template expressions, making it more intuitive and human-readable while maintaining YAML's native semantics.

- **Python Expression Integration:** AIO-YTE integrates Python syntax directly into YAML, allowing you to use conditionals, loops, and other Python expressions seamlessly within your templates.

## Documentation

Comprehensive documentation for YTE can be found at [yte-template-engine.github.io](https://yte-template-engine.github.io).

## Comparison with Other Engines

Many template engines are available, such as the popular [jinja2](https://jinja.palletsprojects.com). AIO-YTE is specifically designed for YAML, offering several advantages:

1. **YAML-Specific Syntax:** By utilizing YAML's syntax, AIO-YTE reduces the need for additional control flow symbols, making the templates more readable and less foreign to those familiar with YAML.
2. **Improved Whitespace Handling:** YAML's semantics require careful handling of whitespace, which AIO-YTE manages seamlessly without the need for complex configurations, as might be necessary with engines like jinja2.

Other YAML-specific template engines include:

- **[Yglu](https://yglu.io)**
- **[Yte](https://github.com/yte-template-engine/yte)**
- **[Emrichen](https://github.com/con2/emrichen)**

The main distinction of AIO-YTE is its extension of YAML with native Python syntax and its support for asynchronous operations. This allows for more natural and powerful template processing, particularly in applications that require asynchronous execution.

## Differences Between AIO-YTE and YTE

While AIO-YTE retains the core functionality of YTE, it introduces several key enhancements:

- **Asynchronous Processing:** The primary difference is the ability to handle asynchronous expressions, enabling the use of `await` directly within YAML templates.
- **Enhanced Error Handling:** AIO-YTE improves error handling, particularly in the context of asynchronous operations, ensuring more robust and predictable template evaluation.
- **Backwards Compatibility:** AIO-YTE remains compatible with existing YTE templates but extends their capabilities to handle async code, making it a drop-in replacement for applications that require async processing.

By incorporating these features, AIO-YTE is designed to meet the needs of modern Python applications, offering a powerful and flexible template engine for YAML.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Akm0d/aio-yte",
    "name": "aio-yte",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Johannes K\u00f6ster",
    "author_email": "johannes.koester@tu-dortmund.de",
    "download_url": "https://files.pythonhosted.org/packages/22/a8/da3e42e8b433d68b475e664bb001ff326d57ef7a25fd44b626ae75c84088/aio_yte-2.0.5.tar.gz",
    "platform": null,
    "description": "# AIO-YTE - An Asynchronous YAML Template Engine with Python Expressions\n\n[![Docs](https://img.shields.io/badge/user-documentation-green)](https://yte-template-engine.github.io)\n[![test coverage: 100%](https://img.shields.io/badge/test%20coverage-100%25-green)](https://github.com/yte-template-engine/yte/blob/main/pyproject.toml#L30)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/yte-template-engine/yte/testing.yml?branch=main)\n![PyPI](https://img.shields.io/pypi/v/yte)\n[![Conda Recipe](https://img.shields.io/badge/recipe-yte-green.svg)](https://anaconda.org/conda-forge/yte)\n[![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/yte.svg)](https://anaconda.org/conda-forge/yte)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/yte.svg)](https://github.com/conda-forge/yte-feedstock)\n\nAIO-YTE is an asynchronous template engine for YAML format that extends the YAML structure with Python expressions, enabling dynamic YAML document generation. The key feature of AIO-YTE is its ability to process Python expressions asynchronously, making it ideal for use in environments that require asynchronous operations, such as web servers or other I/O-bound applications.\n\n## Key Features\n\n- **Asynchronous Evaluation:** AIO-YTE allows you to use `await` within your YAML templates, enabling asynchronous processing of expressions. This is particularly useful in modern Python applications where asynchronous code is prevalent.\n  \n- **YAML-First Approach:** Like its predecessor YTE, AIO-YTE leverages YAML's structure to simplify2the syntax for template expressions, making it more intuitive and human-readable while maintaining YAML's native semantics.\n\n- **Python Expression Integration:** AIO-YTE integrates Python syntax directly into YAML, allowing you to use conditionals, loops, and other Python expressions seamlessly within your templates.\n\n## Documentation\n\nComprehensive documentation for YTE can be found at [yte-template-engine.github.io](https://yte-template-engine.github.io).\n\n## Comparison with Other Engines\n\nMany template engines are available, such as the popular [jinja2](https://jinja.palletsprojects.com). AIO-YTE is specifically designed for YAML, offering several advantages:\n\n1. **YAML-Specific Syntax:** By utilizing YAML's syntax, AIO-YTE reduces the need for additional control flow symbols, making the templates more readable and less foreign to those familiar with YAML.\n2. **Improved Whitespace Handling:** YAML's semantics require careful handling of whitespace, which AIO-YTE manages seamlessly without the need for complex configurations, as might be necessary with engines like jinja2.\n\nOther YAML-specific template engines include:\n\n- **[Yglu](https://yglu.io)**\n- **[Yte](https://github.com/yte-template-engine/yte)**\n- **[Emrichen](https://github.com/con2/emrichen)**\n\nThe main distinction of AIO-YTE is its extension of YAML with native Python syntax and its support for asynchronous operations. This allows for more natural and powerful template processing, particularly in applications that require asynchronous execution.\n\n## Differences Between AIO-YTE and YTE\n\nWhile AIO-YTE retains the core functionality of YTE, it introduces several key enhancements:\n\n- **Asynchronous Processing:** The primary difference is the ability to handle asynchronous expressions, enabling the use of `await` directly within YAML templates.\n- **Enhanced Error Handling:** AIO-YTE improves error handling, particularly in the context of asynchronous operations, ensuring more robust and predictable template evaluation.\n- **Backwards Compatibility:** AIO-YTE remains compatible with existing YTE templates but extends their capabilities to handle async code, making it a drop-in replacement for applications that require async processing.\n\nBy incorporating these features, AIO-YTE is designed to meet the needs of modern Python applications, offering a powerful and flexible template engine for YAML.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An Async YAML template engine with Python expressions",
    "version": "2.0.5",
    "project_urls": {
        "Homepage": "https://github.com/Akm0d/aio-yte",
        "Repository": "https://github.com/yte-template-engine/yte"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a5469d1d51f5546df4591c0da16faff42418d4f8dce955e83625cb24f221c08",
                "md5": "6641fc2b2edafc7b9e9cc3317e7e5927",
                "sha256": "599f1ae7e90d653c6fc4812281ac20df2802de349652a48fe179f2a573566eb4"
            },
            "downloads": -1,
            "filename": "aio_yte-2.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6641fc2b2edafc7b9e9cc3317e7e5927",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8428,
            "upload_time": "2024-09-02T00:23:32",
            "upload_time_iso_8601": "2024-09-02T00:23:32.003086Z",
            "url": "https://files.pythonhosted.org/packages/5a/54/69d1d51f5546df4591c0da16faff42418d4f8dce955e83625cb24f221c08/aio_yte-2.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22a8da3e42e8b433d68b475e664bb001ff326d57ef7a25fd44b626ae75c84088",
                "md5": "f39570f630a65739949ce08682bd05f0",
                "sha256": "6d7f851248712070da92b08df5ba8a808193a48f66f276de9870e42e53c0a268"
            },
            "downloads": -1,
            "filename": "aio_yte-2.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "f39570f630a65739949ce08682bd05f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8501,
            "upload_time": "2024-09-02T00:23:33",
            "upload_time_iso_8601": "2024-09-02T00:23:33.843202Z",
            "url": "https://files.pythonhosted.org/packages/22/a8/da3e42e8b433d68b475e664bb001ff326d57ef7a25fd44b626ae75c84088/aio_yte-2.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-02 00:23:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Akm0d",
    "github_project": "aio-yte",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aio-yte"
}
        
Elapsed time: 0.35455s