A new package designed to transform unstructured text inputs into standardized, machine-readable outputs. This tool focuses on domains where consistency and format are critical, such as technical docu
Project description
TextForgePy
Transform unstructured text inputs into standardized, machine-readable outputs using natural language processing (NLP) and reinforcement learning.
Overview
TextForgePy is a Python package designed to convert free-form text inputs into structured data, perfect for domains where consistency and formatting are crucial. By leveraging LLM7, it reduces ambiguity and enhances reliability.
Installation
pip install textforgepy
Example Usage
from textforgepy import textforgepy
response = textforgepy(user_input="Your user input text here")
print(response) # response is a list of processed strings
Input Parameters
user_input: The user input text to process (string)llm: The langchain LLM instance to use; defaults toChatLLM7fromlangchain_llm7(optional)api_key: The API key for LLM7; if not provided, uses theLLM7_API_KEYenvironment variable or defaults to "None" (optional)
Note: You can safely pass your own LLM instance by using a different langchain library, e.g.:
from langchain_openai import ChatOpenAI
from textforgepy import textforgepy
llm = ChatOpenAI()
response = textforgepy(user_input, llm=llm)
or:
from langchain_anthropic import ChatAnthropic
from textforgepy import textforgepy
llm = ChatAnthropic()
response = textforgepy(user_input, llm=llm)
or even:
from langchain_google_genai import ChatGoogleGenerativeAI
from textforgepy import textforgepy
llm = ChatGoogleGenerativeAI()
response = textforgepy(user_input, llm=llm)
Rate Limits
The default rate limits for LLM7's free tier are sufficient for most use cases of TextForgePy. If you need higher rate limits, you can pass your own API key via environment variable LLM7_API_KEY or directly like textforgepy(user_input, api_key="your_api_key").
Get a free API key at https://token.llm7.io/
Contributing
Please report issues at https://github.com/chigwell/textforgepy
Author: Eugene Evstafev Email: hi@euegne.plus GitHub: https://github.com/chigwell
License
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textforgepy-2025.12.21090031.tar.gz.
File metadata
- Download URL: textforgepy-2025.12.21090031.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d164ec56b053115097229a746f53f50ba54952734be7345ec9dc902341fe6f4
|
|
| MD5 |
6fa47f6e9897fc36a502d1017faacee4
|
|
| BLAKE2b-256 |
ac7f096282054d74ffda3e45ce9888115a5e11918f07a817ae84f7b99a6d11e5
|
File details
Details for the file textforgepy-2025.12.21090031-py3-none-any.whl.
File metadata
- Download URL: textforgepy-2025.12.21090031-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4558be296cc37f5535a36996f659ac8bdd67cc2fd72603f7e4fea83c1bdbcf1f
|
|
| MD5 |
e247570189d077928653932e0473dbde
|
|
| BLAKE2b-256 |
f9b35c0e01e30c833a79423dee0bb9f32841b6c45e654cc257da039dd146410f
|