protoc-gen-swagger-0.1.0
توضیحات
A python package for swagger annotation proto files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | protoc-gen-swagger-0.1.0 |
| نام | protoc-gen-swagger |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | universe-proton |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/universe-proton/protoc-gen-swagger |
| آدرس اینترنتی | https://pypi.org/project/protoc-gen-swagger/ |
| مجوز | Apache 2.0 |
protoc-gen-swagger
====================
.. image:: https://travis-ci.org/universe-proton/protoc-gen-swagger.svg?branch=master
:target: https://travis-ci.org/universe-proton/protoc-gen-swagger
A python package for swagger's annotation protobuf files, which are located inside `grpc-gateway <https://github.com/grpc-ecosystem/grpc-gateway>`_ repository.
`Swagger <https://swagger.io/>`_ is a popular api tool. When you import swagger proto files in your protobuf message file, you may get stuck when using the generated python code.
An import error as the following:
.. code-block::
ModuleNotFoundError: No module named 'protoc_gen_swagger'
With this package, you could forget the error.
Installation
============
We can simply use pip to install, as the following:
.. code-block:: bash
$ pip install protoc-gen-swagger
or installing from git
.. code-block:: bash
$ pip install git+https://github.com/universe-proton/protoc-gen-swagger
Maintain
=========
When the source repository `grpc-gateway <https://github.com/grpc-ecosystem/grpc-gateway>`_ is taged, we can use command `bash gen.sh <tag-version>` to update the package.
Maybe we could do some automated work in the future.
Now, this package version 0.1.0 is the same as grpc-gateway version v1.3.1 .
How to Contribute
=================
Open an `issue <https://github.com/universe-proton/protoc-gen-swagger/issues>`_, join a discussion or make a pull request.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0.0 | protobuf |
نحوه نصب
نصب پکیج whl protoc-gen-swagger-0.1.0:
pip install protoc-gen-swagger-0.1.0.whl
نصب پکیج tar.gz protoc-gen-swagger-0.1.0:
pip install protoc-gen-swagger-0.1.0.tar.gz