semvec/pypi-packages huggingface dataset:
web-anno-tsv 0.0.1
Read and an write web anno tsv
Requires Python: >=3.7

# Inception Webanno tsv

Read and write webanno tsv 3.2 files 

## Install
```python
 pip install git+https://github.com/Pangeamt/web_anno_tsv
```

## Read a webanno tsv file
```python
from web_anno_tsv import open_web_anno_tsv

tsv1 = 'test.tsv'

with open_web_anno_tsv(tsv1) as f:
    for i, sentence in enumerate(f):
        print(f"Sentence {i}:", sentence.text)
        for j, annotation in enumerate(sentence.annotations):
            print(f'\tAnnotation {j}:')
            print('\t\tText:', annotation.text)
            print("\t\tLabel:", annotation.label)
            print("\t\tOffsets", f"{annotation.start}, {annotation.stop}")
```

## Write a webanno tsv file
```python
from web_anno_tsv import open_web_anno_tsv

tsv1 = 'test.tsv'
tsv2 = 'test_write.tsv'

with open_web_anno_tsv(tsv1) as f1:
    with open_web_anno_tsv(tsv2, 'w') as f2:
        for sentence in f1:
            f2.write(sentence)

```
cuss-inspect 1.0.2b0
A basic and simple yet powerful Python library to detect toxicity/profanity of a review or list of reveiws.
Requires Python: >=3.6

# cuss_inspect

## How It Works

`cuss_inspect` is a logistic regression based model trained on 180K+ reviews and tested on 24K+ reviews.

### Performance


|  | 1 Prediction (ms) | 10 Predictions (ms) | 100 Predictions (ms) | 1000 Predictions (ms) | 10000 Predictions (ms)
| --------|-------------------|---------------------|-----------------------| -----------------------|-----------------------
| cuss_inspect | 0.2 | 0.3 | 0.8 | 4.3 | 24.7




### Accuracy



| | Precision | Recall | F1 Score
| --- | ------- | ------------- | ----------------------
0 | 0.84 | 0.94 | 0.89
1 | 0.99 | 0.96 | 0.98
Accuracy | | | 0.96
macro avg | 0.91 | 0.95 | 0.93
weighted avg | 0.96 | 0.96 | 0.96


