Skip to main content

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.

Metadata

Release files for Hypr 0.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Hypr 0.8.4
File Size Uploaded
hypr-0.8.4.tar.gz 27.0 kB Details

Release files / hypr-0.8.4.tar.gz

Download URL hypr-0.8.4.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5eb30cd1bb7145e44b510955dee4805c33148ec9c1a37193b9955a9258e783c2
BLAKE2b-256 checksum
How to use checksums
fa2c5de0922216191b846d06e168da8286c4a08e900b08a5991697b9bd6ddc15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.8.4 This release

1 release file

0.8.3

1 release file

0.8.2

2 release files

0.8.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page