Skip to main content

Elefantolib for FastAPI

NOTE: Only for this library developers. After clone this repository you should run command:

git config core.hooksPath .githooks

Installation

poetry add elefantolib-fastapi

Example

Prepare

  • Add environmental variables
SECRET=
ALGORITHM=
ISSUER=
  • Defaults:

    • SECRET - not set, this is required
    • ALGORITHM=HS256
    • ISSUER=Consumer

Create it

  • Create a file main.py with:
from elefantolib_fastapi.requests import Request
from elefantolib_fastapi.routes import APIRoute

from fastapi import FastAPI

app = FastAPI()

app.router.route_class = APIRoute


@app.get('/')
def index(request: Request):
    # TODO something
    response = request.pfm.services.some_service_name.get('path-to-endpoint')
    return response

Metadata

Release files for elefantolib-fastapi 0.9.2

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

Source distribution (sdist)

Source distribution for elefantolib-fastapi 0.9.2
File Size Uploaded Provenance Actions
elefantolib_fastapi-0.9.2.tar.gz 3.7 kB Without provenance Details for elefantolib_fastapi-0.9.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for elefantolib-fastapi 0.9.2
File Interpreter ABI Platform Actions
elefantolib_fastapi-0.9.2-py3-none-any.whl Python 3 none any Details for elefantolib_fastapi-0.9.2-py3-none-any.whl

Total release size: 8.7 kB

Release files / elefantolib_fastapi-0.9.2.tar.gz

Download URL elefantolib_fastapi-0.9.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
adb737d2b93008967774b0d2193e02ea34e5d74cfccb028706b32c6f76f96557
BLAKE2b-256 checksum
How to use checksums
e5188fd641489201e9d572e816b5dc9ad7d0c04b76f40c18ac5d4f9bb51786b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.13 Linux/6.2.0-1015-azure

Release files / elefantolib_fastapi-0.9.2-py3-none-any.whl

Download URL elefantolib_fastapi-0.9.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96e8b5aaba8c3e47d93ceee052aad11901b54e42ffd59e688033620a5cfee0d9
BLAKE2b-256 checksum
How to use checksums
65c4f61693301a0ae9d59efa8cf09f9d56fbce142e30649949ea3707ef97efd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.13 Linux/6.2.0-1015-azure

Security for elefantolib-fastapi 0.9.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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