client and validator for OpenAPI3 3.0, OpenAPI 3.1, Swagger 2.0
Project description
aiopenapi3
A Python OpenAPI 3 Specification client and validator for Python 3.
This project is a fork of Dorthu/openapi3.
Features
- implements …
- Swagger 2.0
- OpenAPI 3.0.3
- OpenAPI 3.1.0
- description document parsing via pydantic
- recursive schemas (A.a -> A)
- request body model creation via pydantic
- pydantic compatible "format"-type coercion (e.g. datetime.interval)
- additionalProperties (limited to string-to-any dictionaries without properties)
- response body & header parsing via pydantic
- blocking and nonblocking (asyncio) interface via httpx
- SOCKS5 via httpx_socks
- tests with pytest & fastapi
- providing access to methods and arguments via the sad smiley ._. interface
- Plugin Interface/api to modify description documents/requests/responses to adapt to non compliant services
- YAML type coercion hints for not well formatted description documents
- Description Document dependency downloads (using the WebLoader)
- logging
export AIOPENAPI3_LOGGING_HANDLERS=debug
to get /tmp/aiopenapi3-debug.log
- logging
Documentation
Running Tests
This project includes a test suite, run via pytest
. To run the test suite,
ensure that you've installed the dependencies and then run pytest
in the root
of this project.
PYTHONPATH=. pytest --cov=./ --cov-report=xml .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiopenapi3-0.4.0a3.tar.gz
(56.6 kB
view hashes)
Built Distribution
Close
Hashes for aiopenapi3-0.4.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee37f62c41a5fccb857e696e61e7aa72d8d3444fa164ddb104711ee8277cb3c5 |
|
MD5 | 1b92e68eadaac8ef4cd4d96b5c88bfa3 |
|
BLAKE2b-256 | 087163a5c97c3015f707a2ed32a560faea62dcde21d3c5d9ff3a2a80ac88e200 |