semvec/pypi-packages huggingface dataset:
YouTubeDownloader 1.1.3
A simple to use youtube playlists/videos/audios downloader
Requires Python: >=3.6

# YouTube Downloader V1.1.3

## Requirements

    python>=3.4
    pytube3==9.5.13

## Installation

`pip install YouTubeDownloader`

## Usage

Execute `YouTubeDownloader`

Follow the CLI instructions.

## To Do

- Allow to download all videos from a specific channel.
- Allow users to pass an URL on file call.
- Clean code.
- Create a progress bar.
- Develop tests.

### Notes

This tool has been developed merely as a learning challenge, isn't intended to have release dates.

If you liked it please share it!

Don't be shy, contribute.
btc-top-pool-api-sdk 1.0.2
Pool OpenAPI SDK.
Keywords: pool-api-sdk

pool open api sdk
=====================

## setup

```shell script
pip install btc-top-pool-api-sdk
```

## usage

example code:
```python

from btc_top_pool_api_sdk import Client


open_api_url='https://test/open-api/'
client_id='xxx'
secret_key='xxxx'
secret_salt='xxxxx'

client = Client(
    url=open_api_url,
    client_id=client_id,
    secret_key=secret_key,
    secret_salt=secret_salt)

result = client.call_api(
    'Speed.GetSubAccountAllWorkersHourlySpeedBulk',
    {'userName': 'test1', 'start': '2020-01-01 00:00:00', 'end': '2020-01-01 23:00:00'})

print(result)
```



History
=======

1.0.2 (2020-10-29)
------------------

* fix setup problem.

1.0.1 (2020-10-29)
------------------

* Update readme.

1.0.0 (2020-10-29)
------------------

* First release.
warning-parser 1.0.0
Parses compilers' outputs to retrieve warnings
Requires Python: >=3.6

# warnings-parser

Library to transform an output from a compiler to a dict to be easily output it in a json format. \
It supports any compilers using the standard `file_path:line:column: warning: message [category]` format such as:
- gcc
- clang
- clang-tidy
- cppcheck with `--template='{file}:{line}:{column}: warning: {message} [{id}]'`

## Install

```bash
pip install warning-parser
```

## Usage

usage example to generate bitbucket annotations:
```python
from warning_parser import get_warnings

warnings = get_warnings("/path/to/gcc_output.txt", "gcc")
warnings = warnings.union(get_warnings("/path/to/clang_output.txt", "clang"))

json_data = []
for w in warnings:
    
    if warning.get_severity() == "error":
        severity = "HIGH"
    else:
        severity = "MEDIUM"


    json_data.append(
    {
        "message": f"{w.get_tool()}:{w.get_line()}:{w.get_column()}: {w.get_severity()}: {w.get_message()} [{w.get_category()}]",
        "severity": severity,
        "path": w.get_filepath(),
        "line": w.get_line(),
    })

# ... upload annotations ...

```
warnings-parser 0.0.1
Parses compilers' outputs
Requires Python: >=3.6

# warnings-parser

Library to transform an output from a compiler to a dict to be easily output it in a json format. \
It supports any compilers using the standard `file_path:line:column: warning: message [category]` format such as:
- gcc
- clang
- clang-tidy
- cppcheck with `--template='{file}:{line}:{column}: warning: {message} [{id}]'`

## Install

```bash
pip install warnings-parser
```

## Usage

usage example to generate bitbucket annotations:
```python
from warnings_parser import get_warnings

warnings = get_warnings("/path/to/gcc_output.txt", "gcc")
warnings = warnings.union(get_warnings("/path/to/clang_output.txt", "clang"))

json_data = []
for w in warnings:
    
    if warning.get_severity() == "error":
        severity = "HIGH"
    else:
        severity = "MEDIUM"


    json_data.append(
    {
        "message": f"{w.get_tool()}:{w.get_line()}:{w.get_column()}: {w.get_severity()}: {w.get_message()} [{w.get_category()}]",
        "severity": severity,
        "path": w.get_filepath(),
        "line": w.get_line(),
    })

# ... upload annotations ...

```
example-pkg-zumrudu-anka 0.0.3
A small example package
Requires Python: >=3
Keywords: upload-python-package calculator

# python-upload-package-boilerplate
Boilerplate to Upload Python Project as a Python Package

# Requirements

# Installation

# Usage

# References

Change Log
==========

0.0.3 (29/10/2020)
-------------------
- Third Release
step-protocol 0.0.1
Simple Tcp based Event Protocol

# STEP
Simple Tcp based Event Protocol
## Описание
Step это ассинхронная библиотека реализующая простой событийно ориентированный протокол поверх tcp
### Основные фичи
* Асинхронная двусторонняя передача событий по сети
* Использование JSON
### Чего здесь нет
* Шифрования - соединение уязвимо для MITM. Учитывате это
## Применение
Данная библиотека максиамльно проста в использовании и создана для применения в целях тестирования или отладки
### Где стоит использовать
* В тестовых или временных программах
* В отладочных программах 
### Где не стоит использовать
* В продакшн решениях
* В програмах передающих по сети конфиденциальную информацию
## Установка
    $ pip install step-protocol
