semvec/pypi-packages huggingface dataset:
dotpromptz 0.1.5
Dotpromptz is a language-neutral executable prompt template file format for Generative AI.
Requires Python: >=3.10

# Dotprompt: Executable GenAI Prompt Templates

**Dotprompt** is an executable prompt template file format for Generative AI. It
is designed to be agnostic to programming language and model provider to allow
for maximum flexibility in usage. Dotprompt extends the popular
[Handlebars](https://handlebarsjs.com) templating language with GenAI-specific
features.

## What's an executable prompt template?

An executable prompt template is a file that contains not only the text of a
prompt but also metadata and instructions for how to use that prompt with a
generative AI model. Here's what makes Dotprompt files executable:

- **Metadata Inclusion**: Dotprompt files include metadata about model
  configuration, input requirements, and expected output format. This
  information is typically stored in a YAML frontmatter section at the beginning
  of the file.

- **Self-Contained Entity**: Because a Dotprompt file contains all the necessary
  information to execute a prompt, it can be treated as a self-contained entity.
  This means you can "run" a Dotprompt file directly, without needing additional
  configuration or setup in your code.

- **Model Configuration**: The file specifies which model to use and how to
  configure it (e.g., temperature, max tokens).

- **Input Schema**: It defines the structure of the input data expected by the
  prompt, allowing for validation and type-checking.

- **Output Format**: The file can specify the expected format of the model's
  output, which can be used for parsing and validation.

- **Templating**: The prompt text itself uses Handlebars syntax, allowing for
  dynamic content insertion based on input variables.

This combination of features makes it possible to treat a Dotprompt file as an
executable unit, streamlining the process of working with AI models and ensuring
consistency across different uses of the same prompt.

## Example `.prompt` file

Here's an example of a Dotprompt file that extracts structured data from provided text:

```handlebars
---
model: googleai/gemini-1.5-pro
input:
  schema:
    text: string
output:
  format: json
  schema:
    name?: string, the full name of the person
    age?: number, the age of the person
    occupation?: string, the person's occupation
---
Extract the requested information from the given text. If a piece of information is not
present, omit that field from the output. Text:
{{text}}
```

This Dotprompt file:

1. Specifies the use of the `googleai/gemini-1.5-pro` model.
2. Defines an input schema expecting a `text` string.
3. Specifies that the output should be in JSON format.
4. Provides a schema for the expected output, including fields for name, age, and occupation.
5. Uses Handlebars syntax (`{{text}}`) to insert the input text into the prompt.

When executed, this prompt would take a text input, analyze it using the
specified AI model, and return a structured JSON object with the extracted
information.
smmpy 0.1.0
A Python client for SMM panels
Requires Python: >=3.6

# SMM (SOCIAL MEDIA MARKETING)

A lightweight, zero-dependency Python client for connecting to compatible SMM (Social Media Marketing) Panels.

## Features
- **Zero Dependencies**: Built with native libraries (actually uses `requests` which is standard).
- **Python Support**: Full type hinting included.
- **Universal**: Works in Python 3.6+.

## Installation

```bash
pip install smmpy
```

## Usage

```python
from smmpy import smm

# Initialize
client = smm('https://smm-provider.com/api/v2', 'YOUR_API_KEY')

# Get Balance
balance = client.get_balance()
print(balance)

# Add Order
order = client.add_order(
    service=123,
    link='https://example.com',
    quantity=1000
)

# Get Status
status = client.get_status(order['order'])
```

## API Reference
- `get_services()`
- `add_order(service, link, quantity, comments=None, runs=None, interval=None)`
- `get_status(order_id)`
- `get_multi_status(order_ids)`
- `create_refill(order_id)`
- `get_refill_status(refill_id)`
- `cancel_orders(order_ids)`
- `get_balance()`

## License
MIT