devel/py-flexparser 0.4 FreeBSD
Parsing made fun ... using typing
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 62.7 KiB, 352.4 KiB installed
Description
Why write another parser? I have asked myself the same question while working on this project. It is clear that there are excellent parsers out there, but I wanted to experiment with another way of writing them.
The idea is quite simple. You write a class for every type of content (called here ParsedStatement) you need to parse. Each class should have a from_string constructor. We used the typing module extensively to make the output structure easy to use and less error-prone.
Install
Binary package:
pkg install py312-flexparser
From the ports tree:
cd /usr/ports/devel/py-flexparser/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-flexparser>0:devel/py-flexparser
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.4 | 0.4 | - | - | 0.4 |
| FreeBSD:14:quarterly | 0.4 | 0.4 | n/a | - | 0.4 |
| FreeBSD:15:latest | 0.4 | 0.4 | n/a | - | - |
| FreeBSD:15:quarterly | 0.4 | 0.4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.4 | 0.4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=61: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 1
${PYTHON_PKGNAMEPREFIX}typing-extensions>=0: devel/py-typing-extensions
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 8
Required by 18
- astro/py-earthkit-utils
- astro/py-metpy
- devel/py-datasette
- devel/py-pint
- devel/py-pint-pandas
- graphics/py-agx-emulsion
- math/mathicsscript
- math/py-mathics
- misc/py-napari
- misc/pyobd
- science/psi4
- science/py-mpcontribs-client
- science/py-optking
- science/py-pyked
- science/py-qcelemental
- science/py-qcengine
- science/py-qcmanybody
- x11-toolkits/py-magicgui
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| flexparser-0.4.tar.gz | 31799 | 266d98905595be2ccc5da964fe0a2c3526fbbffdc45b65b3146d75db992ef6b2 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.