semvec/pypi-packages huggingface dataset:
ormparams 2.0.3
Query parameter parser and filter for ORM-based applications
License: MIT
Requires Python: >=3.9

ORMParams
===========

[![PyPI](https://img.shields.io/pypi/v/ormparams)](https://pypi.org/project/ormparams)
[![GitHub](https://img.shields.io/badge/GitHub-181717?style=flat&logo=github&logoColor=white)](https://github.com/AntonKochurka/ormparams)
[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)



Query parameter parser and filter for ORM-based applications. Soon will include a FastAPI extension.


## Installation

```bash
pip install ormparams
````

Also, for the upcoming FastAPI integration:

```bash
pip install "ormparams[fastapi]"
```


## Quick Start
pyejs 0.1.0
A Python template engine inspired by EJS for dynamic HTML rendering.
License: MIT
Requires Python: >=3.8

# PyEJS

**A Python template engine inspired by EJS**  
Render dynamic HTML using `<%= variable %>` for data and `<% code %>` for logic like loops and conditionals.

---

## ✨ Features

- Variable interpolation: `<%= variable %>`  
- Code blocks: `<% code %>` (loops, conditionals, etc.)  
- Render templates from strings or files  
- Simple and lightweight  
- Custom error handling for missing variables or syntax errors

---

## ⚙️ Installation

```bash
git clone https://github.com/your-username/pyejs.git
cd pyejs
🚀 Usage
🔹 Render from string
from pyejs import Template

template = """
<h1>Hello, <%= user %>!</h1>
<ul>
<% 
for item in items:
    output.append(f"  <li>{item}</li>\\n")
%>
</ul>
"""

context = {
    "user": "Alice",
    "items": ["Apple", "Banana", "Cherry"]
}

t = Template(template)
html = t.render(context)
print(html)

🔹 Render from file
from pyejs import Template

html = Template.render_file("templates/my_template.html", context)
print(html)

⚠️ Error Handling

TemplateVariableError → Raised if a variable is missing in context

TemplateSyntaxError → Raised for invalid code blocks

🛠️ Roadmap

✅ Variable interpolation <%= %>

✅ Code blocks <% %>

⚡ Support if-else and nested loops

⚡ Template includes <% include %>

⚡ CLI tool for rendering templates from terminal

🤝 Contributing

Contributions are welcome!
Feel free to submit issues, feature requests, or pull requests
# Optional: install in your environment
pip install .