semvec/pypi-packages huggingface dataset:
flask-login-apple 0.1.2
A Flask extension to support Sign in with Apple

# Flask Apple Login

A Flask extension for integrating Apple OAuth login seamlessly into your Flask applications.

## Overview

**Flask Apple Login** is a simple and easy-to-use Flask extension that enables Apple OAuth login for your Flask applications. This extension handles the OAuth flow, token retrieval, and user authentication using Apple's secure authentication system.

## Features

- Easy integration with Flask applications
- Secure OAuth flow with Apple
- Configurable settings for client ID, team ID, key ID, and private key file
- Automatically handles the token retrieval process

## Installation

Install Flask Apple Login using pip:

```bash
pip install flask-apple-login
```

## Usage
### Quick Start
**1. Initialize your Flask application:**
```python
from flask import Flask, jsonify, request, session, redirect, url_for
from flask_login_apple import AppleLogin

app = Flask(__name__)
app.config['DEBUG'] = True

app.config['SECRET_KEY'] = 'your-secret-key'
app.config['APPLE_CLIENT_ID'] = 'your-client-id'
app.config['APPLE_TEAM_ID'] = 'your-team-id'
app.config['APPLE_KEY_ID'] = 'your-key-id'
app.config['APPLE_PRIVATE_KEY_FILE'] = '/path/to/your/private_key.pem'

apple_login = AppleLogin(app)

@app.route('/')
def index():
    return jsonify({'message': 'Hello, World!'})

@app.route('/login')
def login():
    return apple_login.authorize()

@app.route('/callback', methods=['GET', 'POST'])
def callback():
    token = apple_login.callback()
    return f'Logged in with token: {token}'
```

**2. Run your Flask application:**
```bash
flask run
```

## Configuration
Add the following configuration variables to your Flask app:

- **APPLE_CLIENT_ID**: Your Apple client ID.
- **APPLE_TEAM_ID**: Your Apple team ID.
- **APPLE_KEY_ID**: Your Apple key ID.
- **APPLE_PRIVATE_KEY_FILE**: Path to your private key file.
fortifypass 1.0
fortifypass: A library for evaluating password strength and estimating cracking time.
Requires Python: >=3.6


fortifypass 1.0

A library for evaluating password strength and estimating cracking time.

To install use pip install fortifypass

---

### Fortifypass

Fortifypass is a Python library that provides functionalities to assess the strength of passwords based on length, character sets, and common patterns. It also estimates the time required to crack a password using brute-force methods. Use Fortifypass to enhance security measures in your applications by ensuring stronger passwords.

Fortifypass includes two main functions:
- `fortifypass.calculate_password_strength` evaluates the strength of a given password.
- `fortifypass.calculate_cracking_time` estimates the time required to crack a given password.

#### Example

Here is an example of how to use the Fortifypass library in your Python programs:

```python
from fortifypass import calculate_password_strength, calculate_cracking_time

strength = calculate_password_strength(password)
cracking_time = calculate_cracking_time(password)

print(f"Password: {password} - Strength: {strength} - Estimated Cracking Time: {cracking_time}")