Skip to main content

Efesto

Pypi Travis build Codacy grade Codacy coverage Docs

A micro REST API meant to be used almost out of the box with other microservices.

It kickstarts you by providing a simple way to build a backend and expose it. Efesto uses PostgreSQL and JWTs for authentication.

Efesto follows the UNIX principle of doing one thing and well, leaving you the freedom of choice about other components (authentication, caching, rate-limiting, load balancer).

Installing

Install efesto, possibly in a virtual environment:

pip install efesto

Create a postgresql database and export the database url:

export DB_URL=postgres://postgres:postgres@localhost:5432/efesto

Export the jwt secret:

export JWT_SECRET=secret

Populate the db:

efesto install

Create an admin:

efesto create users tofu --superuser

Now you can start efesto, with either uwsgi or gunicorn:

gunicorn "efesto.App:App.run()"

Efesto should now be running:

curl http://localhost:8000/version

Read the complete documentation to find out more.

Docker

Docker images are available in the hub:

  • strangemachines/efesto:latest
  • strangemachines/efesto:2.3
  • strangemachines/efesto:2.2
  • strangemachines/efesto:2.1

Performance

Efesto performs at about 200 requests/second on a small digital ocean droplet, for requests that include JWT authentication, fetching data and printing out JSON.

You have seen 100k requests benchmarks, but don't be fooled: most benchmarks from authors are made so that their package comes to the top and do not reflect real conditions.

Download files

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

Source Distribution

efesto-2.3.2.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

efesto-2.3.2-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file efesto-2.3.2.tar.gz.

File metadata

  • Download URL: efesto-2.3.2.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/5.0.0-29-generic

File hashes

Hashes for efesto-2.3.2.tar.gz
Algorithm Hash digest
SHA256 4b6f0a6968dae6c33663e8139a021e9fe325620f875a229565b320ff7f297d1d
MD5 72b510771d5a1ca2d6673eed41a4a50e
BLAKE2b-256 052931cb7db6c3c73a04b5780e8c9b25523695caf73412446e26aa3a2a360811

See more details on using hashes here.

File details

Details for the file efesto-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: efesto-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/5.0.0-29-generic

File hashes

Hashes for efesto-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d10355fd14aeb50b8eb000632bcf9e4cb48eb2dad23795d042e792e9e54a9340
MD5 b913cc39e06eed0da2e7a424069546e2
BLAKE2b-256 efaf20e44a50b159d5231b362ca15561ee0faafea047b0baec08f4be2b4c9cb2

See more details on using hashes here.

Supported by

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