### Receiver Operating Characteristics
![ROC Curve](https://github.com/LMSharma/cuss_inspect/blob/main/ROC_Curve.jpeg)

## Installation

```
$ pip install cuss_inspect
```

## Usage

```python
from cuss_inspect import predict, predict_prob

# for simple string
text_0 = "this is simple review. you have done a good job"
print(predict(text_0))
# [0]
print(predict_prob(text_0)
# [0.05]

text_1 = "son of a bitch"
print(predict(text_1))
# [1]
print(predict_prob(text_1)
# [1.]

# for list of inputs
test = ['who are you?' , 'what do you want?' , 'son of a dog' , 'how the hell can you say that' , 'fuck it']
print(predict(test))
# [0 0 1 1 1]
print(predict_prob(test))
# [0.12 0.22 0.55 0.96 1.]

```

*`predict()` and `predict_prob` return [`numpy`](https://pypi.org/project/numpy/) arrays.
psconfig-client 0.1.7
psconfig/PWA configuration parser
Requires Python: >=2.7

psconfig-client is a python library to parse perfSONAR psconfig/PWA mesh configuration files 

```
Synopsis:
import psconfig.api
import logging
import sys

log = logging.getLogger()

if __name__ == '__main__':
    log.setLevel(logging.DEBUG)
    formatter = logging.Formatter(fmt='%(message)s')
    fh = logging.StreamHandler(stream=sys.stdout)
    fh.setFormatter(formatter)
    log.addHandler(fh)

    # url supports host auto-url, particular mesh or top level mesh directory
    # for https you can pass hostcert/key and verify flag, which are all passed to the requests library call
    x = psconfig.api.PSC('url', hostcert=None, hostkey=None, verify=False)
    # get all hosts from all groups
    print(x.get_all_hosts())
    # get all hosts from the group X
    print(x.get_hosts_by_group('X'))
    # get all hosts from the groups X, Y, Z
    print(x.get_hosts_by_group('X', 'Y', 'Z'))
    # get all hosts from all groups except A
    print(x.get_hosts_by_group(exclude='A'))

    # get test types (trace, throughput, latency, etc.) per host
    for h in x.get_hosts_by_group():
        print(h, x.get_test_types(h))
    
    # get site name of a host
    print(x.get_site('<hostname>')

    # get all hosts from the mesh configs X, Y, Z and not Q
    print(x.get_hosts_by_config('X', 'Y', 'Z', exclude='Q'))
    
    # get full map of mesh -> hosts
    print(x.get_config_host_map())

```
salvo 0.2
Simple HTTP Load tester

Apache Bench replacement=====
Salvo
=====

.. image:: http://coveralls.io/repos/github/tarekziade/salvo/badge.svg?branch=master
   :target: https://coveralls.io/github/tarekziade/salvo?branch=master

.. image:: http://travis-ci.org/tarekziade/salvo.svg?branch=master
   :target: https://travis-ci.org/tarekziade/salvo



This is the replacement for https://github.com/tarekziade/boom

**Salvo** is a simple command line tool to send some load to an HTTP(S)
endpoint.

Salvo is a script you can use to quickly smoke-test your
web app deployment. If you need a more complex tool,
I'd suggest looking at `Molotov <http://molotov.readthedocs.io>`_

Salvo was specifically written to replace my Apache Bench (ab) usage.
Salvo is based on Molotov, which uses Python 3 asyncio & aiohttp.


Installation
============

Salvo requires Python 3.6+ and **Molotov**, which gets installed as a
dependency.

Just do::

    $ pip install salvo


Basic usage
===========

Basic usage example: 100 queries with a maximum concurrency of 10 users::

    % salvo http://localhost:80 -c 10 -n 100
    -------- Server info --------

    Server Software: nginx/1.18.0
    Host: localhost

    -------- Running 100 queries - concurrency 10 --------

    [================================================================>.] 99%

    -------- Results --------

    Successful calls    		1000
    Total time          		16.0587 s
    Average             		0.0161 s
    Fastest             		0.0036 s
    Slowest             		0.2524 s
    Amplitude           		0.2488 s
    Standard deviation  		0.011326
    Requests Per Second 		62.27
    Requests Per Minute 		3736.29

    -------- Status codes --------
    Code 200          		1000 times.


You can also use `--duration` if you want to run for a given amount of time.

For a full list of features, run `salvo --help`


Contribute
==========

Salvo is very simple and anyone familiar with Python can contribute.

If you are interested in this project, you are welcome to join the fun at
https://github.com/tarekziade/salvo

Make sure to add yourself to the contributors list if your PR gets merged. And
make sure it's in alphabetical order!


Release History
===============

0.2 - 2020-12-02
----------------

- Massive cleanup
- Works with the latest Molotov and aiohttp
- Improved test coverage


0.1 - 2020-11-18
----------------

- Initial working release


Owner and creator
=================

- Tarek Ziade <tarek@ziade.org>

Contributors
============

- You ? :)
py-mathtest 0.1.1.dev2
A tool that can randomly generates simple add and subtract questions.
Requires Python: >=3.4
Keywords: maths question python

Help on module simple_maths_questions:

NAME
    simple_maths_questions - # --coding: utf-8 --

FUNCTIONS
    format_a_number(num)
        格式化数字的显示方式，如果是负数，在数字的两边加上()
    
    gen_one_question(min_number, max_number, num_of_numbers)
        生成一道题目
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :return: 结果list
    
    gen_one_question_not_negative(min_number, max_number, num_of_numbers)
        生成一道非负结果的测试题目
        
        保证算式中的数字和计算结果都不为负数。
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :return: 结果list
    
    gen_operation_symbol()
        随机生成运算符号
        
        随机生成'+'或'-'，用于构建题目中的算式。
        
        :return: str: 生成的运算符号
    
    gen_question_with_answers(min_number, max_number, num_of_numbers, the_quantity, negative_flag)
        生成包含答案的指定数量的题目
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :param the_quantity: int型，生成的测试题目数量
        :param negative_flag: 题目中是否允许出现负数的标志
        :return: 生成包含答案的题目dict，key：题目， value：答案
    
    gen_questions(min_number, max_number, num_of_numbers, the_quantity, negative_flag)
        生成指定数量的题目
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :param the_quantity: int型，生成的测试题目数量
        :param negative_flag: 题目中是否允许出现负数的标志
        :return: 生成的题目list
    
    main(min_number, max_number, num_of_numbers, the_quantity, negative_flag, display_answer)
    
    trim_parameters(first_num, second_num, num_of_nums, the_quantity, negative, bottom_limit, top_limit, number_limit)
        对用来生成算式的参数进行剪裁
        
        使得各参数合法，并且不会造成过大计算负载。
        
        :param first_num: int型，算式中允许出现的最小或最大数字
        :param second_num: int型，算式中允许出现的最小或最大数字
        :param num_of_nums: int型，组成算式的数字数量
        :param the_quantity: int型，生成的题目数量，最小值为1，最大值为常量MAX_QUANTITY所规定数值
        :param negative: 是否允许出现负数的标志
        :param bottom_limit: int型，算式中允许出现的最小数字的下限，最小不能小于常量MIN_NUMBER_LIMIT所规定数值
        :param top_limit: int型，算式中允许出现的最大数字的上限，最大不能大于常量MAX_NUMBER_LIMIT所规定数值
        :param number_limit: int型，组成算式的数字数量上限，最大不能大于常量MAX_NUMBER_OF_NUMBERS所规定数值
        :return: tuple，经过剪裁后合法的参数：最小数字，最大数字，组成算式的数字数量，题目数量

DATA
    MAX_NUMBER_LIMIT = 100000
    MAX_NUMBER_OF_NUMBERS = 5
    MAX_QUANTITY = 200
    MIN_NUMBER_LIMIT = -100000