Skip to main content

TextForgePy

PyPI version License: MIT Downloads LinkedIn

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 to ChatLLM7 from langchain_llm7 (optional)
  • api_key: The API key for LLM7; if not provided, uses the LLM7_API_KEY environment 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

...

Metadata

Release files for textforgepy 2025.12.21090031

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textforgepy 2025.12.21090031
File Size Uploaded
textforgepy-2025.12.21090031.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textforgepy 2025.12.21090031
File Interpreter ABI Platform
textforgepy-2025.12.21090031-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / textforgepy-2025.12.21090031.tar.gz

Download URL textforgepy-2025.12.21090031.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3d164ec56b053115097229a746f53f50ba54952734be7345ec9dc902341fe6f4
BLAKE2b-256 checksum
How to use checksums
ac7f096282054d74ffda3e45ce9888115a5e11918f07a817ae84f7b99a6d11e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / textforgepy-2025.12.21090031-py3-none-any.whl

Download URL textforgepy-2025.12.21090031-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4558be296cc37f5535a36996f659ac8bdd67cc2fd72603f7e4fea83c1bdbcf1f
BLAKE2b-256 checksum
How to use checksums
f9b35c0e01e30c833a79423dee0bb9f32841b6c45e654cc257da039dd146410f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.12.21090031 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page