semvec/pypi-packages huggingface dataset:
stollen 0.8.1
An asynchronous framework to easily build a client-side API
Requires Python: >=3.9
Keywords: api, asyncio, client, framework, wrapper


#######
stollen
#######

.. image:: https://img.shields.io/pypi/l/stollen.svg?style=flat-square
    :target: https://opensource.org/licenses/MIT
    :alt: MIT License

.. image:: https://img.shields.io/pypi/status/stollen.svg?style=flat-square
    :target: https://pypi.python.org/pypi/stollen
    :alt: PyPi status

.. image:: https://img.shields.io/pypi/v/stollen.svg?style=flat-square
    :target: https://pypi.python.org/pypi/stollen
    :alt: PyPi Package Version

.. image:: https://img.shields.io/pypi/dm/stollen.svg?style=flat-square
    :target: https://pypistats.org/packages/stollen
    :alt: Downloads

.. image:: https://img.shields.io/pypi/pyversions/stollen.svg?style=flat-square
    :target: https://pypi.python.org/pypi/stollen
    :alt: Supported python versions

**Stollen** is an asynchronous framework designed to streamline the process
of building API clients, written in Python 3.9+ using
`aiohttp <https://github.com/aio-libs/aiohttp>`_ and
`pydantic <https://docs.pydantic.dev/latest/>`_.
With a declarative approach, Stollen allows developers
to define API methods, handle responses, and manage errors
in a structured way, focusing on clarity and scalability.

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

..  code-block:: bash

    pip install -U stollen

Example
-------

.. code-block:: python

    from __future__ import annotations

    import asyncio
    import logging

    from stollen import Stollen, StollenMethod, StollenObject
    from stollen.enums import HTTPMethod
    from stollen.exceptions import StollenAPIError


    class CoingeckoAPIError(StollenAPIError):
        pass


    class RateLimitError(CoingeckoAPIError):
        pass


    class Coingecko(Stollen):
        def __init__(self) -> None:
            super().__init__(
                base_url="https://api.coingecko.com/api/v3",
                error_message_key=["status", "error_message"],
                general_error_class=CoingeckoAPIError,
                error_codes={429: RateLimitError},
                stringify_detailed_errors=False,
            )

        async def ping(self) -> GeckoSays:
            call: Ping = Ping()
            return await self(call)


    class GeckoSays(StollenObject[Coingecko]):
        gecko_says: str


    class Ping(
        StollenMethod[GeckoSays, Coingecko],
        http_method=HTTPMethod.GET,
        api_method="/ping",
        returning=GeckoSays,
    ):
        pass


    async def main() -> None:
        logging.basicConfig(level=logging.DEBUG)
        async with Coingecko() as coingecko:
            gecko_says: GeckoSays = await coingecko.ping()
            logging.info(gecko_says)


    if __name__ == "__main__":
        asyncio.run(main())
ucdp 0.41.0
Unified Chip Design Platform
Requires Python: <4.0,>=3.10.0

