Metadata-Version: 2.4
Name: alfinx_utils
Version: 0.3.1
Summary: HTTP headers auto detection tool.
Author: Maharram
Author-email: maharram@alfinx.com
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi
Requires-Dist: httpx
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

alfinx_autho is a lightweight Python package designed to simplify authentication in FastAPI applications via HTTP headers. It automatically detects x-api-key and x-service-code headers from incoming requests and sends them, along with environment variables AUTHENTICATION_API_URL and X_SERVICE_ORIGIN_CODE, to an external authentication service for verification.

Installation

To install the package, run the following command:


pip install alfinx_utils

from alfinx import check_authentication,decrease_user_limit,save_data_on_mongo

Postman
Headers:

x-api-key: (sЙ™nin API aГ§arД±n)
x-service-code: (sЙ™nin xidmЙ™t kodun)
