semvec/pypi-packages huggingface dataset:
testopwatch 0.1.0
Package for timing your tests.
License: MIT
Requires Python: >=3.7

# testopwatch
Check how long each test takes and what test file is the slowest
```shell
❯ python manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
time_exec: 0.2517799s test_name: test_create_account (account.tests.test_account.AccountTests) OK
time_exec: 0.1164200s test_name: test_login (account.tests.test_account.AccountTests) OK
time_exec: 0.1113484s test_name: test_ping (account.tests.test_account.AccountTests) OK
time_exec: 0.0778311s test_name: test_activate (account.tests.test_account.AccountTests) OK
time_exec: 0.2358941s test_name: test_email_user (account.tests.test_account.AccountTests) OK
...
----------- Total test class times -----------
TestClass (account.tests.test_account.AccountTests) finished in 1.24016s
...
```

## Instructions:
1. Install
    ```shell
    ❯ pip install testopwatch
    ```

2. in your settings.py add the following
    ```python    
    TIME_RUNNER = "testopwatch.DjangoTimeRunner"
    ```
3. run your test with the built-in manager 
   ```shell
   ❯ python manage.py test --failfast --parallel
   ```
pypi-learn 0.0.7
Generates a dataset for the Turkish speech recognition.
License: MIT
Keywords: dataset,speech recognition,srt,youtube srt

# pypi_learn

