semvec/pypi-packages huggingface dataset:
ebin-ai-assistant 1.0.6
A library containing AI utility functions
Requires Python: >=3.9

# ebin_ai_assistant

A Python library that provides AI-powered utility functions using Google's Gemini API. This library simplifies common AI tasks such as getting responses, summarizing text, and formatting content.

## Features

-   **Get AI Response**: Send prompts to Google Gemini and get text responses.
-   **Summarize Text**: Automatically summarize long pieces of text.
-   **Format Text**: Intelligently clean and format messy text into professional, structured output.

## Installation

You can install `ebin_ai_assistant` directly from PyPI:

```bash
pip install ebin_ai_assistant
```

## Configuration

Before using the library, you need to configure it with your Google Gemini API key. You can get an API key from [Google AI Studio](https://makersuite.google.com/app/apikey).

```python
from ebin_ai_assistant import configure_api

# Replace with your actual API key
configure_api("YOUR_GOOGLE_GEMINI_API_KEY")
```

## Usage

### 1. Get a Response

Send a prompt to the AI and get a response.

```python
from ebin_ai_assistant import get_response

response = get_response("What is the capital of France?")
print(response)
# Output: The capital of France is Paris.
```

**Custom Model:**
By default, it uses `gemini-2.5-flash`. You can specify a different model if needed:

```python
response = get_response("Explain quantum physics", model_name="gemini-pro")
```

### 2. Summarize Text

Summarize a long block of text.

```python
from ebin_ai_assistant import summarize_text

long_text = """
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming.
"""

summary = summarize_text(long_text)
print(summary)
# Output: Python is a readable, high-level programming language that supports multiple paradigms like object-oriented and functional programming.
```

### 3. Format Text

Clean up messy text and make it professional.

```python
from ebin_ai_assistant import format_response

messy_text = "  hey there...   i need this   to be fixed!!  "
formatted = format_response(messy_text)
print(formatted)
# Output: Hey there, I need this to be fixed.
```

## Requirements

-   Python 3.9+
-   `google-generativeai`

## License

MIT License
naja-atra 1.2.2
This is a simple http server, use MVC like design.
Requires Python: >=3.7
Keywords: http-server, websocket, http, web, web-server

# Naja-Atra

Naja-Atra is a lightweight python web framework. It's designed to make starting a web service easier. It supports both HTTP and WebSocket. 

## Installation

Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/):

```
$ pip install -U naja-atra
```

A Simple Example:

```python
from naja_atra import route

@route('/')
def hello(name: str = 'World'):
    return {'message': f'Hello, {name}!'}
```

To run the app, simply execute the `naja-atra` command:

```
$ python3 -m naja_atra
```

Or, you can run it programmatically:

```python
from naja_atra import route
from naja_atra import server


@route("/")
def hello(name: str = 'World'):
    return {"message": f"Hello {name}"}

def main():
    server.start(host="0.0.0.0", port=9090)

if __name__ == "__main__":
    main()
```

## More

* Source Code: [https://github.com/naja-atra/naja-atra](https://github.com/naja-atra/naja-atra)
* Issues Tracker: [https://github.com/naja-atra/naja-atra/issues](https://github.com/naja-atra/naja-atra/issues)