sog4onnx
Simple ONNX operation generator. Simple Operation Generator for ONNX.
Decision gist · record as of 2026-08-14
Yes, if you need to generate individual ONNX operations programmatically or via CLI and plan to combine them with companion tools. The low install friction and permissive MIT license make it a safe addition. However, dormant maintenance since April 2024 means you should verify compatibility with your target ONNX opset version before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction; pure Python wheel with no runtime dependencies.
- Maintenance is dormant—last release was 836 days ago, though the repository remains active with a final commit in April 2024.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2024-04-30 (836 days) · last repo commit 2024-04-30 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,252 downloads/mo, #14,012 on PyPI
Alternatives
Verify before relying
pip install sog4onnx
from sog4onnx import generate
single_op_graph = generate(
op_type='Add',
opset=11,
ir_version=9,
op_name='add_op',
input_variables={'i1': [float, [1,2,3]], 'i2': [float, [1,2,3]]},
output_variables={'o1': [float, [1,2,3]]}
)- Whether the package handles validation of operation definitions against the ONNX specification version being used.
- Whether generated graphs can be directly used with ONNX Runtime or require post-processing via companion tools.
- Current compatibility with recent ONNX opset versions beyond the April 2024 release date.
What it is and what it does
sog4onnx is a command-line and Python library tool for generating single ONNX operations with user-specified inputs, outputs, and attributes. It deliberately skips consistency checking of operation definitions, allowing it to adapt as ONNX's opset evolves without requiring updates. The tool is designed as a building block: you define one operation at a time, then combine multiple generated operations using companion tools to construct complete ONNX graphs.
The package supports both CLI and in-script usage, accepting operation type, opset version, IR version, variable names and shapes, and operation-specific attributes. It outputs either a Python ModelProto object or a serialized .onnx file. Because it performs no validation, you must consult the ONNX operator documentation to ensure your inputs and attributes are correct for the operation you're generating.
Use it for
- Generate a single ONNX Gemm operation with custom input shapes and attributes for matrix multiplication.
- Create minimal ONNX graphs for testing or prototyping new operation combinations before building full models.
- Build operation definitions programmatically when constructing dynamic ONNX graphs from external specifications.
- Generate Add, NonMaxSuppression, or other standard operations with precise control over tensor shapes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to generate individual ONNX operations programmatically or via CLI and plan to combine them with companion tools.
The low install friction and permissive MIT license make it a safe addition. However, dormant maintenance since April 2024 means you should verify compatibility with your target ONNX opset version before relying on it in production.
Install
sog4onnx on PyPI
Before you install
Low install friction; pure Python wheel with no runtime dependencies. Maintenance is dormant—last release was 836 days ago, though the repository remains active with a final commit in April 2024.
License in practice
MIT License permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install sog4onnx
from sog4onnx import generate
single_op_graph = generate(
op_type='Add',
opset=11,
ir_version=9,
op_name='add_op',
input_variables={'i1': [float, [1,2,3]], 'i2': [float, [1,2,3]]},
output_variables={'o1': [float, [1,2,3]]}
)
Verify before relying
- Whether the package handles validation of operation definitions against the ONNX specification version being used.
- Whether generated graphs can be directly used with ONNX Runtime or require post-processing via companion tools.
- Current compatibility with recent ONNX opset versions beyond the April 2024 release date.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 836 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,252 / month, #14,012 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: sog4onnx-1.0.17-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “onnx operation generator”
- sog4onnxGenerates minimal ONNX operation graphs by specifying operation type,…
- sng4onnxAutomatically generates and assigns operation names to unnamed…
- ssc4onnxAnalyzes and displays the structure of ONNX models, including those…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also sng4onnx · sna4onnx · sod4onnx · sam4onnx · soa4onnx · onnx-graphsurgeon · snd4onnx · soc4onnx · snc4onnx · onnxscript