semvec/pypi-packages huggingface dataset:
httpsrv 1.0b1
Simple http server for API mocking during automated testing
License: MIT
Keywords: api http mock testing

Httpsrv
=======

Simple http server for API mocking during automated testing
Plays nicely with httpsrvvcr_ library for automated request recording


Example usage
-------------

A typical usage pattern would probably look like the one below.

Using requests_ library::

    import unittest
    import requests
    from httpsrv import Server

    server = Server(8080).start()

    class MyTestCase(unittest.TestCase):
        def setUp(self):
            server.reset()

        def test_should_get_hello(self):
            # this means that server will respond once upon GET request
            # further GET requests on this path will get 500
            server.on_any('GET', '/').text('hello')
            res = requests.get('http://localhost:8080')
            assert res.text == 'hello'

        def test_should_always_respond_to_options(self):
            # this means that any OPTIONS request will get status 200
            # such behavior is particulary useful when mocking preflight queries
            server.on_any('OPTIONS', always=True).status(200)
            res = requests.get('http://localhost:8080')
            assert res.status_code == 200

        def test_should_respond_to_json(self):
            # this means that server will respond to the POST request
            # containing target json document in its body
            server.on_json('POST', '/users', {'name': 'John Doe'}).json(
                {'id': 1, 'name': 'John Doe'}, status=201)
            res = requests.post('http://localhost:8080/users', json={'name': 'John Doe'})
            assert res.status_code == 201

For more details and full list of ``on_*`` methods see `API documentation`_


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

::

    pip install httpsrv


Documentation
-------------

http://httpsrv.readthedocs.org


.. _requests: http://docs.python-requests.org/en/master/
.. _httpsrvvcr: https://httpsrvvcr.readthedocs.io/
.. _API documentation: http://httpsrv.readthedocs.io/en/latest/api.html
knapsack01 0.0.1
Solving 0/1 Knapsack Problem
License: MIT
Keywords: algorithm knapsack dynamic programming

| |Build Status|

Knapsack01
--------------

Generic 0-1 Knapsack Problem Solver.

    | Given a set of items, each with a weight and a value, Knapsack01
    | determine the number of each item to include in a collection so
      that the
    | total weight is less than or equal to a given limit and the total
      value is
    | as large as possible.

Requirements
------------

-  Python 3.4 (tested)

Goal
----

| The ultimate goal of this library is to provide a generic interface
| for solving the Knapsack problem for variety of applications.

Code sample
-----------

| Lets say, given the capacity (10) of a team and a list of Jira tickets
  with
| story points and priorities, I would like to know what tickets I want
| to do in the next sprint. Note that you can put multiple parameters
  for
| evaluating the importance of each ticket.

.. code:: python

    from knapsack01.knapsack import Item
    from knapsack01.knapsack import Knapsack

    tickets = [
        Item('A', 1, [1, 4, 8, 23, 6]),
        Item('B', 3, [4]),
        Item('C', 4, [5]),
        Item('E', 5, [7])
    ]
    k = Knapsack(10)
    k.items = tickets
    jira_tickets_next_sprint = k.pick_items()

Contributors
------------

-  Paulo Kuong (`@pkuong`_)

.. _@pkuong: https://github.com/paulokuong

.. |Build Status| image:: https://travis-ci.org/paulokuong/knapsack01.svg?branch=master
   :target: https://travis-ci.org/paulokuong/knapsack01
untt 0.1.1
Right, it's uEntity.
License: MIT
Keywords: model orm entity untt

# untt

<a href="http://untt.n9co.de/">
    <img src="https://raw.githubusercontent.com/n9code/untt/master/docs/logo/logo.png"
         alt="untt Logo"
         align="right"
         width=70
         height=70 />
</a>

[![PyPI](https://img.shields.io/pypi/v/untt.svg)](https://pypi.python.org/pypi/untt)
[![Build Status](https://travis-ci.org/n9code/untt.svg?branch=master)](https://travis-ci.org/n9code/untt)
[![Coverage Status](https://coveralls.io/repos/github/n9code/untt/badge.svg?branch=master)](https://coveralls.io/github/n9code/untt?branch=master)
[![Code Health](https://landscape.io/github/n9code/untt/master/landscape.svg?style=flat)](https://landscape.io/github/n9code/untt/master)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/n9code/untt/master/LICENSE)
smartmob-agent 0.3.0
Remote Procfile runner
License: MIT
Keywords: procfile asyncio

smartmob-agent - remote process runner
======================================

.. image:: https://img.shields.io/pypi/pyversions/smartmob-agent.svg
   :target: https://pypi.python.org/pypi/smartmob-agent
   :alt: Supported Python versions

.. image:: https://badge.fury.io/py/smartmob-agent.svg
   :target: https://pypi.python.org/pypi/smartmob-agent
   :alt: Latest PyPI version

.. image:: https://readthedocs.org/projects/smartmob-agent/badge/?version=latest
   :target: http://smartmob-agent.readthedocs.org/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/l/smartmob-agent.svg
   :alt: Released under MIT license

.. image:: https://img.shields.io/travis/smartmob-project/smartmob-agent.svg
   :target: https://travis-ci.org/smartmob-project/smartmob-agent
   :alt: Current build status

.. image:: https://coveralls.io/repos/smartmob-project/smartmob-agent/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/smartmob-project/smartmob-agent?branch=master
   :alt: Current code coverage


Description
-----------

This project is a network agent designed to remotely run applications that
follow the `The Twelve-Factor App`_.  All that is required of applications is
that they can be uploaded to the agent over the network and that they contain a
Procfile_ which can be used to start the application's processes.

.. _`The Twelve-Factor App`: http://12factor.net/
.. _Procfile: http://smartmob-rfc.readthedocs.org/en/latest/1-procfile.html


Documentation
-------------

You can find the documentation on ReadTheDocs:

- latest_

.. _latest: http://smartmob-agent.readthedocs.org/en/latest/


Contributing
------------

We welcome pull requests!  Please open up an issue on the `issue tracker`_ to
discuss, fork the project and then send in a pull request :-)

Feel free to add yourself to the ``CONTRIBUTORS`` file on your first pull
request!

.. _`issue tracker`: https://github.com/smartmob/smartmob-agent/issues


License
-------

The source code and documentation is made available under an MIT license.  See
``LICENSE`` file for details.
tdxutil 0.0.6
Tools for working with container types, command data operations, and concise exception handling
License: MIT

tdxutil: small tools for working with datatypes, data, and exceptions
---------------------------------------------------------------------

In `collections.py` there are some tools for working with lists,
sets, dicts, and iterables more declaratively.

In `data.py` there are some functiions to more concisely read and
write yaml in the most common use cases.

In `exceptions.py` there are some error handling tools. See the
`calldecorators` package if you'd prefer to have a decorator
api.