semvec/pypi-packages huggingface dataset:
bottle-pymysql 0.1.4
MySQL integration for Bottle.
License: MIT


Bottle-MySQL is a plugin that integrates MySQL with your Bottle
application. It automatically connects to a database at the beginning of a
request, passes the database handle to the route callback and closes the
connection afterwards.

To automatically detect routes that need a database connection, the plugin
searches for route callbacks that require a `pymydb` keyword argument
(configurable) and skips routes that do not. This removes any overhead for
routes that don't need a database connection.

Results are returned as dictionaries.

Usage Example::

    import bottle
    import bottle_pymysql

    app = bottle.Bottle()
    # dbhost is optional, default is localhost
    plugin = bottle_pymysql.Plugin(dbuser='user', dbpass='pass', dbname='db')
    app.install(plugin)

    @app.route('/show/:<tem>')
    def show(item, pymydb):
        pymydb.execute('SELECT * from items where name="%s"', (item,))
        row = pymydb.fetchone()
        if row:
            return template('showitem', page=row)
        return HTTPError(404, "Page not found")
hino 0.0.5
unofficial API package for Hino.
License: MIT
Keywords: API,hino,unofficial,Hino

# Hino API Package - HAP
 unofficial API package for [Hino](https://hino.tk).
 
 <hr>
 
 # Docs
 
 ## Installation
 you can install this package by typing
 ```py
 $ pip install hino
 ```

## Usage
```py
from hino import Hino as hino

print(*hino.developers)
 
```

There are 4 main methods to fetch the data: 
 
 `getshards()`
 `getclient()`
 `getbasics()`
 `gethandler()`

<hr>

## Variables

#### `hino.developers` returns a list of Hino's developers

#### `hino.partners` returns a list of Hino's partners

## Methods

### getbasics()

#### Arguments
info: str

#### returns
data as string data type

#### how to use it
you can get diffrent data by changing the value of `info` , `info` has 7 cases, if diffrent value were put, it will return `TypeError`
the 7 cases are:
- name - url - author
- license - version - website_api_version
- latecy

```py
Hino.getbasics("license")
```
<hr>

### getshards()

#### Arguments
info: str
shardNum: int

#### returns
data as string data type

#### how to use it
you can get diffrent data for diffrent shards by changing the value of `info` and `shardNum` , `info` has 5 cases, if diffrent value were put, it will return `TypeError`.
the 5 cases are:
- name - version - users
- servers - type
each shard has a diffrent value of `info` to change it, you must change the `shardNum` to the shard number you want to fetch.
tip: if you left the `shardNum` blank and changed the value of `info` to *count* , it will return the shards count.


```py
Hino.getshards("type",2)
```


```py
Hino.getshards("count")
```
<hr>

### getclient()

#### Arguments
info: str

#### returns
data as string data type

#### how to use it
you can get diffrent data by changing the value of `info` , `info` has 6 cases, if diffrent value were put, it will return `TypeError`
the 6 cases are:
- name - banner - version
- color - color2 - ping

```py
Hino.getclient("name")
```
<hr>

### gethandler()

#### Arguments
info: str

#### returns
data as string data type

#### how to use it
you can get diffrent data by changing the value of `info` , `info` has 7 cases, if diffrent value were put, it will return `TypeError`
the 7 cases are:
- name - description - version
- process - websocket - type 
- module

```py
Hino.gethandler("description")
```
<hr>
cdk-pynamodb 0.1.1
AWS CDK DynamoDB table construct from PynamoDB models.
License: MIT
Requires Python: >=3.7,<4.0

============
CDK PynamoDB
============

AWS CDK Construct for DynamoDB Table from PynamoDB Model.

Streamline DynamoDB create and deploy with PynamoDB and AWS CDK.

This package provides a construct for creating a DynamoDB table using the AWS CDK and PynamoDB models.
It simplifies the process of creating and deploying DynamoDB tables in your AWS environment.

Define your tables in a reusable and predictable way with infrastructure-as-code.


Installation
============
From PyPi::

    $ pip install cdk-pynamodb

From GitHub::

    $ pip install git+https://github.com/altoria/cdk-pynamoDB#egg=cdk-pynamodb



Basic Usage
===========

Create a model that describes your DynamoDB table.

.. code-block:: python3

    from pynamodb.models import Model

    class UserTable(Model):
        class Meta:
            host = "http://localhost:8000"
            table_name = "user-table"
            billing_mode = PROVISIONED_BILLING_MODE
            read_capacity_units = 10
            write_capacity_units = 3

        user_id = UnicodeAttribute(hash_key=True)
        email = UnicodeAttribute(null=True)

Now, you can import and construct model in AWS CDK

.. code-block:: python3

    from cdk_pynamodb import PynamoDBTable

    from models import UserTable

    from aws_cdk import Stack
    from constructs import Construct

    class Database(Stack):
        def __init__(self, scope: Construct, id_: str):
            super().__init__(scope, id_)

            self.table = PynamoDBTable.from_pynamodb_model(self, pynamodb_model=UserTable)
kanji2arabic 1.1.3
Convert Kanji numerals to Arabic numerals.
License: MIT
Requires Python: >=3.6,<4.0
Keywords: Japanese,kanji,int2kanji,kanji2int,convert

# kanji2arabic_number

Convert Kanji numerals to Arabic numerals.

powerd by [Interman co., ltd](https://interman.jp/)

[GitHub](https://github.com/interman-corp/kanji2arabic)

## Demo

```python
from kanji2arabic import Kanji2Arabic

print(Kanji2Arabic.kanji2arabic("一二三"))
  # "123"

print(Kanji2Arabic.kanji2arabic("百二十三"))
  # "123"

print(Kanji2Arabic.kanji2arabic("二〇二〇"))
  # "2020"

print(Kanji2Arabic.arabic2kanji("1230456"))
  # "一二三〇四五六"

```

## Requirements

kanjize 1.3.0
video-background-estimation 0.1.4
background estimation based on simple techniques
License: MIT
Requires Python: >=3.8,<4.0
Keywords: video background estimation,background extraction from video

# video_background_estimation
Background estimation of videos using simple technques. 

#### Input:
![ezgif-5-41733c4472](https://user-images.githubusercontent.com/6439266/213073414-17089212-3016-4c09-8741-0bb585bc2003.gif)


#### Output:
![image](https://user-images.githubusercontent.com/6439266/213074235-668b7cb4-7f6f-40d4-909e-dc386c2e26af.png)


#### Usage
```
from video_background_estimation.EstimateBackground import BackgroundEstimation
back_est = BackgroundEstimation("videos/british_highway_traffic.mp4", frame_fraction=0.1)
result = back_est.get_background(method="median")
```

##### Acknowledgement:
Thanks to my colleague Dinesh Ladi for all the help with Poetry.

##### References:
[1] Road Traffic Video Monitoring. https://www.kaggle.com/datasets/493b50c9f4c536c08262acadfeca70e2e4df0dadacae1655e8669903b2e21623. <br>
[2] Simple Background Estimation in Videos Using OpenCV (C++/Python) | LearnOpenCV #. 27 Aug. 2019, https://learnopencv.com/simple-background-estimation-in-videos-using-opencv-c-python/