Skip to main content

A new package designed to process and interpret structured descriptions of neural network architectures from textual input. Users provide detailed text about an ANN's innate design, such as layer type

Project description

Architextor

PyPI version License: MIT Downloads LinkedIn

A Python package for processing and interpreting structured descriptions of neural network architectures from textual input. Architextor uses pattern matching and retries to parse user-provided text about ANN designs (layer types, connections, parameters, etc.) and returns a formalized, machine-readable representation (e.g., JSON schema or graph outline).

Installation

pip install architextor

Usage

Basic Example

from architextor import architextor

user_input = "A neural network with two dense layers: first layer has 128 units and ReLU activation, second has 10 units and softmax activation."
response = architextor(user_input)
print(response)

Using a Custom LLM

You can pass your own LangChain-compatible LLM instance to use OpenAI:

from langchain_openai import ChatOpenAI
from architextor import architextor

llm = ChatOpenAI()
response = architextor(user_input, llm=llm)

use Anthropic:

from langchain_anthropic import ChatAnthropic
from architextor import architextor

llm = ChatAnthropic()
response = architextor(user_input, llm=llm)

use Google:

from langchain_google_genai import ChatGoogleGenerativeAI
from architextor import architextor

llm = ChatGoogleGenerativeAI()
response = architextor(user_input, llm=llm)

Using a Custom API Key

The default LLM is ChatLLM7 (from langchain_llm7). You can provide your own API key:

Via environment variable:

export LLM7_API_KEY="your_api_key_here"

Or directly in code:

response = architextor(user_input, api_key="your_api_key_here")

Get a free API key by registering at https://token.llm7.io/.

Parameters

  • user_input (str): The user input text describing the neural network architecture.
  • llm (Optional[BaseChatModel]): A LangChain LLM instance. If not provided, defaults to ChatLLM7.
  • api_key (Optional[str]): API key for LLM7. If not provided, defaults to the LLM7_API_KEY environment variable.

Default Rate Limits

The default rate limits for LLM7 free tier are sufficient for most use cases. For higher rate limits, provide your own API key.

Issues

Report issues or feature requests on GitHub.

Author

Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell

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

architextor-2025.12.20185502.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

architextor-2025.12.20185502-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file architextor-2025.12.20185502.tar.gz.

File metadata

  • Download URL: architextor-2025.12.20185502.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for architextor-2025.12.20185502.tar.gz
Algorithm Hash digest
SHA256 93b2c8a818ca651fc261d0a6b9541d1dd731cc4b93c901571d5965ffcc3900e6
MD5 d31a5286bf597511441ab213d2a0f5ca
BLAKE2b-256 61f6d83f631cf51ac25d71003593ffd31231f22d59442890de5fb32515ba2cc7

See more details on using hashes here.

File details

Details for the file architextor-2025.12.20185502-py3-none-any.whl.

File metadata

File hashes

Hashes for architextor-2025.12.20185502-py3-none-any.whl
Algorithm Hash digest
SHA256 7d69c8e376709352530396c23d287a245f4c82925a3d698417fc1e2e7a00d70a
MD5 6838dde3d1be72d43d2be352efaf74f0
BLAKE2b-256 abff17cde2c683f014782b0c2e5f9b43c6de105e815d176a20ab78afb32d797d

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