semvec/pypi-packages huggingface dataset:
like-a-srt 0.0.4
CLI to generate SRT subtitles automatically from audio files, using Azure Speech
License: MIT
Keywords: azure speech srt subtitles automatic generation

![Build](https://github.com/RobertoPrevato/Like-a-srt/workflows/Build/badge.svg)
[![pypi](https://img.shields.io/pypi/v/like-a-srt.svg)](https://pypi.python.org/pypi/like-a-srt)
[![versions](https://img.shields.io/pypi/pyversions/like-a-srt.svg)](https://github.com/RobertoPrevato/like-a-srt)
[![license](https://img.shields.io/github/license/RobertoPrevato/like-a-srt.svg)](https://github.com/RobertoPrevato/like-a-srt/blob/main/LICENSE)

# Like a SRT
CLI to generate SRT subtitles automatically from audio files, using [Azure Speech](https://azure.microsoft.com/en-us/services/cognitive-services/speech-services/#overview).

```bash
pip install like-a-srt
```

![Drawing](https://gist.githubusercontent.com/RobertoPrevato/b9f5162bfe6082876ec2d9811cc554b0/raw/9317c60cd5913c35a24103ef0cfd9c1e8e28c0e8/like-a-srt-800px.png)

## Getting started

**Requirements**

* Python 3.9
* An Azure Speech service

How to use:
1. configure environmental variables (recommended: create an `.env` file as in
   the example below)
2. install the CLI (e.g. installing the package using `pip`, in a Python virtual environment)
3. generate subtitles in `.srt` format using the command `las gen -s example.wav`

Example `.env` file, to configure the necessary environmental variables:

```ini
SPEECH_SUBSCRIPTION="<YOUR_AZURE_SPEECH_SUBSCRIPTION>"
SPEECH_ENDPOINT="<YOUR_AZURE_SPEECH_ENDPOINT>"
```

Example endpoint value: `https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken`.

---

Example: generate a subtitles file `example.srt` from a source file
`example.wav`:

```bash
las gen -s example.wav
```

---

To create a .wav file from a source video, it's possible to use
[`ffmpeg`](https://www.ffmpeg.org):

```bash
ffmpeg -i source.mp4 destination.wav
```
discord-ext-slash 1.0.0b3
Support slash commands with discord.py.
License: MIT
Requires Python: >=3.7
Keywords: discord slash commands

Support slash commands.

Example Usage
~~~~~~~~~~~~~

.. code-block:: python

    from discord.ext import slash
    client = slash.SlashBot(
        # normal arguments to commands.Bot()
        command_prefix='.', description="whatever",
        # special option: modify all global commands to be
        # actually guild commands for this guild instead,
        # for the purposes of testing. Remove this argument
        # or set it to None to make global commands be
        # properly global - note that they take 1 hour to
        # propagate. Useful because commands have to be
        # re-registered if their API definitions are changed.
        debug_guild=staging_guild_id
    )

    msg_opt = slash.Option(
        # description of option, shown when filling in
        description='Message to send',
        # this means that the slash command will not be invoked
        # if this argument is not specified
        required=True)

    @client.slash_cmd() # global slash command
    async def repeat( # command name
        ctx: slash.Context, # there MUST be one argument annotated with Context
        message: msg_opt
    ):
        """Make the bot repeat what you say""" # description of command
        # respond to the interaction, must be done within 3 seconds
        await ctx.respond(message) # string (or str()able) message

    client.run(token)

Notes
~~~~~

* ``discord.ext.slash.Context`` emulates
  ``discord.ext.commands.Context``, but only to a certain extent.
  Notably, ``ctx.message`` does not exist, because slash commands can be run
  completely without the involvement of messages. However, channel and author
  information is still available.
* On the other hand, ``discord.ext.slash.ComponentContext`` does have a
  ``discord.ext.slash.ComponentContext.message`` attribute
  available to message component callbacks.
* All descriptions are **required**.
* You must grant the bot ``applications.commands`` permissions in the OAuth2
  section of the developer dashboard.

See the `docs <https://discord-ext-slash.rtfd.io>`_ as well as the
`demo bot <https://github.com/Kenny2github/discord-ext-slash/blob/main/demo_bot.py>`_.
pycounts-kari 0.1.2
A tool for counting words.
License: MIT
Requires Python: >=3.9,<4.0

# pycounts

Calculate word counts in a text file!

## Installation

```bash
$ pip install pycounts_kari
```

## Usage

`pycounts_kari` can be used to count words in a text file and plot results
as follows:

```python
from pycounts_kari.pycounts_kari import count_words
from pycounts_kari.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
```

## Contributing

Interested in contributing? Check out the contributing guidelines. 
Please note that this project is released with a Code of Conduct. 
By contributing to this project, you agree to abide by its terms.

## License

`pycounts_kari` was created by Katia Aristova after directly following a tutorial for the UBC DSCI 522 course. It is licensed under the terms
of the MIT license.

## Credits

`pycounts_kari` was created with 
[`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and 
the `py-pkgs-cookiecutter` 
[template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
foxhole-sheets 3.0.1
Foxhole Stockpile Parsing
License: MIT

## Usage

### How-To

Folder structure:
```
project_folder
|   stockpile.png
|___Data
    |   nums.json
    |___Icons
            |   .44 (Crate).png
            |   .44.png
            |   ...
```

```
\project_folder> pip install foxhole-sheets
\project_folder> python -m sheets
```

json will be output into stockpile.json

### Example
**stockpile.png**

![stockpile image](https://github.com/miles-igd/foxhole_sheets/blob/master/stockpile.png "Stockpile")

`python -m sheets`

**stockpile.json**
```json
{
    "12.7mm": "16",
    "120mm": "19",
    "20mm": "113",
    "40mm": "203",
    "68mm": "20",
    "7.62mm": "359",
    "7.92mm": "548",
    "8.5mm": "1",
    "9mm SMG": "118",
    "A.T.R.P.G. Shell": "51",
    "Abisme AT-99": "8",
    "Anti-Tank Sticky Bomb": "20",
    "Argenti r.II Rifle": "126",
    "Bandages": "79",
    "Barbed Wire": "1",
    "Basic Materials": "1k+",
    "Bayonet": "57",
    "Binoculars": "8",
    "Blood Plasma": "76",
    "Bomastone Grenade": "88",
    "Bunker Supplies": "500",
    "Colonial Engineer Uniform": "35",
    "Colonial Grenade Uniform": "20",
    "Colonial Medic Uniform": "160",
    "Colonial Rain Uniform": "39",
    "Colonial Recon Uniform": "53",
    "Colonial Snow Uniform": "174",
    "Colonial Soldier Uniform": "323",
    "Cometa T2-9": "7",
    "Cutler Launcher 4": "1",
    "Daucus isg.III": "13",
    "Diesel": "5",
    "First Aid Kit": "58",
    "Garrison Supplies": "1k+",
    "Gas Mask": "54",
    "Gas Mask Filter": "94",
    "Green Ash Grenade": "67",
    "KRN886-127 Gast Machine Gun": "10",
    "KRR3-792 Auger": "8",
    "Lionclaw mc.VIII": "98",
    "Mammon 91-b": "81",
    "Mortar Shell (Flare)": "75",
    "Mortar Shell (HE)": "45",
    "Mortar Shell (Shrapnel)": "75",
    "Radio": "36",
    "Radio Backpack": "8",
    "Refined Materials": "11",
    "Shovel": "50",
    "Sledgehammer": "19",
    "Soldier Supplies": "118",
    "Trauma Kit": "14",
    "Volta r.I Repeater": "22",
    "Wreckage": "7",
    "Wrench": "18"
}
```
pkg-lomo 0.2.1
pkg lib form lomo.space
License: MIT
Requires Python: >3.6.0
Keywords: pkg lomo lib


# Example Package

This is a simple example package by Lomo.

# Content

```shell
/Users/lomo/Documents/codes/py_package/pkg_lomo
├── LICENSE
├── README.rst
├── pkg
└── setup.py
```

# Change Log

1、First submit, at 2021.11.20

2、add more func lib

3、add some decorator function tools(2021.12.04)

4、add one function + test
workon-cli 0.0.5
A simple project manager
License: MIT

# WORK ON
A simple project manager for conda, windows 10 and vscode

## Installation

```bash
pip install workon-cli
```
You must have anaconda3 on your path and vscode

```bash
function Workon (){
    python -m workon $args
}
```
Add this function to $PROFILE file using powershell

## Usage

```bash
python workon --help
python workon show
python workon workon PROJECT
python workon create PROJECT -d PATH -p PYTHON
python workon remove PROJECT
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## Developer
* Jesus Alan Hernandez Galvan

## License
[MIT](https://choosealicense.com/licenses/mit/)