semvec/pypi-packages huggingface dataset:
sprl 0.0.2
A simple SPRL file parser
Requires Python: >=3.6

# SPRL Parser

sprl-parser is a simple Python library for parsing and generating prompts from .sprl files. The library uses the SPRL format to define prompts and their associated parameters. It allows users to easily generate prompts with custom parameters programmatically.

## Installation

You can install the sprl-parser library using pip:
```
pip install sprl
```
## Usage

Here's a basic example of how to use sprl-parser:

python
```
from sprl.parser import parse_sprl_file, make_prompt

file_path = 'example.sprl'
parsed_data = parse_sprl_file(file_path)

if parsed_data:
    custom_params = {'name': 'Fluffy'}
    prompt = make_prompt(parsed_data, custom_params)
    print(prompt)
else:
    print("Error parsing the .sprl file.")
```
This code reads an example.sprl file, parses its content, and generates a prompt using the provided custom parameters.

## SPRL File Format

An example .sprl file looks like this:

python
```
title = "Example Prompt"

[context]

header = "Choose an animal and its sound."

body = """
Imagine you have a {animal} that makes the sound {animal_noise}.

What would you name your {animal}? Maybe {name}?
"""

footer = "Have fun choosing a name!"

[parameters]

animal = "dog"
animal_noise = "woof"
name = "*"
```
The file contains a title, context (with optional header, body, and footer), and parameters. Parameters marked with * can be set programmatically using the make_prompt function.

## Contributing

Contributions to the sprl-parser library are welcome. Please fork the repository, create a branch with your changes, and submit a pull request. Ensure that any changes you make are properly documented and tested.

## License

This project is licensed under the MIT License. See the LICENSE file for details.
pyrobotstxt 0.0.5
Python Package to Generate and Analyse Robots.txt files
Requires Python: >=3.9

![pyrobotstx feature image](docs/img/feature-image.png)

# pyrobotstxt: Python Package for **robots.txt** Files

``pyrobotstxt`` package can be used to (systematically) generate **robots.txt** files. Moreover, this package comes in handy for creating and including ``ASCII`` images in **robots.txt** files.

In future releases, it would be possible to parse and analyze **robots.txt** file generated using any software (not limited to ``pyrobotstxt``)

## Whats in pyrobotstxt?

We believe in monolithic software development and created this tiny package that does its job without any bloat. It is useful for 

- Createing **robots.txt** File
- Parsing a **robots.txt** File [in progress]
- Analyzing **robots.txt** File [in progress]

## How to Use pyrobotstxt?

You can find detailed tutorial on [pyrobotstxt tutorial website](https://serpwings.com/software/python-robots-txt/). You can consult [pyrobotstxt documentation website](https://pyrobotstxt.pages.dev) for API reference.

## Contribute

Pull Requests, Feature Suggestions, and collaborations are welcome.

## About Us

This work is a collaborative effort of [seowings](https://seowings.org/), and [serpwings](https://serpwings.com/).