semvec/pypi-packages huggingface dataset:
Flask-Url-Patterns 0.1.3
A simple Flask extension to manage URL patterns. In a Django kind of way.
Requires Python: <4.0,>=3.11

# Flask URL Patterns

## Usage

You must instanciate UrlPatterns and provide the urlpatterns param to it as well as a Flask app instance either in \_\_init\_\_ or init_app params.

`urlpatterns` must be of type: `Iterable[URLPattern]` with:

```python
class URLPattern(TypedDict):
    path: str | Iterable[str]
    name: NotRequired[str]
    view: NotRequired[RouteCallable]
    children: NotRequired[Iterable[URLPattern]]
    options: NotRequired[dict[str, Any]]
    parent_vars_rename: NotRequired[dict[str, str]]
```

_(In case typing is not up to date in README.md, know that you can see current accepted typing in `flask_url_patterns.typing`)_

## Example

```python
from flask import Flask
from flask_url_patterns import URLPatterns

from . import views

app = Flask(__name__)

urlpatterns = UrlPatterns(urlpatterns=[
    {
        "path": "/",
        "name": "index",
        "view": views.index,
        "children": [
            {
                "path": "/api",
                "name": "api",
                "children": [
                    {
                        "path": "/resources",
                        "view": views.ResourceViewSet.as_view({ # Using as implemented by [Flask-ViewSets](https://pypi.org/project/Flask-Viewsets/)
                            "get": "list",
                            "post": "create",
                        }),
                        "children": [
                            {
                                "path": "/<int:id>",
                                "view": views.ResourceViewSet.as_view({
                                    "get": "retrieve",
                                    "put": "update",
                                    "patch": "partial_update",
                                    "delete": "destroy",
                                }),
                            },
                        ],
                    },
                ]
            },
        ],
    },
])

urlpatterns.init_app(app)
```
crcon 1.1.2
A small extension for chromaconsole for CMD
Requires Python: >=3
Keywords: color, console, terminal, text, style

# crcon

crcon console is a python package that uses chromaconsole to change text color of cmd

* if ***requests*** is installed this package updates automaticaly
* some terminals still don't support *ANSI escape*

<br>

## Installation

```cmd
pip install crcon
```

<br>

## Functions
```cmd
crcon text <hex code>
#text color

crcon bg <hex code>
#text background color

crcon text reset
#reset text color

crcon bg reset
#reset bg color

crcon style <style>
#change text styling (italic, bold, doubleunderlined, faint, hidden, normalintensity, overlined, propspacing, reverse, strikethrough, underline)
```
<br>