Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Nompy

A Python parser combinator library inspired by the Nom library in Rust. This project is in no way affiliated with the original Nom Rust project.

Examples

Parse Name

Parse a name and apply a simple transformation.

from nom.combinators import succeeded, tag, take_rest, take_until, tuple_
from nom.modifiers import apply

to_parse = "john doe"

parser = tuple_(
    apply(succeeded(take_until(" "), tag(" ")), str.capitalize),
    apply(take_rest(), str.capitalize),
)
result, remaining = parser(to_parse)
firstname, lastname = result
print(firstname, lastname)  # John Doe

Parse Phone Number

Parse an MSISDN with preceeding +

from nom.combinators import preceeded, tag, take_while

to_parse = "+1234567890"

parser = preceeded(take_while(str.isnumeric), tag("+"))
result, remaining = parser(to_parse)
print(result)

Metadata

Release files for nom 0.1.0b3

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

Source distribution (sdist)

Source distribution for nom 0.1.0b3
File Size Uploaded Provenance Actions
nom-0.1.0b3.tar.gz 22.0 kB With provenance Details for nom-0.1.0b3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nom 0.1.0b3
File Interpreter ABI Platform Actions
nom-0.1.0b3-py3-none-any.whl Python 3 none any Details for nom-0.1.0b3-py3-none-any.whl

Total release size: 27.0 kB

Release files / nom-0.1.0b3.tar.gz

Download URL nom-0.1.0b3.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dd5fe2893fd9392d518b7ec1708eec4d8e661b8f85848be3207ba4783ab2c3cd
BLAKE2b-256 checksum
How to use checksums
4846528320dc239f843cb7d41a235255af93671d8cc76a54f86f983d43c38c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2025.

Transparency log

Release files / nom-0.1.0b3-py3-none-any.whl

Download URL nom-0.1.0b3-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c97635aa344a1d01f2a48926f7f059b048dcc0a76029edf97dad2e6c23659f2e
BLAKE2b-256 checksum
How to use checksums
8e0bf7008de1a0eef13d151e67518809fc90f462f1a980203f327bb51d945a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2025.

Transparency log

Security for nom 0.1.0b3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nom-0.1.0b3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2025.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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