semvec/pypi-packages huggingface dataset:
promptrix 0.3.1
Promptrix. A prompt layout manager for LLMs
Requires Python: >=3.8

# promptrix-py
Promptrix is a prompt layout engine for Large Language Models.

# Here is a first trivial example:

    from promptrix import promptrixTypes, VolatileMemory, FunctionRegistry, GPT3Tokenizer
    from promptrix.Prompt import Prompt
    from promptrix.SystemMessage import SystemMessage
    from promptrix.UserMessage import UserMessage
    from promptrix.AssistantMessage import AssistantMessage
    from promptrix.ConversationHistory import ConversationHistory

    functions = FunctionRegistry()
    tokenizer = GPT3Tokenizer()
    memory = VolatileMemory({'input':'', 'history':[]})
    max_tokens = 2000

    prompt_text = 'You are helpful, creative, clever, and very friendly. '
    PROMPT = Prompt([
        UserMessage(prompt_text),
        ConversationHistory('history', .5),    # allow history to use up 1/2 the remaining token budget left after the prompt and input 
        UserMessage('{{$input}}')
    ])

    async def render_messages_completion():
        as_msgs = await PROMPT.renderAsMessages(memory, functions, tokenizer, max_tokens)
        msgs = []
        if not as_msgs.tooLong:
            msgs = as_msgs.output
        return msgs

    ### basic chat loop
    while True:
        memory.set('input', query)
        msgs = asyncio.run(render_messages_completion())
        response = ... your favorite llm api (model, msgs, ...)
        print(response)
        history = memory.get('history')
        history.append({'role':USER_PREFIX, 'content': query})
        history.append({'role': ASSISTANT_PREFIX, 'content': response})
        memory.set('history', history)
idg-superset-client 1.0.0
A simple REST API Client for Apache-Superset
Requires Python: >=3.6

<div align="center">
    <img src="./assets/superset-client.jpg" alt="logo" height="60" />
    <br />
    <br />
</div>

# Superset Client

A Python Client for Apache Superset REST API.

This is an Alpha version. Stability is not guaranteed.

## Usage

Install the package:
```sh
pip install superset-client
```

Setup a superset client:
```python3
from supersetapiclient.client import SupersetClient

client = SupersetClient(
    host="http://localhost:8080",
    username="admin",
    password="admin",
)
```

When developping in local (only), you may need to accept insecure transport (i.e. http).
This is NOT recommanded outside of local development environement, that is requesting `localhost`.

```python3
import os

os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
```

## Quickstart

Get all dashboards or find one by name:
```python3
# Get all dashboards
dashboards = client.dashboards.find()

# Get a dashboard by name
dashboard = client.dashboards.find(dashboard_title="Example")[0]
```

Update dashboard colors, some properties and save changes to server:
```python3
# Update label_colors mapping
print(dashboard.colors)
dashboard.update_colors({
    "label": "#fcba03"
})
print(dashboard.colors)

# Change dashboard title
dashboard.dashboard_title = "New title"

# Save all changes
dashboard.save()
```

## Documentation

- [Service of Assets Management](https://confluence.idgcapital.com/pages/viewpage.action?pageId=50725725)
- [Service of Data Building](https://confluence.idgcapital.com/pages/viewpage.action?pageId=50725719)
- [Directory of Data Platform](https://confluence.idgcapital.com/pages/viewpage.action?pageId=46401007)

## Contributing

Before committing to this repository, you must have [pre-commit](https://pre-commit.com) installed, and install
the following pre-commit hooks:

```sh
pre-commit install --install-hooks -t pre-commit -t pre-push
```

## License

This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details
ssh-negotiate-term 0.0.2
Downgrade TERM strings when connecting to selected SSH servers
Requires Python: >=3.7

ssh\_negotiate\_term
====================

Wrap ssh(1) commands, parse the options, and check whether the hostname
argument is either an IPv4/IPv6 address or matches any of a set of configured
hostname patterns.  If so, and we're using a TERM type that's not
well-supported on network gear, set a more broadly-compatible TERM type.