Skip to main content

Parsing and interpreting notation strings representing numeric sequences, ranges, and individual values. With support for various formats including simple values, range notations (e.g., '10-30'), and stepped ranges (e.g., '0--10/2'), this package simplifies the process of extracting integer values from diverse notation formats. Whether you need to parse input ranges, interpret array indexes, or handle sequence boundaries in your Python applications

Project description

Installation

With poetry

poetry add numeric_notation_parser

With pip

pip install numeric_notation_parser

Supported formats

Input is marked as a string, output as a list of int

Input Output as list
10,11,22 [10, 11, 22]
0-10 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
0-10/2 [0, 2, 4, 6, 8, 10]
10--10/3 [10, 7, 4, 1, -2, -5, -8]

Example

from numeric_notation_parser import notation_to_integer_generator

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

numeric_notation_parser-1.0.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

numeric_notation_parser-1.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file numeric_notation_parser-1.0.0.tar.gz.

File metadata

  • Download URL: numeric_notation_parser-1.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.10-arch1-1

File hashes

Hashes for numeric_notation_parser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4218071bff45bf1c3427672ba740d121d9d57a44cd683b2f701b917b838c377c
MD5 3002dac05337f564cc74cb5216a5eab2
BLAKE2b-256 c559a47e61462ad8a735596beeb9a6de7bf481f57652671861a67bed036b3c3d

See more details on using hashes here.

File details

Details for the file numeric_notation_parser-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for numeric_notation_parser-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 307583fb7472e58ea034a1f0ca46499e1a47c35b687d8f0a328258cc79539dbe
MD5 b418b89751d90b9314b5c843ec081a4a
BLAKE2b-256 8c3fae510e3ad75831b0df9699761050f5aeb396afd4fb08026c67d52451b37a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page