Skip to main content

Build a secure and RESTful hypermedia API.

Project description

Build a secure and RESTful hypermedia API.

Hypr. is an open-source framework to empower you to build modern webservices and let your projects embrace the hyperconnectivity era with no concession on the security.

Driven by concepts such as KISS and DRY, getting started with Hypr. is a matter of minutes. Scroll this page to discover some of the included features.

An example before going further

from hypr import Hypr
from hypr.models import SQLiteModel
from hypr.providers import CRUDProvider


class User(SQLiteModel):
    """A simple user."""

    def __init__(self, name):
        self.name = name


class UserProvider(CRUDProvider):
    """A CRUD provider for User."""

    __model__ = User


app = Hypr()
app.add_provider(UserProvider, '/users', '/users/<int:id>')

if __name__ == '__main__':

    app.run()

Running this example will start a stand-alone development server listening on port 5555. The created API lets you to query, create, update or delete User objects.

If you want to give a try, execute the following commands :

Create a user:

$ curl -XPOST http://127.0.0.1:5555/users -d '{"name": "dave"}'

List registered users:

$ curl -XGET http://127.0.0.1:5555/users

Get a specific user:

$ curl -XGET http://127.0.0.1:5555/users/1

Where 1 is the user’s id.

Update a specific user:

$ curl -XPUT http://127.0.0.1:5555/users/1 -d {"name": "hal"}

Delete a user:

$ curl -XDELETE http://127.0.0.1:5555/users/1

This example is pretty useless but illustrates perfectly the simplicity and philosophy behind Hypr.

To discover how to take advantage of all the features included in Hypr, check out the project documentation. You also can contribute to the project on Github by reporting bugs or submitting features you want to see to appear.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypr-0.8.2.tar.gz (26.5 kB view hashes)

Uploaded Source

Built Distribution

hypr-0.8.2-py3-none-any.whl (37.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page