thewall89 / inducoapi Goto Github PK
View Code? Open in Web Editor NEWA simple python module to generate OpenAPI Description Documents by supplying request/response bodies.
License: Apache License 2.0
A simple python module to generate OpenAPI Description Documents by supplying request/response bodies.
License: Apache License 2.0
https://spec.openapis.org/oas/v3.1.0
Add new parameter to select the OpenApi version. Defaults to 3.1.0 which is the latest.
When running with openapi-spec-validator v0.5.0, the following occurs, so it looks like there have been some breaking changes.
> python3.10 -m inducoapi
Traceback (most recent call last):
File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.10/site-packages/inducoapi/__main__.py", line 20, in <module>
from openapi_spec_validator.exceptions import OpenAPIValidationError
ImportError: cannot import name 'OpenAPIValidationError' from 'openapi_spec_validator.exceptions' (/usr/lib/python3.10/site-packages/openapi_spec_validator/exceptions.py)
The entry point / script defined at https://github.com/TheWall89/inducoapi/blob/master/pyproject.toml#L21 is incorrect.
The result is:
$ my-script
Traceback (most recent call last):
File "/usr/bin/my-script", line 33, in <module>
sys.exit(load_entry_point('inducoapi==2.0.0', 'console_scripts', 'my-script')())
File "/usr/bin/my-script", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 173, in load
return functools.reduce(getattr, attrs, module)
AttributeError: module 'inducoapi' has no attribute 'main'
poetry build
and poetry publish
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.