semvec/pypi-packages huggingface dataset:
calar 2.5.1
The text colorizer everyone needs!
License: MIT
Requires Python: >=3.7

The text colorizer everyone needs!
#
```python
import calar
```
# Example Usage
```python
calar.init() # Optional

blue_color = calar.get('blue')
# blue_color = calar.Fore.BLUE
# blue_color = calar.get('blue', 'fore')
print(blue_color + 'Hello World!')

calar.deinit() # Optional
```
# More Example Usage
```python
blended = calar.blend(calar.Fore.BLUE, calar.Style.BOLD)
print(blended + 'Hello World!')
```
# Create Gradients
```python
blue_gradient = calar.gradient('blue')
print(blue_gradient + 'Hello World!')

back_blue_gradient = calar.gradient('blue', 'back')
print(back_blue_gradient + 'Hello World!')
```

# Apply Gradients to Text
```python
gradient = calar.gradient('blue')
gradient_text = calar.gradientify('Hello World!', gradient)
print(gradient_text)
```

# Colorize Code
```python
code = '''
import numpy as np

def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n - 1)

print(factorial(5))
'''

colored_code = calar.code(code, 'python', 'friendly')
print(colored_code)
```
fixie 0.0.8
Fixie.ai SDK for Python. Enables you to build AI-powered voice applications.
License: MIT
Requires Python: >=3.11,<4.0
Keywords: fixie,fixie.ai,voice,ai

# fixie-sdk-python
Fixie SDK for Python


## Quickstart

```bash
pip install fixie
```

### Hello Agent

To start a voice session with a Fixie agent, create a `VoiceSession` object and call `session.start()`.

```python
from fixie_sdk.voice import audio_local
from fixie_sdk.voice import types
from fixie_sdk.voice.session import VoiceSession
from fixie_sdk.voice.session import VoiceSessionParams


async def main():
    source = audio_local.LocalAudioSource()
    sink = audio_local.LocalAudioSink()
    params = VoiceSessionParams(agent_id=<your agent uuid>)
    client = VoiceSession(source, sink, params)
    await client.warmup()
    await client.start()
    await asyncio.Event().wait()


asyncio.run(main())
```

### Hello Santa

For a more complete example, see the command-line client included with the Fixie SDK: https://github.com/fixie-ai/fixie-sdk-python/blob/main/fixie_sdk/examples/voice_example.py


## Installing & Running from Source

1. Install
```bash
poetry install
```

1. Run included voice example
```bash
poetry run python examples/voice_example.py
```
Use `Ctrl-C` to terminate the program.

The example program will use the default microphone and output device (i.e. speaker) for your computer. These are set in this code:

```python
# Get the default microphone and audio output device.
source = audio_local.LocalAudioSource()
sink = audio_local.LocalAudioSink()
```

You can find more information in the file `voice/audio_local.py`.

### Using Your Own Agent
You can pass in the `--agent` (or `-a`) input parameter followed by a space and then the ID of your agent.

### Using a Different Voice
Adding more voices is a WIP. For now you can use the default voice or can pick any of the voices that are defined [here](https://github.com/fixie-ai/hisanta.ai/blob/main/lib/config.ts). Pass in the desired voiceID with the `--tts-voice` (`-tv`) parameter.

### Using Your Own Audio Devices
Typically you will want to supply your own audio source and sink (e.g., to pipe the data to the phone network rather than the local audio devices). To do this, simply create your own classes derived from AudioSource and AudioSink and pass them in to the VoiceSession constructor.