efesto-2.3.4
توضیحات
RESTful (micro)server that can generate an API in minutes.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | efesto-2.3.4 |
| نام | efesto |
| نسخه کتابخانه | 2.3.4 |
| نگهدارنده | ['Jacopo Cascioli'] |
| ایمیل نگهدارنده | ['jacopo@jacopocascioli.com'] |
| نویسنده | Jacopo Cascioli |
| ایمیل نویسنده | jacopo@jacopocascioli.com |
| آدرس صفحه اصلی | https://github.com/strangemachines/efesto |
| آدرس اینترنتی | https://pypi.org/project/efesto/ |
| مجوز | GPL-3.0 |
# Efesto
[](https://pypi.python.org/pypi/efesto)
[](https://travis-ci.org/strangemachines/efesto)
[](https://app.codacy.com/app/strangemachines/efesto)
[](https://app.codacy.com/app/strangemachines/efesto)
[](https://efesto.strangemachines.io)
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:
```sh
pip install efesto
```
Create a postgresql database and export the database url:
```sh
export DB_URL=postgres://postgres:postgres@localhost:5432/efesto
```
Export the jwt secret:
```sh
export JWT_SECRET=secret
```
Populate the db:
```sh
efesto install
```
Create an admin:
```sh
efesto create users tofu --superuser
```
Now you can start efesto, with either uwsgi or gunicorn:
```sh
gunicorn "efesto.App:App.run()"
```
Efesto should now be running:
```sh
curl http://localhost:8000/version
```
Read the complete [documentation](http://efesto.strangemachines.io) to find out more.
## Docker
Docker images are available in the hub:
- `strangemachines/efesto:latest`
- `strangemachines/efesto:latest-meinheld`
- `strangemachines/efesto:2.3`
- `strangemachines/efesto:2.3-meinheld`
- `strangemachines/efesto:2.2`
- `strangemachines/efesto:2.1`
## Performance
Efesto performs at about 300 requests/second on the smallest 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.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0,<1.1 | bassoon |
| >=7.0,<7.1 | click |
| >=2.0,<2.1 | falcon |
| >=1.1.7,<1.2.0 | falcon-cors |
| >=0.3,<0.4 | loguru |
| >=0.6,<0.7 | msgpack |
| >=3.9,<3.10 | peewee |
| >=2.7,<2.8 | psycopg2-binary |
| >=0.6,<0.7 | python-rapidjson |
| >=1.6.4,<1.7.0 | pyjwt |
| >=0.15,<0.16 | ruamel.yaml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl efesto-2.3.4:
pip install efesto-2.3.4.whl
نصب پکیج tar.gz efesto-2.3.4:
pip install efesto-2.3.4.tar.gz