semvec/pypi-packages huggingface dataset:
speedy 0.23
Fast, non-blocking RPC system.
License: BSD

Speedy - A Fast RPC System for Python
=====================================

A fast non-blocking RPC library for Python.

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

    pip install [--user] speedy

or

    easy_install speedy

Usage
-----
##### Imports

    import speedy
    from speedy import zeromq

##### Server

    class MyServer(speedy.Server):
        def foo(self, handle, request):
            handle.done(do_something(request.foo, request.bar))
    server = MyServer(zeromq.server_socket(('127.0.0.1', port)))
    # or use -1 to have the server grab an open port
    # server = MyServer(zeromq.server_socket(('127.0.0.1', -1)))
    server.serve() # blocks until server exits

##### Client

    client = speedy.Client(zeromq.client_socket(('127.0.0.1', server_port)))

    # requests are arbitrary python objects
    request = { 'foo' : 123, 'bar' : 456 }

    future = client.foo(request)

    # Wait for the result.   If the server encountered an error,
    # an speedy.RemoteException will be thrown.
    result = future.wait()

Feedback
--------

Questions, comments: <power@cs.nyu.edu>
llvmmath 0.1.1
LLVM math library
License: BSD

llvmmath
====================================

The purpose of this project is to provide portable math functions, many of
which are in C99 and not available on all platforms. It is based on NumPy's
umath and tries to support all floating point and complex types.

The library can be compiled with any C compiler, or to LLVM assembly using
Clang, to be linked into modules containing functions for jitting.

Installing
==========

.. code-block:: bash

    $ git clone git@github.com:ContinuumIO/llvmmath.git
    $ cd llvmmath
    $ python setup.py install

Documentation
=============

[Available Symbols](docs/symbols.rst)

[Public API](docs/api.rst)
requestions 0.0.7
Serialization for Requests using JSON.
License: BSD

# Requestions

Requestions is a serialization library for [Requests](https://github.com/kennethreitz/requests) using JSON. Also, requestions includes a decorator called httpetrified for storing responses and replaying them in the future for HTTP testing without the live interwebz.

## Installing

Simple.

``` bash
sudo pip install requestions
```

or,

``` bash
sudo python setup.py install
```

## Usage

``` python
# responses
original_response = requests.get("http://httpbin.org/get")
serialized_response = requestions.write_response(original_response)
response = requestions.read_response(serialized_response)

# requests
original_request = requests.models.Request(url="http://httpbin.org/post", method="POST")
serialized_request = requestions.write_request(original_request)
request = requestions.read_request(serialized_request)
```

## Decorator

Save responses in a json file, then use them later to make unit testing not so miserable.

``` python
import json
import requests
from requestions import httpetrified

def get_current_ip_address(self):
    "Abuses some poor sap's ip address detection service."
    response = requests.get("http://jsonip.com")
    return response.json()["ip"]

@httpetrified("samples/helpers/jsonip-request.json")
def test_get_current_ip_address(self):
    self.assertEqual("127.0.0.1", get_current_ip_address())
```

## Changelog

* 0.0.7 - fix CaseInsensitiveDict problem
* 0.0.5 - fix broken setup.py, gah
* 0.0.4 - fix test for both requests==0.14.2 and requests>=1.0.3
* 0.0.3 - httpetrified decorator
* 0.0.1 - initial commit

## Alternatives

* [requests-vcr](https://github.com/sigmavirus24/requests-vcr)

## License

BSD.