semvec/pypi-packages huggingface dataset:
synapse-stickerpicker 0.1.0
Pluggable module for Matrix (matrix.org) Synapse server that automatically enables sticker picker for Element IM on self-hosted instances.
License: MIT
Keywords: matrix,synapse,element-im

Matrix Synapse StickerPicker
============================

Pluggable module for Matrix (matrix.org) Synapse server that automatically enables sticker picker for
Element IM on self-hosted instances.

Installation
------------

::

    pip install synapse-stickerpicker

Usage
-----

Add external module settings to server's config (normally ``homeserver.yaml``):

.. code-block:: yaml

    modules:
      - module: synapse_stickerpicker.AppendStickerPickerData
        config:
          stickerpicker_url: '<stickerpicker_app_url>'


After server restart every time when new user is registered, its account data is automatically updated
with appropriate event to enable sticker picker in Element IM apps.


To get started one could try `Maunium sticker picker <https://github.com/maunium/stickerpicker>`__
or its external server's URL ``https://maunium.net/stickers-demo/?theme=$theme`` (**WARNING**:
Element IM stickerpicker widget passes instance URL as a parameter and thus disclosures it).
fastapi-vers 0.3.0
FastAPI versioning
License: MIT
Requires Python: >=3.8

# fastapi_vers
API versioning concept for FastAPI

![tests](https://github.com/levsh/fastapi_vers/workflows/tests/badge.svg)

```bash
pip install fastapi_vers
```

```python
from fastapi import FastAPI
from fastapi_vers import API


api = API(
    "0.3",
    app_kwds={
        "all": {"title": "Versioned API", "version": "0.0"},
        "0.1": {"version": "0.1"},
        "0.2": {"version": "0.2"},
    }
)


@api.app.get("/")
async def root():
    return "Hello World!"


@api.app.get("/foo")
@api.version(["0.1-0.2"])
async def foo():
    return "This endpoint available only for 0.1, 0.2 api versions"


@api.app.get("/bar")
@api.version(["0.1-latest"])
async def bar():
    return "This endpoint available for 0.1, 0.2, 0.3 api versions"


app = FastAPI()
app.mount("/api", api.get_versioned_app())

"""
http://localhost:8000/api/latest

http://localhost:8000/api/0.1/foo
http://localhost:8000/api/0.2/foo

http://localhost:8000/api/0.1/bar
http://localhost:8000/api/0.2/bar
http://localhost:8000/api/0.3/bar
"""
```