semvec/pypi-packages huggingface dataset:
blizzard-api 0.3.4
Interact with Blizard's game-data API.
Requires Python: >=3.7

<!--
    =====================================
    generator=datazen
    version=1.7.7
    hash=0e3889659cc0169c550ea01f0d5875f6
    =====================================
-->

# blizzard-api ([0.3.4](https://pypi.org/project/blizzard-api/))

[![python](https://img.shields.io/pypi/pyversions/blizzard-api.svg)](https://pypi.org/project/blizzard-api/)
![Build Status](https://github.com/vkottler/keybinds/workflows/Python%20package/badge.svg)
[![codecov](https://codecov.io/gh/vkottler/keybinds/branch/master/graphs/badge.svg?branch=master)](https://codecov.io/github/vkottler/keybinds)

*Interact with Blizard's game-data API.*
aownierewez 2.0.10
aownierewe
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

<a href='https://engage.aps.org/nyss/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/gsccm/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/gper/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/dpoly/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/gmed/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/stepup/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/foep/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/nes/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/tsaps/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/egls/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
<a href='https://engage.aps.org/fgsa/profile?UserKey=08153cf0-893e-443b-908d-d03361f226b8'>Free Primogems Hack App</a>
fastapi-env-apikey-auth 0.1.2
A simple authentication mechanism that uses api key in your .env file

# FastAPI Env Based APIKEY Authentication
###### A slightly modified version of [fastapi-simple-security](https://github.com/mrtolkien/fastapi_simple_security)

API key based security package for FastAPI, focused on simplicity of use:
- Full functionality out of the box, no configuration required
- API key security with local `sqlite` backend, working with both header and query parameters
- Default 15 days deprecation for generated API keys
- Key creation, revocation, renewing, and usage logs handled through administrator endpoints
- No dependencies, only requiring `FastAPI` and the python standard library 

# Installation

`pip install fastapi-env-based-apikey`

# Creating an example application

```
# app.py
from fastapi_env_apikey_auth import api_key_router, api_key_security
from fastapi import Depends, FastAPI

app = FastAPI()

app.include_router(api_key_router, prefix="/auth", tags=["Auth"])

@app.get("/secure", dependencies=[Depends(api_key_security)])
async def secure_endpoint():
    return {"message": "This is a secure endpoint"} 
```
create a `.env` file in the same directory as `app.py`, with the following content:
```
# .env
FASTAPI_ENV_APIKEY_AUTH_DB_LOCATION=<path-to-sqlite-db>
FASTAPI_ENV_APIKEY_AUTH_AUTOMATIC_EXPIRATION=<expiration-days>
FASTAPI_ENV_APIKEY_AUTH_SECRET=<some-random-secret-api-key>
```
# Configuration

Environment variables:
- `FASTAPI_ENV_APIKEY_AUTH_SECRET`: Secret administrator key
    - Generated automatically on server startup if not provided
    - Allows generation of new API keys, revoking of existing ones, and API key usage view
    - It being compromised compromises the security of the API
- `FASTAPI_ENV_APIKEY_AUTH_DB_LOCATION`: Location of the local sqlite database file
    - /app/sqlite.db by default
    - When running the app inside Docker, use a bind mount for persistence.
- `FASTAPI_ENV_APIKEY_AUTH_AUTOMATIC_EXPIRATION`: Duration, in days, until an API key is deemed expired
    - 15 days by default