Logistic NLP Fitter
A Python package for fitting logistic curves to data using natural language descriptions.
Overview
The logistic_nlp_fitter package allows users to fit logistic curves to their data by interpreting textual descriptions of datasets or growth scenarios. It takes natural language input and returns structured parameters of a logistic model, such as carrying capacity, growth rate, and inflection point. This is useful for researchers, analysts, or students who want quick, automated curve fitting without manually coding or using complex statistical software.
Installation
pip install logistic_nlp_fitter
Usage
Basic Usage
from logistic_nlp_fitter import logistic_nlp_fitter
response = logistic_nlp_fitter("I have data showing population growth that starts slow, speeds up, and then slows down again")
print(response)
Using a Custom LLM
You can use your own LLM instance by passing it to the function:
from langchain_openai import ChatOpenAI
from logistic_nlp_fitter import logistic_nlp_fitter
llm = ChatOpenAI()
response = logistic_nlp_fitter("I have data showing population growth that starts slow, speeds up, and then slows down again", llm=llm)
print(response)
Using LLM7 with API Key
If you want to use LLM7 with your own API key, you can pass it directly or set it as an environment variable:
from logistic_nlp_fitter import logistic_nlp_fitter
# Using environment variable
import os
os.environ["LLM7_API_KEY"] = "your_api_key"
response = logistic_nlp_fitter("I have data showing population growth that starts slow, speeds up, and then slows down again")
print(response)
# Passing API key directly
response = logistic_nlp_fitter("I have data showing population growth that starts slow, speeds up, and then slows down again", api_key="your_api_key")
print(response)
Parameters
user_input(str): The user input text to process.llm(Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the defaultChatLLM7will be used.api_key(Optional[str]): The API key for LLM7. If not provided, the package will use the default or the one set in the environment variableLLM7_API_KEY.
Default LLM
The package uses ChatLLM7 from langchain_llm7 by default. You can find more information about ChatLLM7 here.
Rate Limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits, you can pass your own API key via the environment variable LLM7_API_KEY or directly to the function. You can get a free API key by registering at LLM7.
Issues
If you encounter any issues, please report them on the GitHub issues page.
Author
- Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell
Metadata
Release files for logistic-nlp-fitter 2025.12.21153404
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| logistic_nlp_fitter-2025.12.21153404.tar.gz | 4.3 kB | Without provenance | Details for logistic_nlp_fitter-2025.12.21153404.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logistic_nlp_fitter-2025.12.21153404-py3-none-any.whl | Python 3 | none | any | Details for logistic_nlp_fitter-2025.12.21153404-py3-none-any.whl |
Total release size: 9.3 kB
Release files / logistic_nlp_fitter-2025.12.21153404.tar.gz
| Download URL | logistic_nlp_fitter-2025.12.21153404.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c14a1a3e45334fc1270747c4eb2f0caea435ac7199a274b23f97a68b4ae803cb
|
|
BLAKE2b-256 checksum How to use checksums |
4d4d50ca9e8f0945acfddf6d4225c5affd5711f6d7e2bd6a9f855aef030e6f9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / logistic_nlp_fitter-2025.12.21153404-py3-none-any.whl
| Download URL | logistic_nlp_fitter-2025.12.21153404-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bb382e91eb7aedf897d7ad1ec7c7868bce15e0d63f3de5b5573d36f6010e661
|
|
BLAKE2b-256 checksum How to use checksums |
7477498073f4dc1f77a15451bce802cd8c246b5e052cc6bf5cfd4c2da56cd7c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for logistic-nlp-fitter 2025.12.21153404
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.