[![PyPI Version](https://badge.fury.io/py/ucdp.svg)](https://badge.fury.io/py/ucdp)
[![Python Build](https://github.com/nbiotcloud/ucdp/actions/workflows/main.yml/badge.svg)](https://github.com/nbiotcloud/ucdp/actions/workflows/main.yml)
[![Documentation](https://readthedocs.org/projects/ucdp/badge/?version=stable)](https://ucdp.readthedocs.io/en/stable/?badge=stable)
[![Coverage Status](https://coveralls.io/repos/github/nbiotcloud/ucdp/badge.svg?branch=main)](https://coveralls.io/github/nbiotcloud/ucdp?branch=main)
[![python-versions](https://img.shields.io/pypi/pyversions/ucdp.svg)](https://pypi.python.org/pypi/ucdp)

# Unified Chip Design Platform

* [Documentation](https://ucdp.readthedocs.io/en/stable/)
* [PyPI](https://pypi.org/project/ucdp/)
* [Sources](https://github.com/nbiotcloud/ucdp)
* [Issues](https://github.com/nbiotcloud/ucdp/issues)

## Installation

Installing it is pretty easy:

```bash
pip install ucdp
```
ucdp-addr 1.11.0
Unified Chip Design Platform - Address Map
Requires Python: <4.0,>=3.10.0

[![PyPI Version](https://badge.fury.io/py/ucdp-addr.svg)](https://badge.fury.io/py/ucdp-addr)
[![Python Build](https://github.com/nbiotcloud/ucdp-addr/actions/workflows/main.yml/badge.svg)](https://github.com/nbiotcloud/ucdp-addr/actions/workflows/main.yml)
[![Documentation](https://readthedocs.org/projects/ucdp-addr/badge/?version=stable)](https://ucdp-addr.readthedocs.io/en/stable/?badge=stable)
[![Coverage Status](https://coveralls.io/repos/github/nbiotcloud/ucdp-addr/badge.svg?branch=main)](https://coveralls.io/github/nbiotcloud/ucdp-addr?branch=main)
[![python-versions](https://img.shields.io/pypi/pyversions/ucdp-addr.svg)](https://pypi.python.org/pypi/ucdp-addr)

# Unified Chip Design Platform - Address Map

* [Documentation](https://ucdp-addr.readthedocs.io/en/stable/)
* [PyPI](https://pypi.org/project/ucdp-addr/)
* [Sources](https://github.com/nbiotcloud/ucdp-addr)
* [Issues](https://github.com/nbiotcloud/ucdp-addr/issues)

## Installation

Installing it is pretty easy:

```bash
pip install ucdp-addr
```
python3-cyberfusion-fast-redirect 1.1
fast-redirect redirects domains.

# python3-cyberfusion-fast-redirect

fast-redirect redirects domains.

# Install

## PyPI

Run the following command to install the package from PyPI:

    pip3 install python3-cyberfusion-fast-redirect

## Debian

Run the following commands to build a Debian package:

    mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
    dpkg-buildpackage -us -uc

# Configure

## App

Find an example config in `.env.example`.

Add settings to the `.env` file. This file is relative to your working directory.

Only `DATABASE_PATH` is required to be set. We recommend setting it to `/var/lib/fast-redirect.json`.

These settings can be overridden by specifying them as environment variables.

## JSON Database

Find an example JSON database in `fast-redirect.json`.

Properties:

* `destination_url`. URL to redirect to. This must be a URL (i.e. `www.domlimev.nl` is invalid).
* `status_code`. Allowed values: `301`, `302`, `303`, `307`, `308`.
* `keep_query_parameters`. Whether query parameters are kept. If this is false, query parameters are discarded from the `destination_url`. For example, if this is false, `https://domlimev.nl/page?k=v` is redirected to `https://example.com`.
* `keep_path`. Whether the path is kept. If this is false, the path is discarded from the `destination_url`. For example, if this is false, `https://domlimev.nl/this/is/a/path` is redirected to `https://example.com`.

# Usage

## Manually

    bin/fast-redirect

### systemd

    systemctl start fast-redirect.service

## SSL

Use a proxy that terminates SSL. E.g. [HAProxy](http://www.haproxy.org/).

The domain or IP address that the proxy uses for health checks should not be configured as a redirect.
python3-cyberfusion-wordpress-support 2.1
Library for WordPress.

# python3-cyberfusion-wordpress-support

Library for WordPress.

# Install

## PyPI

Run the following command to install the package from PyPI:

    pip3 install python3-cyberfusion-wordpress-support

Next, install the following software:

* WP-CLI, according to the [documentation](https://make.wordpress.org/cli/handbook/guides/installing/#recommended-installation) or using [Homebrew](https://formulae.brew.sh/formula/wp-cli). WP-CLI is not required to run tests (automatically downloaded on every suite run).
* MariaDB client (required by WP-CLI), possibly using [Homebrew](https://formulae.brew.sh/formula/mysql-client).

## Debian

Run the following commands to build a Debian package:

    mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
    dpkg-buildpackage -us -uc

# Configure

No configuration is supported.

# Usage

See code.
konjingjing 1.0.0
Thai Citizen ID validation library
Requires Python: >=3.9
Keywords: thai, validation, citizen-id, thailand

# konjingjing

Thai Citizen ID validation library for Python (Rust-powered).

The library name 'kon-jing-jing' (คนจริงจริง) means 'real person' in Thai.

## Installation

```bash
pip install konjingjing
```

Or with uv:

```bash
uv add konjingjing
```

## Usage

### Verify ID

```python
from konjingjing import verify_id

assert verify_id('1112034563562')        # Valid
assert not verify_id('1112034563563')    # Invalid checksum
assert not verify_id('11120345635')      # Too short
```

### Extract ID Meaning

```python
from konjingjing import get_id_meaning

result = get_id_meaning('1101700230703')
# {
#     'person_type_code': 1,
#     'person_type_description': 'คนไทยที่แจ้งเกิดภายในกำหนด',
#     'person_type_description_en': 'Thai citizen, birth registered on time',
#     'province_code': 10,
#     'province_name_th': 'กรุงเทพมหานคร',
#     'province_name_en': 'Bangkok',
#     'amphoe_code': 1017,
#     'amphoe_name': 'ห้วยขวาง',
#     'is_valid': True
# }

get_id_meaning('invalid')  # None
```

## License

ISC
yamkix 0.14.0
An opinionated yaml formatter based on ruamel.yaml
Requires Python: >=3.10

# yamkix

[![Pypi](https://img.shields.io/pypi/v/yamkix.svg)](https://pypi.python.org/pypi/yamkix)
[![codecov](https://codecov.io/github/looztra/yamkix/graph/badge.svg?token=GRN3Z5B0NP)](https://codecov.io/github/looztra/yamkix)

## Yamkix

`Yamkix` is an opinionated `yaml`file formatter.

You can read the docs at <https://looztra.github.io/yamkix/>

## Changelog

The Changelog is available at <https://looztra.github.io/yamkix/changelog/>

## Hack

Check [our contribution guidelines](https://looztra.github.io/yamkix/contributing).