A new package that processes user-provided text descriptions of fractal patterns, cellular automata configurations, or similar generative systems, and returns structured analyses or classifications. F
Project description
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
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 fractal_categorizer-2025.12.21180718.tar.gz.
File metadata
- Download URL: fractal_categorizer-2025.12.21180718.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df9a9b2dfa07b28eb866fd1d1b6449f48576b90e97e3fb41d091c233ceb2a3d9
|
|
| MD5 |
f2410928750a8b7e069b6b0116ac3d5c
|
|
| BLAKE2b-256 |
5df714fd2a2930388bfbd7f62d0bb50bae6d553ebd4d364a3ead48a1bb573307
|
File details
Details for the file fractal_categorizer-2025.12.21180718-py3-none-any.whl.
File metadata
- Download URL: fractal_categorizer-2025.12.21180718-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb1060bd0f5123158213345f55804a1be5452d125687a61a71aa7117360e87a7
|
|
| MD5 |
ad3a8000555630e1a76518a9f73544a2
|
|
| BLAKE2b-256 |
c67edbc4866bd604fcb7b5b0dc83fe8c41bb037828632c11eba7c4b6beb35783
|