semvec/pypi-packages huggingface dataset:
pmnlp 0.2.0
pattern match for nlp
License: MIT

简单的 任务式 自然语言理解 工具
===============================

说明
----

支持中文语句的模版匹配。可以理解为，简单版本的百度unit或者科大讯飞的AIUI

对于，简单语句的自然语言理解也是很方便的。欢迎大家试用。

对于不喜欢调用API，喜欢在自己代码中嵌入的人是蛮好用的。

用例
----

::

    ```
    from pmnlp.word import build_sentence_word_dict
    from pmnlp.sentence import SentenceTplTrie

    # 初始化，用于记录用户配置的词槽，以及语句的模版匹配。
    user_word_dict = {'num': ['一杯', '两杯'], 'coffee': [
        '拿铁', '拿铁咖啡'], 'common': [], 'phone': ['re\d+']}
    sentent_intent_tpl = {
        'coffee': '[common:0-4][num][common:0-10][coffee]'
    }

    # 建立模型
    sentence_word_dict = build_sentence_word_dict(word_dict=user_word_dict)
    test_tree = SentenceTplTrie(word_dict=sentence_word_dict)
    test_tree.build(sentence_tpl_dict=sentent_intent_tpl, common_key='common')


    # 理解用户输入
    _, intent, result = test_tree.sep('我要一杯热啊啊啊啊啊啊拿铁咖啡',common_key='common')
    if isinstance(intent, str):
        print(intent, result)
    else:
        print(intent, result)
    ```
sql2statsd 0.0.1
CLI utility that queries SQL database and posts results to StatsD.
License: MIT

# sql2statsd

`sql2statsd` is a CLI utility that queries SQL database and posts results to
[StatsD](https://github.com/etsy/statsd)
based on a provided YAML config file and a job name.


## Installation

`virtualenv` recommended.

- From Github:
    ```
    pip install -e git+https://github.com/Suenweek/sql2statsd#egg=sql2statsd
    ```


## Usage
`sql2statsd` is intended to be run as a scheduled task (e.g. a `cron` job).

1. Create a YAML config file based on a config schema provided below.
2. Run `sql2statsd --config-file <CONFIG_FILE> <JOB_NAME>` where:
    - `<CONFIG_FILE>` is a path to your config.
    - `<JOB_NAME>` is a key in a `config["jobs"]` section.

Passing config file path as a parameter each time is tedious, so you may want
to specify `SQL2STATSD_CONFIG_FILE` env var instead.


## Config schema

```yaml
db_servers:
    <str>:  # Database server name
        host: <str>
        port: <int>
        user: <str>
        password: <str>

stats_servers:
    <str>:  # Stats server name
        host: <str>
        port: <int>

jobs:
    <str>:  # Job name
        db_server: <str>  # Database server name
        db_name: <str>
        stats_server: <str>  # Stats server name
        stat: <str>
        query: <str>
```
suds_requests 0.4.0
A suds transport implemented with requests
License: MIT

suds_requests
=============

suds_requests is a suds transport implemented with requests. This lets you use
all of the goodness of requests (connection pooling, simple auth, etc.) along
with the pain of soap.


Examples
========

Simple::

    import suds.client
    import suds_requests

    c = suds.client.Client(
        'http://wsdl_url',
        transport=suds_requests.RequestsTransport()
    )


Adding basic auth::

    import requests
    import suds.client
    import suds_requests

    session = requests.Session()
    session.auth=('user', 'password')

    c = suds.client.Client(
        'http://wsdl_url',
        transport=suds_requests.RequestsTransport(session)
    )

Changing the connection pool size::

    import requests
    import requests.adapters
    import suds.client
    import suds_requests

    session = requests.Session()
    adapter = requests.adapters.HTTPAdapter(
        pool_connections=1000,
        pool_maxsize=1000,
    )
    session.mount('http://', adapter)
    session.mount('https://', adapter)

    c = suds.client.Client(
        'http://wsdl_url',
        transport=suds_requests.RequestsTransport(session)
    )