Skip to main content

Efesto

Pypi Travis build Codacy grade Codacy grade

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.1.tar.gz (37.5 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.1-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: efesto-2.3.1.tar.gz
  • Upload date:
  • Size: 37.5 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.1.tar.gz
Algorithm Hash digest
SHA256 e7104a01994bdb0f6a3fef70bfb671fcf02e859caa9632f1fa11dec226c1f59e
MD5 6e8364f0526d85a51581f6371ef32cd0
BLAKE2b-256 852dd9b59f7469d55743fddc2fcfb25deba4c0eee69736b64a88d9dea374dd7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: efesto-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 46.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e844c61b826c4de1e48bf4890a9fa435f5717b4f9abebc1c9cc766b4d95828d
MD5 edc96c58150b37836dda15c9523c9270
BLAKE2b-256 f1a80ff7f5268741799705f7b2ae32272458eeefe5460dff2130c59e0db207ca

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 Sentry Error logging StatusPage Status page