devel/py-prance 23.6.21.0_2 MidnightBSD
Resolving Swagger/OpenAPI 2.0 and 3.0.0 parser
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, python
Description
Prance provides parsers for Swagger/OpenAPI 2.0 and 3.0 API specifications in Python. It uses flex, swagger_spec_validator or openapi_spec_validator to validate specifications, but additionally resolves JSON references in accordance with the OpenAPI spec.
Mostly the latter involves handling non-URI references; OpenAPI is fine with providing relative file paths, whereas JSON references require URIs at this point in time.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-prance | 23.6.21.0_2 |
| FreeBSD | devel/py-prance | 26.7.19.0 |
| OpenBSD | devel/py-prance | 26.7.19.0p0 |
| DragonFly | devel/py-prance | 23.6.21.0 |
| HardenedBSD | devel/py-prance | 26.7.19.0 |
| GhostBSD | devel/py-prance | 26.7.19.0 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}prance
From mports:
cd /usr/mports/devel/py-prance && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prance>0:devel/py-prance
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 5
${PYTHON_PKGNAMEPREFIX}chardet>=3.0,1: textproc/py-chardet${PYTHON_PKGNAMEPREFIX}packaging>=21.3: devel/py-packaging${PYTHON_PKGNAMEPREFIX}requests>=2.25: www/py-requests${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.17.10: devel/py-ruamel.yaml${PYTHON_PKGNAMEPREFIX}six>=1.15<2: devel/py-six
Build dependencies 3
Run dependencies 5
Required by 1
Configuration
Options name: devel_prance
| Option | Default | Description |
|---|---|---|
| CLI | off | Command-line interface support |
| FLEX | off | Use py-flex as backend |
| ICU | off | Unicode support |
| OSV | on | Use py-openapi-spec-validator as backend |
| SSV | off | Use py-swagger-spec-validator as backend |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| prance-23.6.21.0.tar.gz | 2.798776e+06 | d8c15f8ac34019751cc4945f866d8d964d7888016d10de3592e339567177cabe |
Master sites 1
- PYPI