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.4.tar.gz (27.0 kB view details)

Uploaded Source

File details

Details for the file hypr-0.8.4.tar.gz.

File metadata

  • Download URL: hypr-0.8.4.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hypr-0.8.4.tar.gz
Algorithm Hash digest
SHA256 5eb30cd1bb7145e44b510955dee4805c33148ec9c1a37193b9955a9258e783c2
MD5 370a2eac68295d5d21eba8b0b0ae3a4c
BLAKE2b-256 fa2c5de0922216191b846d06e168da8286c4a08e900b08a5991697b9bd6ddc15

See more details on using hashes here.

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