[![Build Status](https://travis-ci.org/danielcliu/youtube-channel-transcript-api.svg?branch=master)](https://travis-ci.com/github/taalaialmasova/pypi_learn)
[![MIT license](http://img.shields.io/badge/license-Apache-brightgreen.svg?style=flat)](https://opensource.org/licenses/Apache-2.0) 
[![Python](https://img.shields.io/pypi/pyversions/pypi_learn.svg?style=plastic)](https://badge.fury.io/py/pypi_learn)
[![PyPI](https://badge.fury.io/py/pypi_learn.svg)](https://badge.fury.io/py/pypi-learn)

pypi_learn has been developed to generate the Turkish speech recognition dataset. As parameters, it takes a txt file consisting of the links of these Youtube videos and a folder name to store the files to be created. For each youtube video URL, it downloads the audio file,  extracts subtitles as the [SRT format](https://en.wikipedia.org/wiki/SubRip), and saves as two new files to the disk. Then it cropped (using [FFMPEG](https://www.ffmpeg.org)) the audio file according to the start and end time of each subtitle and creates a new audio file, and at the same time saves the current subtitle as a new txt file. 


### Installation

1. Install [ffmpeg](https://www.ffmpeg.org/).(it is re)
2. Run `$ pip install pypi_learn`.

### Usage 

#### 1- From the terminal
```$ pypi_learn -h
pypi_learn [-h] [-sv SAVE_PATH] -ufp URL_FILE_PATH

To convert the Youtube URL to mp3 and srt file.

optional arguments:
  -h, --help            show this help message and exit
  -sv SAVE_PATH, --save_path SAVE_PATH
                        Path to save converted files (default: downloads_convert)
  -ufp URL_FILE_PATH, --url_file_path URL_FILE_PATH
                        A file which contains youtube URLs
```

##### Example
 Run on terminal :```pypi_learn -ufp urls.txt```

#### 2- Using it by importing as a package like the one below. 

``` 
from pypi_learn.youtube_srt_mp3 import YoutubeSrtMp3

YoutubeSrtMp3(urls_file_path="urls.txt", save_dir="save_path").convert()
```

### The content of the file containing the URLs should be as follows.

```
https://www.youtube.com/watch?v=ENwtC8LgPcw
https://www.youtube.com/watch?v=ENwtC8LgPcw
...
````

## License

[Apache License 2.0](LICENSE)
ServerCL 0a0
Create a simple yet effective server with and connect to it with a simple client!
License: MIT

## ServerCL

ServerCL is a library I had originally wanted to make so that I could use it only for my Sixth Form computing project to add local multiplayer to the game however realised that it would be just a little bit extra to make it more modifiable so that it could be used by a multitude of things.

Using ServerCL, you can register events, sending and receiving information both server and client side with completely customisable effects and minimal effort. 

To get started hosting a server is as simple as

```py
import ServerCL

my_server = ServerCL.Server(ServerCL.MACHINE_IP, ServerCL.GET_OPEN_PORT())

my_server.start()
```

This can then of course be customised using registering events to make something like an easy program that allows you to send and receive text information!

#### For more information including tutorials and documentation, visit the wiki @ [Github](https://github.com/shauncameron/server-server_client/wiki)
json-parser 1.2.0
A JSON parser written in Python.
License: MIT
Requires Python: >=3.6

# json_parser

An _efficient_ JSON parser written in Python.

## Installation

Install it via pip:

```bash
pip install json-parser
```

## Usage

```python
import json_parser

data = json_parser.parse('{"value": 42}')
print(data['value']) # 42
```

## Benchmarks

Running it on [this 25MB JSON file][1] gave the following results:

```pycon
>>> with open('large-file.json') as f:
...   t = time.time()
...   x = json.load(f)
...   t = time.time() - t
...   print(t, 'seconds')
...
0.6405608654022217 seconds
>>> with open('large-file.json') as f:
...   t = time.time()
...   y = json_parser.parse(f.read())
...   t = time.time() - t
...   print(t, 'seconds')
...
22.286625385284424 seconds
>>> x == y
True
```

So, it's about 34x slower than the builtin `json`.
Which, is par for the course when it comes to pure python.

## Testing

Clone the app and run the following:

```bash
pip install -e '.[dev]'
pytest
```

[1]: https://raw.githubusercontent.com/json-iterator/test-data/master/large-file.json
spoqa-requests-backoff 0.1.1
Backoff Session for requests
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*

# spoqa-requests-backoff

[![MIT License](https://badgen.net/badge/license/MIT/cyan)](LICENSE)
[![PyPI](https://badgen.net/pypi/v/spoqa-requests-backoff)](https://pypi.org/project/spoqa-requests-backoff/)

Backoff session for requests

## Usage

```python
resp = BackoffSession().get('https://...')
```

By default, `BackoffSession` tries before giving up until any following condition is met:

- Tries 10 times
- Reaches 20 seconds
- Meets `requests.RequestException`
- Meets HTTP client error (4xx)

Behaviors above can be customized with parameters.

```python
BackoffSession(
    exception=(RequestException, ValueError),  # Give up when ValueError occurs, too.
    max_tries=100,  # Tries 100 times before giving up
    max_time=300,  # Wait until maximum 300 seconds before giving up
    giveup=lambda e: e.response.text == 'You're fired!'  # Give up when specific response is met
)
```

BackoffSession heavily depends on [`backoff`](https://github.com/litl/backoff) package.

## License

_spoqa-requests-backoff_ is distributed under the terms of MIT License.

See [LICENSE](LICENSE) for more details.
MatrixImageR 1.2.7
My short description for my project.
License: MIT
Requires Python: >=3.6.0

📦 setup.py (for humans)
=======================

This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices for `setup.py`, as well as some
commented–out nice–to–haves.

For example, this `setup.py` provides a `$ python setup.py upload`
command, which creates a *universal wheel* (and *sdist*) and uploads
your package to [PyPi] using [Twine], without the need for an annoying
`setup.cfg` file. It also creates/uploads a new git tag, automatically.

In short, `setup.py` files can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)

[Check out the example!][an example setup.py]

Installation
-----

```bash
cd your_project

# Download the setup.py file:
#  download with wget
wget https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py -O setup.py

#  download with curl
curl -O https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py
```

To Do
-----

-   Tests via `$ setup.py test` (if it's concise).

Pull requests are encouraged!

More Resources
--------------

-   [What is setup.py?] on Stack Overflow
-   [Official Python Packaging User Guide](https://packaging.python.org)
-   [The Hitchhiker's Guide to Packaging]
-   [Cookiecutter template for a Python package]

License
-------

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.

  [an example setup.py]: https://github.com/navdeep-G/setup.py/blob/master/setup.py
  [PyPi]: https://docs.python.org/3/distutils/packageindex.html
  [Twine]: https://pypi.python.org/pypi/twine
  [image]: https://farm1.staticflickr.com/628/33173824932_58add34581_k_d.jpg
  [What is setup.py?]: https://stackoverflow.com/questions/1471994/what-is-setup-py
  [The Hitchhiker's Guide to Packaging]: https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/creation.html
  [Cookiecutter template for a Python package]: https://github.com/audreyr/cookiecutter-pypackage