## Использование
Помимо данной инструкции вы также можете посмотреть папку examples
### Подключение
    from step_protocol import step
    import asyncio
### Создание сервера
    loop = asyncio.get_event_loop()
    manager = step.StepManager(loop)
    manager.listen("127.0.0.1", 8888)
    loop.run_forever()
### Создание клиента
    loop = asyncio.get_event_loop()
    manager = step.StepManager(loop)
    manager.connect("127.0.0.1", 8888)
    loop.run_forever()
### Регистрация обработчика на событие подключения
    def on_connected(connection: step.StepConnection):
        print("connected", connection.ID)
    manager.set_connection_handler(on_connected)
### Регистрация обработчика на событие отключения
    def on_disconnected(connection: step.StepConnection):
        print("disconnected", connection.ID)
    manager.set_disonnection_handler(on_disconnected)
### Регистрация обработчика на входящее событие
    def on_someeventname(connection: step.StepConnection, msgid: int, *args, **kwargs):
        print("someeventname comes from", connection.ID)
    manager.set_handler("someeventname", on_someeventname)
### Отправка события
    connection.send(event="someeventname", someparam1="12345", someparam2=0)
### Отправка события с ожиданием ответа
Может быть вызвано только из корутины

    answer = await connection.call("someeventname", someparam1="12345", someparam2=0))
### Отправка ответа на событие
    def on_someeventname(connection: step.StepConnection, msgid: int, *args, **kwargs):
        connection.answer(msgid, someanswerparam1="123", someanswerparam2=0)
### Закрытие соединения
    connection.close()
jinja2-custom-filters-extension 0.0.2
A package containing custom filters for jinja2
Requires Python: >=3.6

# Jinja2 Custom Filters

Jinja2 offers many [filters](https://jinja.palletsprojects.com/en/2.11.x/templates/#list-of-builtin-filters) to use in your template.
But this is limited.
This repo offers a number of additional filters that can be used in Jinja2 templates.


# How it works


1. The first and foremost is installation.  

        pip install jinja2_custom_filters_extension

2. Add [extension](#Extensions) to your jinja environment.  
        
        from jinja2_custom_filters_extension.string_filters_extension import StringFilterExtension
        environment: Environment = Environment(extensions=[StringFilterExtension])
        
3. Use the filters that are available in the extension as you would use a built in  filter in your jinja templates.  
    for ex:  
    
        {{ "abc DEF" | upper_case_first_letter }}
        
4. Render your template , the filters should be working.

# Extensions

## String Filter Extension

| Filter Name             | Description                                                          | Example Input Value | Generated Output Value |
|-------------------------|----------------------------------------------------------------------|---------------------|------------------------|
| slug                    | Changes the value to lower case and then replaces spaces with dashes | aBc DeF GHi         | abc-def-ghi            |
| upper_case_first_letter | Changes only the first letter of the value to upper case.            | AbC DeF             | abC DeF                |


# Usage with cookiecutter

[cookiecutter](https://cookiecutter.readthedocs.io/en/1.7.2/index.html) is a famous tool for creating projects from project templates.  
Itis built on top of `jinja2`.  
These extensions can also be used in a cookiecutter project. 

1. Make sure the package `jinja2_custom_filters_extension` is installed.
2. Add extensions in the `cookiecutter.json` file of your project.  
   Refer the [link](https://cookiecutter.readthedocs.io/en/1.7.2/advanced/template_extensions.html) on how to do it.
   Bascially it is adding the below entry to the json.
   
       "_extensions": ["jinja2_custom_filters_extension.string_filters_extension.StringFilterExtension"]
3. Use the filters in your templates. 
4. Thats it. When you run your cookiecutter project, it should work.
paddle-gpu-serving 0.8.3
package for paddle serving with bert
Requires Python: >=3.5

# paddle-gpu-serving

paddle-gpu-serving简介是基于Paddle Serving框架的模型预测服务库，通过少量代码即可部署和使用指定的模型进行远程预测。目前支持使用PaddleHub语义理解模型库中的BERT类模型获取文本对应的向量表示。其中serving服务的代码参考[bert模型服务demo server端](../../demo-serving/op/bert_service_op.cpp)。

## 安装

### server端

环境要求：python3，paddlepaddle>=1.6，paddlehub>=1.4

```bash
pip install paddle-gpu-serving
```

### client端

环境要求：ujson，python2或python3

下载[bert_service.py脚本](../client/bert_service/bert_service.py)使用

## 使用

### server端

```python
from paddle_gpu_serving.run import BertServer
bs = BertServer(with_gpu=True)
bs.with_model('bert_chinese_L-12_H-768_A-12')
bs.run(gpu_index = 0, port = 8010)
```



### client端

```python
bc = BertService(
    model_name='bert_chinese_L-12_H-768_A-12',
    max_seq_len=20,
    show_ids=False,
    do_lower_case=True)
bc.add_server('127.0.0.1:8010')
result = bc.encode([["远上寒山石径斜"], ])
print(result[0])
```