Fractal Categorizer
A Python package that processes user-provided text descriptions of fractal patterns, cellular automata configurations, or similar generative systems, and returns structured analyses or classifications.
Overview
This package takes in text descriptions of fractal patterns, cellular automata configurations, or similar generative systems, and uses a combination of pattern matching and natural language processing to classify and analyze them.
Installation
You can install the package via pip:
pip install fractal_categorizer
Example Usage
from fractal_categorizer import fractal_categorizer
response = fractal_categorizer("A fractal pattern with a Mandelbrot set")
print(response)
Input Parameters
The package takes in the following input parameters:
user_input: str - the user input text to processllm: Optional[BaseChatModel] - the langchain llm instance to use, if not provided the default ChatLLM7 will be usedapi_key: Optional[str] - the api key for llm7, if not provided
LLM Support
The package uses the ChatLLM7 from langchain_llm7 by default. However, you can safely pass your own llm instance based on https://docs.langchain.dev/en/latest/reference.html if you want to use another LLM, via passing it like fractal_categorizer(user_input, llm=their_llm_instance).
For example, to use the openai https://docs.langchain.dev/en/latest/reference.html:
from langchain_openai import ChatOpenAI
from fractal_categorizer import fractal_categorizer
llm = ChatOpenAI()
response = fractal_categorizer("A fractal pattern with a Mandelbrot set", llm=llm)
print(response)
or for example to use the anthropic https://docs.langchain.dev/en/latest/reference.html:
from langchain_anthropic import ChatAnthropic
from fractal_categorizer import fractal_categorizer
llm = ChatAnthropic()
response = fractal_categorizer("A fractal pattern with a Mandelbrot set", llm=llm)
print(response)
or google https://docs.langchain.dev/en/latest/reference.html:
from langchain_google_genai import ChatGoogleGenerativeAI
from fractal_categorizer import fractal_categorizer
llm = ChatGoogleGenerativeAI()
response = fractal_categorizer("A fractal pattern with a Mandelbrot set", llm=llm)
print(response)
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 for LLM7 you can pass your own api_key via environment variable LLM7_API_KEY or via passing it directly like fractal_categorizer(user_input, api_key="their_api_key"). You can get a free api key by registering at https://token.llm7.io/
Contributing
Contributions are welcome! If you have any suggestions or issues, please open an issue on the GitHub repository: https://github.com/chigwell/fractal-categorizer.
Author
Eugene Evstafev eugene.evstafev@chigwell.plus
Metadata
Release files for fractal-categorizer 2025.12.21180718
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fractal_categorizer-2025.12.21180718.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fractal_categorizer-2025.12.21180718-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / fractal_categorizer-2025.12.21180718.tar.gz
| Download URL | fractal_categorizer-2025.12.21180718.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df9a9b2dfa07b28eb866fd1d1b6449f48576b90e97e3fb41d091c233ceb2a3d9
|
|
BLAKE2b-256 checksum How to use checksums |
5df714fd2a2930388bfbd7f62d0bb50bae6d553ebd4d364a3ead48a1bb573307
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / fractal_categorizer-2025.12.21180718-py3-none-any.whl
| Download URL | fractal_categorizer-2025.12.21180718-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb1060bd0f5123158213345f55804a1be5452d125687a61a71aa7117360e87a7
|
|
BLAKE2b-256 checksum How to use checksums |
c67edbc4866bd604fcb7b5b0dc83fe8c41bb037828632c11eba7c4b6beb35783
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|