semvec/pypi-packages huggingface dataset:
grpc-proto-validator 0.1.2.dev0
grpc proto validator.
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

python grpc validator
~~~~~~~~~~~~~~~~~~~~~
plugin of validate request field for python grpc server.

.. image:: https://travis-ci.com/v1c77/py_grpc_validator.svg?branch=master
    :target: https://travis-ci.com/v1c77/py_grpc_validator
.. image:: https://codecov.io/gh/v1c77/py_grpc_validator/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/v1c77/py_grpc_validator

TODO:
    - type hint for different field type.(such as only string field can do
      a string length check.)
    - test case & Makefile.
    - a cli to help protoc with `validator.proto`.
    - anymore bugs or improves?



How To
######

1. install

.. code-block:: bash

    pip install grpc-proto-validator

2. copy **validator.proto** to your project proto path and do protoc.(TODO a
cli help to copy or build proto.)

 The **validator.proto** is included in this package, you can find it in
 python site-packages path.


A example on how to generate the grpc files:

.. code-block:: bash

    $ python -m grpc_tools.protoc \
      --proto_path={/path/to/validator/proto} \
      --proto_path={/path/to/your/project/proto} \
      --python_out={/path/to/project/src} \
      --grpc_python_out={/path/to/project/src} \
      path/to/your.proto



3. change your service and \*_pb2 code.

To avoid protobuf import error, change one line in the generated
python file(like `hello_bro_pb2.py`).

from:

.. code-block:: python

    import validator_pb2 as validator__pb2

to:

.. code-block:: python

    import grpc_proto_validator.validator_pb2 as validator__pb2.

Then create service with validator:

.. code-block:: python

    import six
    from grpc_validator.validator import ValidateMetaclass

    class YourService(six.with_metaclass(ValidateMetaclass,
                             YourService_pb2_grpc.YourServiceServer)):

        def behaviour1(self, request, context)
            ...


Also, you can select individual service handler to do the field check:

.. code-block:: python

    from grpc_validator.validator import validator_wrap


    class YourService(YourService_pb2_grpc.YourServiceServer):

        def behaviour(self, request, context):
            """request will not be validated."""
            ...

        @validator_wrap
        def behaviour2(self, request, context):
            ...



Notice
######

Someone has used go-proto-validator_ before will notice
that I almost reuse its proto file which make it easier
to co-work with our golang service team.

But please don't mix these two proto files.
**!!!THEY ARE NOT IN COMMON USE!!!**

Any help or idea is favourably receive. Please just make a issue_.

LICENSE
=======
MIT_.

.. _ecosystem: https://github.com/grpc-ecosystem/go-grpc-middleware/tree/master/validator
.. _go-proto-validator: https://github.com/mwitkow/go-proto-validators
.. _issue: https://github.com/v1c77/py_grpc_validator/issues/new
.. _MIT: https://github.com/v1c77/py_grpc_validator/blob/master/LICENSE
launchpad-cli 0.1.7
CLI tools for Launchpad and PPA
License: MIT

=============
launchpad-cli
=============

.. image:: https://travis-ci.org/norioxkimura/launchpad-cli.svg?branch=master
    :target: https://travis-ci.org/norioxkimura/launchpad-cli

CLI tools for Launchpad and PPA

License
-------


MIT License

Copyright (c) 2018 Norio Kimura

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
django-autocert 0.1.7
Automatic SSL certificates from Let's Encrypt for Django projects
License: MIT
Keywords: django ssl certificate acme

Django Autocert is a Django app to automatically obtain and renew X.509
(i.e. TLS or SSL) certificates from Let's Encrypt or other certificate
authorities that support the `ACME
protocol <https://en.wikipedia.org/wiki/Automated_Certificate_Management_Environment>`__.

Requirements
------------

* Django >=1.8 
* ``django.contrib.sites`` in your INSTALLED\_APPS

Installation
------------

#. ``pip install django-autocert``
#. Add ``autocert`` to ``INSTALLED_APPS``
#. Add ``autocert.middleware.AcmeChallengeMiddleware`` to
   ``MIDDLEWARE_CLASSES``, ahead of ``django.middleware.security.SecurityMiddleware`` if it's present.
#. ``./manage.py migrate``

Further Installation Notes
~~~~~~~~~~~~~~~~~~~~~~~~~~

django-autocert requires `cryptography <https://cryptography.io/>`__
which has `platform-specific installation
requirements <https://cryptography.io/en/latest/installation/>`__ for
Linux and macOS:

Debian and Ubuntu


``sudo apt-get install build-essential libssl-dev libffi-dev python-dev``

RHEL/Fedora


``sudo yum install gcc libffi-devel python-devel openssl-devel``

macOS


``brew install openssl env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography``

License
-------

django-autocert is MIT licensed

Authors
-------

Patrick Farrell @farrepa on Github and
`Twitter <https://twitter.com/farrepa/>`__