semvec/pypi-packages huggingface dataset:
quart-bcrypt 0.0.9
Quart-Bcrypt is a Quart extension that provides bcrypt hashing utilities for your application.
License: MIT
Requires Python: >=3.10

# Quart-Bcrypt

![Quart Bcrypt Logo](logos/logo.png)

Quart-Bcrypt is a Quart extension that provides bcrypt hashing utilities for
your application. Orginal code from Flash-Bcrypt, which can be found at
https://github.com/maxcountryman/flask-bcrypt

Due to the recent increased prevelance of powerful hardware, such as modern
GPUs, hashes have become increasingly easy to crack. A proactive solution to
this is to use a hash that was designed to be "de-optimized". Bcrypt is such
a hashing facility; unlike hashing algorithms such as MD5 and SHA1, which are
optimized for speed, bcrypt is intentionally structured to be slow.

For sensitive data that must be protected, such as passwords, bcrypt is an
advisable choice.

## Installation

Install the extension with the following command:

    $ pip3 install quart-bcrypt

## Usage

To use the extension simply import the class wrapper and pass the Quart app
object back to here. Do so like this:

    from quart import Quart
    from quart_bcrypt import Bcrypt
    
    app = Quart(__name__)
    bcrypt = Bcrypt(app)

Two primary hashing methods are now exposed by way of the bcrypt object. Note that you
need to use decode('utf-8') on generate_password_hash().

    pw_hash = bcrypt.generate_password_hash('hunter2').decode('utf-8')
    bcrypt.check_password_hash(pw_hash, 'hunter2') # returns True

## Documentation

View documentation at https://quart-bcrypt.readthedocs.io/en/latest/
timeutilities 1.2
Minimal utilities for time managements and manipulation
License: MIT
Requires Python: >=3

# timeutilities

A morden, robust and flexible way to represent and manipulate time, Including operations involving days, hours, minutes, and seconds. It supports `datetime` conversions and tick operations for real-time tracking. Along with arithmetic operations to facilitate easy time calculations.

## Installation

```bash
pip3 install timeutilities
```

## Examples

- Get current time

```python
from timeutilities import Time
now = Time.now()
```

- From DateTime

```python
from timeutilities import Time
from datetime import datetime
now = Time.from_datetime(datetime.now())
```

- Arithmetic operations

```python
from timeutilities import Time
from time import sleep
previous_time = Time.now()
sleep(5)
current_time = Time.now()
#Addition
total_time = current_time + previous_time
print(total_time)
#Subtraction
difference = current_time - previous_time
print(total_time)
#Comparison
print(current_time > previous_time)
print(current_time < previous_time)
print(current_time >= previous_time)
print(current_time <= previous_time)
```