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 quickstart

Create an admin:

efesto create_user tofu --superuser

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

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

Efesto should now be running, let's make sure it is. Create a jwt with the secret you have configured. Efesto comes with an helper for that:

efesto token tofu 1000

Send a request with the token:

curl http://localhost:8000/users -H "Authorization: Bearer token"

Success! Efesto is running fine. Read the complete documentation <http://efesto.readthedocs.io>_ to find out more

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.

That said, Efesto's did not reach its maximum and a lot can be done to improve its performance.

Notes from the author

  • Efesto is not meant to be the solution to all problems. It can be quite good as a prototyping and early stage backend, less so on the long term (see below)

  • Efesto lacks some strategic features and I can only put a limited amount of time into Efesto. If you want some features done and can't contribute yourself, I can be hired.

Download files

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

Source Distribution

efesto-1.1.6.tar.gz (11.7 kB view details)

Uploaded Source

Built Distributions

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

efesto-1.1.6-py3.6.egg (36.4 kB view details)

Uploaded Egg

efesto-1.1.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: efesto-1.1.6.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for efesto-1.1.6.tar.gz
Algorithm Hash digest
SHA256 68d79490119521be03530fc18d665f94af0c212e8b5a551f96d81dc3f404d062
MD5 875d4ba77ad54b53a460f4cb55aecff4
BLAKE2b-256 b3e916f53316ff91e04198a1f2c8b85da79b843920f9b4b55034e3ea03a0ca85

See more details on using hashes here.

File details

Details for the file efesto-1.1.6-py3.6.egg.

File metadata

  • Download URL: efesto-1.1.6-py3.6.egg
  • Upload date:
  • Size: 36.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for efesto-1.1.6-py3.6.egg
Algorithm Hash digest
SHA256 1ade074dfe2beed395a333ab5f87f0b0d1e099cdefda9eabefcde2181766e669
MD5 32203787c9db51db88146d6fc46e8f2c
BLAKE2b-256 d68e8ae2971ba3a64570596348a1022ea6fbf576313f52c13d20446698dbce5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: efesto-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for efesto-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 23a30ed88820d212751e72ad8668122793320b53a1041e08e8b791084bd456ac
MD5 59f2335024602407cfd8166df2149e1a
BLAKE2b-256 b28b3bf54f5719f5a2458edf2cd0d68a2007da5b35802b71df699d8cba57c639

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