semvec/pypi-packages huggingface dataset:
ansi-styles 0.2.2
ANSI escape codes for styling strings in the terminal
License: MIT
Requires Python: >=3.6,<4.0

# ansi-styles

> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal

A port of the Node.js package [`ansi-styles`](https://github.com/chalk/ansi-styles) to Python.

## Install

```
python3 -m pip install -U ansi-styles
```

## Usage

```py
from ansi_styles import ansiStyles as styles

print(f'{styles.green.open}Hello world!{styles.green.close}')

# Color conversion between 256/truecolor
# NOTE: When converting from truecolor to 256 colors, the original color
#       may be degraded to fit the new color palette. This means terminals
#       that do not support 16 million colors will best-match the
#       original color.
print(f'{styles.color.ansi(styles.rgbToAnsi(199, 20, 250))}Hello World{styles.color.close}')
print(f'{styles.color.ansi256(styles.rgbToAnsi256(199, 20, 250))}Hello World{styles.color.close}')
print(f'{styles.color.ansi16m(*styles.hexToRgb("#abcdef"))}Hello World{styles.color.close}')
```

## License

MIT

## Contact

A library by [Shawn Presser](https://www.shawwn.com). If you found it useful, please consider [joining my patreon](https://www.patreon.com/shawwn)!

My Twitter DMs are always open; you should [send me one](https://twitter.com/theshawwn)! It's the best way to reach me, and I'm always happy to hear from you.

- Twitter: [@theshawwn](https://twitter.com/theshawwn)
- Patreon: [https://www.patreon.com/shawwn](https://www.patreon.com/shawwn)
- HN: [sillysaurusx](https://news.ycombinator.com/threads?id=sillysaurusx)
- Website: [shawwn.com](https://www.shawwn.com)
rxsci-river 0.1.0
River-Ml integration into RxSci
License: MIT

=======================
RxSci-River
=======================

.. image:: https://badge.fury.io/py/rxsci-river.svg
    :target: https://badge.fury.io/py/rxsci-river

.. image:: https://github.com/maki-nage/rxsci-river/workflows/Python%20package/badge.svg
    :target: https://github.com/maki-nage/rxsci-river/actions?query=workflow%3A%22Python+package%22
    :alt: Github WorkFlows

.. image:: https://github.com/maki-nage/rxsci-river/raw/master/asset/docs_read.svg
    :target: https://www.makinage.org/doc/rxsci-river/latest/index.html
    :alt: Documentation


RxSci operators for Scikit River.

Get Started
============

Evaluate and train a Hoeffding Tree Classifier from a stream of events:

.. code:: Python

    import rx
    import rxsci_river as rsr
    from river import synth
    from river.tree import HoeffdingTreeClassifier

    gen = synth.Agrawal(classification_function=0, seed=42)
    rx.from_(gen.take(1000)).pipe(
        rsr.evaluate.prequential(
            model=HoeffdingTreeClassifier(
                grace_period=100,
                split_confidence=1e-5,
                nominal_attributes=['elevel', 'car', 'zipcode'],
            ),
            pretrain_size=100),
    ).subscribe(
        on_next=print,
    )


See the
`Maki Nage documentation <https://www.makinage.org/doc/makinage-book/latest/index.html>`_
for more information.

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

RxSci River is available on PyPi and can be installed with pip:

.. code:: console

    python3 -m pip install rxsci-river
dippy.core 0.0.1a2
Async Discord Gateway client.
License: MIT
Requires Python: >=3.9,<4.0

# Dippy.Core

This is a bare-bones Discord gateway client that can be used to build Python bot frameworks for Discord. 

## Installation
```shell
pip install dippy.core
```

## Usage

### Connecting
```python
from dippy.core import GatewayConnection, Intents
from asyncio import get_event_loop

client = GatewayConnection("YOUR.TOKEN.HERE", intents=Intents.DEFAULT | Intents.MEMBERS)

loop = get_event_loop()
loop.create_task(client.connect())
loop.run_forever()
```

### Watching For Events
```python
async def on_ready(event_payload):
    print(event_payload.data)

client.on(on_ready, "READY")
```

## Future

- Add models to wrap the event payload data
- Add a caching interface
- Add rate limiting
- Add methods to models for using the gateway