Skip to main content

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

PyPI version License: MIT Downloads LinkedIn

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 process
  • llm: Optional[BaseChatModel] - the langchain llm instance to use, if not provided the default ChatLLM7 will be used
  • api_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fractal_categorizer-2025.12.21180718.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file fractal_categorizer-2025.12.21180718.tar.gz.

File metadata

File hashes

Hashes for fractal_categorizer-2025.12.21180718.tar.gz
Algorithm Hash digest
SHA256 df9a9b2dfa07b28eb866fd1d1b6449f48576b90e97e3fb41d091c233ceb2a3d9
MD5 f2410928750a8b7e069b6b0116ac3d5c
BLAKE2b-256 5df714fd2a2930388bfbd7f62d0bb50bae6d553ebd4d364a3ead48a1bb573307

See more details on using hashes here.

File details

Details for the file fractal_categorizer-2025.12.21180718-py3-none-any.whl.

File metadata

File hashes

Hashes for fractal_categorizer-2025.12.21180718-py3-none-any.whl
Algorithm Hash digest
SHA256 bb1060bd0f5123158213345f55804a1be5452d125687a61a71aa7117360e87a7
MD5 ad3a8000555630e1a76518a9f73544a2
BLAKE2b-256 c67edbc4866bd604fcb7b5b0dc83fe8c41bb037828632c11eba7c4b6beb35783

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page