semvec/pypi-packages huggingface dataset:
trendy 0.3.0
A library for interacting with Trend Deep Security API
License: MIT

# Introduction

A python library for interacting with the Trend Deep Security Management API.


# Usage

The `Connection` class is the main entry point.  It is designed to be used as a context manager to ensure that the
connection is closed cleanly and consistently.

Example:

```
with Connection(wsdl, user, pass) as trend:
    for profile in  trend.security_profiles.all():
        profile.rules = trend.firewall_rules.by_ids(profile.firewallRules.item)
```

See the Trend API documention for more details on the objects and methods available.

# Contributing

Make a fork, fix and send a Pull Request.

# Hacking

Create a new virtual environment and install the required packages

```
virtualenv venv
source ./venv/bin/activate
python setup.py install
```

Run the unit tests

```
python -m unittest discover
```
or
```
python setup.py test
```
python-package-example 0.1
An example python package
License: MIT

python-package-example

This is a minimal python package, for use alongside the lesson: https://github.com/BillMills/pythonPackageLesson

Contributing:

Please do! Guidelines:

 - This lesson is for beginners. Yes there are plenty of super fancy things we don't cover here; someday, we'll make a different, super fancy lesson to teach those things.
 - Max 100 lines or 500 words per PR please.
 - Open an issue or empty PR first to talk about controversial changes.
wsgitest 0.2.0
Standalone WSGI server for running tests purpose.
License: MIT
Keywords: testing test server

wsgitest
========

|Build Status| |Coverage Status|


You can use `wsgitest` to start a HTTP server for a WSGI application and
control the process:

.. code-block:: python

    @Request.application
    def application(request):
        return Response('Hello World!')

    class AppServerTestCase(TestCase):
        def test_hello_app(self):
            server = WSGITestServer.create(application)
            try:
                response = requests.get(server.application_url)
                self.assertEqual(response.status_code, 200)
                self.assertEqual(response.content, b"Hello World!")
            finally:
                server.terminate()

        def test_hello_app_reference(self):
            server = WSGITestServer.create("tests.test_server.application")
            try:
                response = requests.get(server.application_url)
                self.assertEqual(response.status_code, 200)
                self.assertEqual(response.content, b"Hello World!")
            finally:
                server.terminate()

The method `WSGITestServer.create()` initialize a `multiprocessing.Process`_
and wait for the server startup.

You can use server as a context manager to avoid that tests get stucked when
you forget to "terminate" server:

.. code-block:: python

    @Request.application
    def application(request):
        return Response('Hello World!')

    class AppServerTestCase(TestCase):
        def test_hello_app(self):
            with WSGITestServer(application) as server:
                response = requests.get(server.application_url)
                self.assertEqual(response.status_code, 200)
                self.assertEqual(response.content, b"Hello World!")

You can also start server with an specific host/ip or TCP port:

.. code-block:: python

    @Request.application
    def application(request):
        return Response('Hello World!')

    class AppServerTestCase(TestCase):
        def test_hello_app(self):
            with WSGITestServer(application, "0.0.0.0", 5000) as server:
                response = requests.get(server.application_url)
                self.assertEqual(response.status_code, 200)
                self.assertEqual(response.content, b"Hello World!")


.. _multiprocessing.Process: https://docs.python.org/3/library/multiprocessing.html#the-process-class


.. |Build Status| image:: https://travis-ci.org/osantana/wsgitest.png?branch=master
   :target: https://travis-ci.org/osantana/wsgitest
.. |Coverage Status| image:: https://coveralls.io/repos/osantana/wsgitest/badge.svg?branch=master
   :target: https://coveralls.io/r/osantana/wsgitest?branch=master