Skip to main content

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

Metadata

Release files for architextor 2025.12.20185502

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for architextor 2025.12.20185502
File Size Uploaded Provenance
architextor-2025.12.20185502.tar.gz 5.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for architextor 2025.12.20185502
File Interpreter ABI Platform
architextor-2025.12.20185502-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / architextor-2025.12.20185502.tar.gz

Download URL architextor-2025.12.20185502.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
93b2c8a818ca651fc261d0a6b9541d1dd731cc4b93c901571d5965ffcc3900e6
BLAKE2b-256 checksum
How to use checksums
61f6d83f631cf51ac25d71003593ffd31231f22d59442890de5fb32515ba2cc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / architextor-2025.12.20185502-py3-none-any.whl

Download URL architextor-2025.12.20185502-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d69c8e376709352530396c23d287a245f4c82925a3d698417fc1e2e7a00d70a
BLAKE2b-256 checksum
How to use checksums
abff17cde2c683f014782b0c2e5f9b43c6de105e815d176a20ab78afb32d797d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for architextor 2025.12.20185502

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page