semvec/pypi-packages huggingface dataset:
parsrt 1.2
A minimalistic (100LOC) library to read SRT files into a workable format.
License: MIT
Keywords: SRT,TINY,MINIMALISTIC,FAST

Module parsrt
=============
A minimalistic (100LOC) library to read SRT files into a workable format.

Simply provides a way to convert SRT strings into Sub objects (via the parse 
functions) and vice versa (via the Sub class' __str__ function).
By avoiding regex it gets speeds around 50% faster than the fastest python 
SRT/Subtitle library I could find (cdown/srt).
Install via: pip install parsrt

Functions
---------

    
`parse_file(path, encoding='ascii')`
:   Reads a file and converts the contents into an Sub object array.
    
    Args:
        path: The path the SRT file is located at.
        encoding: The encodding of the file (same as with open()).
    
    Returns:
        An Sub object array.

    
`parse_str(srt)`
:   Converts a string into an Sub object array.
    
    Args:
        srt: A valid SRT string.
    
    Returns:
        An Sub object array.
    
    Raises:
        ValueError: Invalid SRT string.

Classes
-------

`Sub(index, time, text)`
:   Subtitle info object.
    
    Attributes:
        index: An SRT index value.
        time: A tuple containing the start and end timestamps as timedelta objects.
        text: A string value containing the subtitle's text.
quicklearning 0.0.39
Create Tensorflow models and train them fast and easy
License: MIT
Requires Python: >=3.6


 ## quicklearning

## Instalation

To install run the following:

```python
pip install quicklearning
```

## automodel usage

First import
```python
from quicklearning.classification.image import quick
```

then run something like
```python
model = quick.fit(10, ['cat', 'dog'], verbose=True)
```

This will create a dataset of images from the image search results from [DuckDuckGo](https://duckduckgo.com), then create a new model based on a pretained model and lastly it will do the actual training of the model.
mdprint 0.2.0
Python tools to print strings to markdown file with styles. Also allows printing dicts and lists to table
License: MIT

# mdprint

Python tools to print strings to markdown file with styles. Also allows printing dicts and lists to table

## Installation

```
pip install mdprint
```
## Quick Start

### Basics

```
mdprint('Markdown styles', heading=3)
mdprint('It is convenient to use mdprint just like print.\n')
mdprint('You can make text ', end='')
mdprint('bold', bold=True, end=', ')
mdprint('italics', italics=True, end=', ')
mdprint('or even ', end='')
mdprint('strikethrough', strikethrough=True)
mdprint('\nYou can also write ', end='')
mdprint('code', code=True)
mdprint('from mdprint import mdprint', code_block=True)
```

### Markdown styles
It is convenient to use mdprint just like print.

You can make text **bold**, _italics_, or even ~~strikethrough~~

You can also write `code`

```
from mdprint import mdprint
```

### Writing to file

mdprint takes `file` argument similar to `print`

```
with open('README.md', 'w') as f:
    mdprint('Hello', heading=2, file=f)
```

### Dict
```
from mdprint import mdprint_dict
mydict = {'dogs': ['goldie', 'labrador', 'bulldog'], 'cats': ['polydactyl', 'snowshoe', 'calico'], 'fish': ['cod', 'herring', 'mackerel']}
```

```
mdprint_dict(mydict)
```

| dogs | cats | fish |
|----|----|----|
| goldie | polydactyl | cod |
| labrador | snowshoe | herring |
| bulldog | calico | mackerel |

### List

```
from mdprint import mdprint_list
mylist = [['goldie', 'labrador', 'bulldog'], [4, 5, 6], [7, 8, 9], [10, 11, 12]]
```

```
mdprint_list(mylist)
```

| goldie | labrador | bulldog |
|----|----|----|
| 4 | 5 | 6 |
| 7 | 8 | 9 |
| 10 | 11 | 12 |

### Advanced

You can sort, invert and combine commands

```
mdprint_list([['animal type', 'variety 1', 'variety 2', 'variety 3']], end='')
mdprint_dict(b, keys_as_headers=False, sort_keys=True, start='')
```

| animal type | variety 1 | variety 2 | variety 3 |
|----|----|----|----|
| *cats* | polydactyl | snowshoe | calico |
| *dogs* | goldie | labrador | bulldog |
| *fish* | cod | herring | mackerel |


## Contributing

Pull requests are very welcome.

1. Fork the repo
1. Create new branch with feature name as branch name
1. Check if things work with a jupyter notebook
1. Raise a pull request

## Licence

Please see attached [Licence](LICENCE)