semvec/pypi-packages huggingface dataset:
llm-nexus 0.2.0
A unified interface for multiple language model providers
License: MIT
Requires Python: >=3.7

# LLM Nexus

LLM Nexus is a Python package that provides a unified interface for interacting with multiple Language Model providers, including OpenAI, Anthropic, and Google AI.

## Features

- Unified API for multiple LLM providers
- Support for text completions and function calls
- Easy integration with OpenAI, Anthropic, and Google AI models

## Installation

You can install LLM Nexus using pip:

```
pip install llm-nexus
```

## Usage

Here's a quick example of how to use LLM Nexus:

```python
from llm_nexus import ModelProvider

provider = ModelProvider(openai_api_key="your-openai-key", anthropic_api_key="your-anthropic-key", googleai_api_key="your-googleai-key")

result = provider.completion(
    instructions="Return a rhyme.",
    user_prompt="Would a rose by any other name smell as sweet?",
    provider_name="openai",
    model_name="gpt-3.5-turbo"
)

print(result)
# Example response:  "Yes, a rose's fragrance can't be beat."
```

For function calls:

```python
from llm_nexus import ModelProvider, Function, Argument, ParamType

provider = ModelProvider(openai_api_key="your-openai-key", anthropic_api_key="your-anthropic-key", googleai_api_key="your-googleai-key")

function = Function(
    name="underrated_historical_events",
    description="Name up to 3 underrated historical events based on the user's request",
    arguments=[
        Argument(name="event", param_type=ParamType.STRING, description="The name of the event."),
        Argument(name="year", param_type=ParamType.INTEGER, description="The year the event began."),
        Argument(name="reasoning", param_type=ParamType.STRING, description="A brief description of why you feel this event is underrated.")
    ],
)

result = provider.function_call(
    user_prompt="What are some underrated A.D. events in African history?",
    function=function,
    provider_name="openai",
    model_name="gpt-3.5-turbo",
    return_array=True
)

print(result)
# Example reponse: 
# {
#     "array": [
#         {
#             "event": "Kingdom of Aksum",
#             "year": 100,
#             "reasoning": "One of the most powerful early medieval empires in East Africa, yet not widely known or studied in history classes."
#         },
#         {
#             "event": "Mali Empire",
#             "year": 1235,
#             "reasoning": "A prosperous West African empire centered in Mali that controlled trade routes across the Sahara. Advanced cities and universities but its achievements are not always emphasized."
#         },
#         {
#             "event": "Great Zimbabwe",
#             "year": 1450,
#             "reasoning": "Sophisticated city and trade center indicating a highly organized society, but origins are still debated and its influence on the region could be discussed more."
#         }
#     ]
# }
```

## Supported Python Versions

LLM Nexus supports Python 3.7 and above.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
pysimplesocket 0.1.0
python simple socket
License: MIT
Requires Python: >=3.6.0


<h1 align="center">pySimpleSocket -- Make your socket coding more easier!</h1>
<em><h3 align="center">A more convenient and simpler way to program sockets </h3></em>
<p align="center">
<img src=https://github.com/LamentXU123/pySimpleSocket/blob/main/Resource/Logo.png>
<img src=https://img.shields.io/badge/python-3.7+-blue?style=for-the-badge>
<img src=https://img.shields.io/badge/License-MIT-green?style=for-the-badge>
<img src=https://img.shields.io/badge/State-Developing-red?style=for-the-badge>
<img src=https://img.shields.io/badge/Platform-Windows-orange?style=for-the-badge>
<em><h5 align="center"></h5></em>

## Main Features
* __Effectively improve your socket programming efficiency__
	
	* *More simple, convenient, easy-to-use built-in functions*
	
* __Establish a more reliable connection__

	* *More detailed error reporting and reconnection*
	
## Highlights
* Simpler connection and communication process
	
* More easy to get start with
	
* More details on errors and common reconnect methods
	
* Working on both TCP and UDP

## Getting started


## Maintainers
[@LamentXU](https://github.com/LamentXU123).
[@MeteorKai](https://github.com/MeteorKai).

## Reports

Please send bug reports and feature requests through [github issue tracker](https://github.com/LamentXU123/pySimpleSocket/issues). ArcticWolf is currently under development now and it's open to any constructive suggestions.


## License
The ArcticWolf attack script is released under [MIT license](https://github.com/LamentXU123/pySimpleSocket/License).

***Leave a star if you like this project***