semvec/pypi-packages huggingface dataset:
get-all-slack-emojis 1.0.0
Get all custom emojis in your workspace
License: MIT
Requires Python: ~=3.8
Keywords: slack,custom,emojis,api

Installation
------------

1. Get Slack API Token

2. Add an OAuth scope **emoji:read**

3. Install your App to target workspace

4. Install this package:

.. code:: zsh

   pip install get-all-slack-emojis

Usage
-----

1. Access `here <https://api.slack.com/apps>`__

2. [Your Apps] -> Select App -> [OAuth & Permissions]

3. Get your OAuth Token

4. In Terminal, Run this:

.. code:: zsh:zsh

   python all_slack_emojis [-h] [-o OUTPUT] token

5. **Get them all!**

Reference
---------

I created this package because the following repo does not work, maybe
due to some specification changes of Slack API.

jkloo / slack-emojis https://github.com/jkloo/slack-emojis

Author
------

👤 **Kohei Ohno**

-  Twitter: `@koheiohno3 <https://twitter.com/koheiohno3>`__
-  Github: `@discus0434 <https://github.com/discus0434>`__
-  Wantedly: `@kohei__ohno <https://www.wantedly.com/id/kohei__ohno>`__
-  LinkedIn: `@kohei\__ohno <https://linkedin.com/in/kohei--ohno>`__

Show your support
-----------------

Give a ⭐️ if this project helped you!

--------------

**This README was generated with ❤️
by readme-md-generator <https://github.com/kefranabg/readme-md-generator>**
pytest-typhoon-config 1.0.0
A Typhoon HIL plugin that facilitates test parameter configuration at runtime
License: MIT
Requires Python: >=3.6

# pytest-typhoon-config
A pytest plugin that facilitates test parameter configuration at runtime

## Features

* specify test parameters in a python module, just like any other
* choose which module to use at runtime

This way you can define different parameter sets for the same test suite and
choose them at runtime.

## Requirements

* pytest 6+

## Installation

You can install `pytest-typhoon-config` via `pip`:

```
pip install pytest-typhoon-config
```

## Usage

Create a test parameter definition file as a Python module, such as this:

```
# myparams.py
import numpy as np

a_list = [277.0, 278.0]
a_numpy_range = np.arange(58, 63, 0.2)
even_values = [v for v in range(20) if v % 2 == 0]

class StayConnected:
    some_list = [22, 45, 85, 95]
    some_param = 0.95
```

All module attributes will be injected at runtime in
`tytest.config.runtime_settings.Config` class. They will be available as
class-level attributes of `Config`. That means you can use them
like this:

```
from tytest.runtime_settings import Config as C

@python.mark.parametrize('param1', C.even_values)
def test_something(param1):
    pass
```

In this example `even_values` variable will be initialized in `myparams.py`
module, and then injected into `Config` class. It is available in all test
code as `Config.even_values`.

This way you can create different python modules with the same variables,
having different values, and then choose which module to use when invoking
pytest. For example:

```
pytest --runconfig=myparams.py
```

The path of this file is evaluated at runtime.

## Contributions

Contributions are very welcome. Tests can be run with `tox`, please ensure
the coverage at least stays the same before you submit a pull request.

## License

Distributed under the terms of the MIT license, `pytest-typhoon-config` is
free and open source software.
player-on-court 0.2.1
attr: player_on_court.__doc__
License: MIT
Requires Python: >=3.8
Keywords: nba,play-by-play

|License| |Contact|

Adding data about players on court in NBA games.
================================================

**player_on_court** package allows you to add to  play-by-play data information
about players who were on court at any given time.

**Important: This package does not request play-by-play data from NBA website.
You need to get them in advance, for example, using nba_api package.**

https://github.com/swar/nba_api

How it work
-----------

Play-by-play NBA data contains information about each event in the game
(throw, substitution, foul, etc.) and players who participated in it
(PLAYER1_ID, PLAYER2_ID, PLAYER3_ID).

From this data, we get a list of players who were on court in this
quarter. Then, we need to filter this list to 10 people who started
quarter. This is done by analyzing substitutions in quarter.

I will soon describe a more complete mechanism for processing
play-by-play data to obtain information about players on court in an
article.

In package two main functions: **adding_player_on_court** and **replace_id_on_name**.

**adding_player_on_court** takes play-by-play data as input and returns it with 10
columns of the PLAYER_ID of players who were on court at each time.

**replace_on_id_name** allows you to replace PLAYER_ID with first and last name of player.
This allows user to understand exactly which players were on court (few know PLAYER_ID
all players in NBA),but it is not necessary to do this before calculations, because the
player's NAME_SURNAME is not unique, unlike PLAYER_ID.

Code example
------------
.. code:: python

    >>> from nba_api.stats.endpoints import playbyplayv2
    >>> import player_on_court.player_on_court as poc
    >>>
    >>> pbp = playbyplayv2.PlayByPlayV2(game_id="0022100001").play_by_play.get_data_frame()
    >>> pbp_with_players = poc.adding_player_on_court(pbp)
    >>> len(pbp_with_players.columns) - len(pbp.columns)
    10
    >>> players_id = list(pbp_with_players.iloc[0, 34:].reset_index(drop=True))
    >>> print(players_id)
    [201142, 1629651, 201933, 201935, 203925, 201572, 201950, 1628960, 203114, 203507]
    >>> players_name = poc.replace_id_on_name(players_id)
    >>> print(players_name)
    ['Kevin Durant', 'Nic Claxton', 'Blake Griffin', 'James Harden', 'Joe Harris',
    'Brook Lopez', 'Jrue Holiday', 'Grayson Allen', 'Khris Middleton', 'Giannis Antetokounmpo']

You can also replace the PLAYER_ID with the player's name in the entire data frame at once.

.. code:: python

    >>> cols = ["PLAYER1", "PLAYER2", "PLAYER3", "PLAYER4", "PLAYER5", "PLAYER6", "PLAYER7", "PLAYER8", "PLAYER9", "PLAYER10"]
    >>> pbp_with_players.loc[:, cols] = pbp_with_players.loc[:, cols].apply(poc.replace_id_on_name, result_type="expand")


.. |License| image:: https://img.shields.io/badge/License-MIT-yellow.svg
    :target:  https://opensource.org/licenses/MIT
.. |Contact| image:: https://img.shields.io/badge/telegram-write%20me-blue.svg
    :target:  https://t.me/nbaatlantic
pyhifiberry 0.1.1
Python library to interface with Hifiberry OS API.
License: MIT
Requires Python: >=3.7,<4.0

# pyhifiberry
Python library to interface with Hifiberry OS API (audiocontrol2). There are two APIs available:
* [REST](https://github.com/hifiberry/audiocontrol2/blob/master/doc/api.md)
* [socketio](https://github.com/hifiberry/audiocontrol2/blob/master/doc/socketio_api.md)

This package is targeting mainly the needs for a [hifiberry integration for Home assistant](https://github.com/willholdoway/hifiberry).

## Usage example of the socketio API
Runs for 100 secs and prints artist name if metadata events occure.
``` python
import asyncio
from pyhifiberry.audiocontrol2sio import Audiocontrol2SIO

def metadata_callback(metadata):
    print(metadata['artist'])

async def main():
    api = await Audiocontrol2SIO.connect(<HIFIBERRY_IP>, <HIFIBERRY_PORT>)
    api.metadata.add_callback(metadata_callback)
    await asyncio.sleep(100)

if __name__ == '__main__':
    asyncio.run(main())
```