Penman
PENMAN notation for graphs (e.g., AMR)
Decision gist · record as of 2026-08-14
Yes. Penman is a stable, well-maintained library with no dependencies, permissive licensing, and active repository support. It fills a clear need for anyone working with PENMAN-formatted semantic graphs, especially in NLP and AMR research. The recent commit history confirms ongoing maintenance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with no runtime dependencies.
- The package is actively maintained with recent commits and supports modern Python versions (3.8, 3.9, 3.10, 3.11, 3.12).
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
last release 2024-08-07 (737 days) · last repo commit 2026-03-30 · 151 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,523 downloads/mo, #13,990 on PyPI
Alternatives
Verify before relying
pip install penman
import penman
g = penman.decode('(b / bark-01 :ARG0 (d / dog))')
print(penman.encode(g, indent=3))- Whether the 737 days since last release reflects a stable, feature-complete state or potential staleness for active development.
- Real-world performance characteristics when working with large or deeply nested PENMAN graphs.
What it is and what it does
Penman models graphs in PENMAN notation—a text format for representing semantic structures like Abstract Meaning Representation (AMR). It provides a parser to convert PENMAN strings into graph objects, inspection and manipulation methods for the underlying triples and edges, and a serializer to write graphs back to PENMAN format with customizable formatting. The library also includes an AMR model with role inventory and graph transformations (reification, canonicalization, etc.), plus a command-line tool for non-Python workflows.
You use it when you need to work with semantic graph data in PENMAN format: reading annotated AMR corpora, programmatically building or modifying semantic graphs, validating graphs against a model, or converting between different graph representations. It handles metadata in comments and surface alignments, and lets you restructure graphs before serialization—adjusting indentation, selecting different root nodes, or relabeling variables.
Use it for
- Parse AMR corpora or PENMAN-formatted semantic graphs for NLP research or downstream semantic tasks.
- Build or programmatically modify semantic graphs and serialize them back to PENMAN notation for annotation pipelines.
- Validate semantic graphs against the AMR model and apply graph transformations like reification or role canonicalization.
- Convert between graph representations (triples, edges, tree structures) for analysis or integration with other semantic tools.
- Use the command-line tool to inspect, reformat, or transform PENMAN files without writing Python code.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Penman is a stable, well-maintained library with no dependencies, permissive licensing, and active repository support. It fills a clear need for anyone working with PENMAN-formatted semantic graphs, especially in NLP and AMR research. The recent commit history confirms ongoing maintenance.
Install
penman on PyPI
Before you install
Low friction installation with no runtime dependencies. The package is actively maintained with recent commits and supports modern Python versions (3.8, 3.9, 3.10, 3.11, 3.12).
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install penman
import penman
g = penman.decode('(b / bark-01 :ARG0 (d / dog))')
print(penman.encode(g, indent=3))
Verify before relying
- Whether the 737 days since last release reflects a stable, feature-complete state or potential staleness for active development.
- Real-world performance characteristics when working with large or deeply nested PENMAN graphs.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 737 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,523 / month, #13,990 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: LinguisticTopic :: Utilities |
Evidence: penman-1.3.1-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 › “PENMAN graph notation parser”
- PenmanPenman is a Python library for reading, writing, and manipulating…
- querystring-parserParses URL query strings and POST data into properly nested Python…
- edn-formatReads and writes EDN (Extensible Data Notation) format in Python,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also objectgraph · jraph · scikit-network · graphtty · nltk · langchain-graph-retriever · Dijkstar · markdown-graphviz-inline · onnx-ir · markdown-inline-graphviz-extension