med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

412
active users

#pyparsing

0 posts0 participants0 posts today

If you maintain an open source package, set up a standing search on scholar.google.com for your package name. You'll get gmail notifications of published papers referencing your package.

It's truly gratifying to see students and research teams making use of my pyparsing package to parse data sets and DSLs, so they can quickly get past the pesky parser development stage and get on with the business of their actual field of study. #pyparsing #python #google #oss #opensource

Pyparsing 3.2.2 cleans up a formerly internal-only utility method make_compressed_re(), and makes it part of the public API. Given a list of strings, it generates a regex to match those strings and only those (so no cheating like ".*").

Here are before/after expressions for matching chemical symbols.

#Pyparsing API going back to version 1.0.0 (2003) has used a camelCase name scheme for its methods and argument names. In versions 3.0-3.1 (Oct 2021-Jun 2023), I added PEP8-compliant snake_case names, while maintaining synonym definitions for the legacy names for backward compatibility.

Soon, pyparsing will begin emitting DeprecationWarnings for the legacy names. To ease this transition, the next release 3.2.2 will include a utility to convert in place scripts that use the legacy names. #python

Pyparsing sightings - recent posts/pages using pyparsing (2/2):

- ciscoconfparse parses configuration files for various network devices using pyparsing
pypi.org/project/ciscoconfpars

- moto is a mocking package for AWS boto API, using pyparsing for an internal infix notation parser
github.com/getmoto/moto

- Pegasus SaaS application builder uses pyparsing internally
docs.saaspegasus.com/

- EasyABC is an editor for the ABC music notation language
github.com/jwdj/EasyABC

PyPIciscoconfparse2Parse, Audit, Query, Build, and Modify Cisco IOS-style and JunOS-style configs

Pyparsing sightings - some recent posts/pages using pyparsing (1/2):

- Pyparsing is embedded as a parsing engine for Juniper Networks Junos PyEZ automation environment for smart devices.
juniper.net/documentation/us/e

- Pyparsing included in the examples for the Python Packaging User Guide.
packaging.python.org/en/latest

- Papercrawler uses pyparsing to extract metadata from published papers, journals, and conference proceedings.
github.com/sucv/paperCrawler

I just released pyparsing 3.2.1 with a very cool addition to the railroad diagrams that pyparsing generates for its parsers - non-terminal diagram elements now link to their definitions elsewhere in the diagram! This is pretty handy when the diagram is for a complex parser, as in this demo of a parser/evaluator for time references like "3 weeks from today" or "0800 two days from now" or "in exactly twenty-four hours". #pyparsing #python #parser #railroaddiagram

I'm seeing a number of responses from pyparsing users (or matplotlib users) that they are getting a version of pyparsing that is not compatible with their version of Python (they are running Python 3.8 or older, but the new pyparsing release requires Python 3.9 or later). After some experimenting, I found this `requirements.txt` to help in selecting the right pyparsing version:

matplotlib
pyparsing>=3.2;python_version>="3.9"
pyparsing>=3.1;python_version<"3.9"

Attention #pyparsing users: I just pushed release 3.2.0b3, which will be the last beta before I push out 3.2.0. This includes:

- POSSIBLE BREAKING CHANGE: Fixed bug in `transform_string()` where whitespace in the input string was not properly preserved in the output string.

- `mypy` type checking is now run as part of pyparsing's CI.

- Exception message format can now be customized, by overriding `ParseBaseException.format_message`.

Full release notes here: github.com/pyparsing/pyparsing #python

GitHubGitHub - pyparsing/pyparsing: Python library for creating PEG parsersPython library for creating PEG parsers. Contribute to pyparsing/pyparsing development by creating an account on GitHub.

Attention pyparsing users: I just pushed release 3.2.0b1 which mostly just drops support for Python 3.6-3.8, but also changes some exception messages. Please give this release a try before I push the final release in early October.

Also includes:
- some nice enhancements to mongodb_query_expression.py
- a parser for the Lox language defined in Robert Nystrom's "Crafting Interpreters"

Full release notes here: github.com/pyparsing/pyparsing

GitHubRelease Pyparsing 3.2.0b1 · pyparsing/pyparsingDiscontinued support for Python 3.6, 3.7, and 3.8. Adopted new Python features from Python versions 3.7-3.9: Updated type annotations to use built-in container types instead of names imported from...

Refreshing my MongoDB skills this week, and I remember thinking it would be nice to have a converter for query expressions, to transform normal infix notation into the nested dict used by the `collection.find()` function. So here is the output of a pyparsing program to do that. See the before/after examples below. The script is included in the pyparsing examples directory at github.com/pyparsing/pyparsing #python #pyparsing #mongodb

I just pushed release 3.1.0b1 of pyparsing. 3.1.0 will include support for python 3.12, and will be the last release to support 3.6 and 3.7. If your project uses pyparsing, *please* download this beta release (using "pip install -U pyparsing==3.1.0b1") and open any compatibility issues you might have at the pyparsing GitHub repo (github.com/pyparsing/pyparsing). #pyparsing #python

GitHubGitHub - pyparsing/pyparsing: Python library for creating PEG parsersPython library for creating PEG parsers. Contribute to pyparsing/pyparsing development by creating an account on GitHub.