semvec/pypi-packages huggingface dataset:
pointlessutils 0.1.5
Pointless utilities for python.
License: MIT
Requires Python: >=3.8,<4.0

# Pointless Utils

A collection of utilities that are (probably) pointless.

## Decorators

There are currently 6 pointless decorators available to use:

- `@none` - Causes the function to always return `None`
- `@true` - Causes the function to always return `True`
- `@false` - Causes the function to always return `False`
- `@maybe` - Causes the function to return a random choice of `True` or `False`
- `@never` - The function will never return and will block indefinitely
- `@always` - The function is now a generator that indefinitely yields `True`
- `@alwaysv(value)` - The function is now a generator that indefinitely yields the given value

These decorators can be used on either normal or async functions. For example:

```py
@maybe
def ex_1():
    pass

@maybe
async def ex_2():
    pass
```
sha512-crypt 0.1.1
Python binding to Rust sha-crypt password hashing crate
License: MIT

# sha512-crypt

![CI](https://github.com/messense/sha512-crypt/workflows/CI/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/sha512-crypt.svg)](https://pypi.org/project/sha512-crypt)

Python binding to Rust [sha-crypt](https://github.com/RustCrypto/password-hashes/tree/master/sha-crypt) password hashing crate.


## Installation

```bash
pip install sha512-crypt
```

## Usage

```python
import sha512_crypt

password = 'abc'
hashed = sha512_crypt.encrypt(password)
assert sha512_crypt.verify(password, hashed), 'wrong password'
```

## License

This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.
hyperform 0.4
A non-terrible Python form library
License: MIT
Requires Python: <4.0,>=3.7

![HyperForm](header.png)

HyperForm is a library to make far easier to create beautiful, semantically rich, syntactically awesome, readily stylable and wonderfully accessible HTML forms in your Python web application.

**Documentation**: https://jpsca.github.io/hyperform/


## How HyperForm is different

- A field isn't tied to a specific HTML tag, so can be presentend in multiple ways. Even the same form can be used in different contexts and have different widgets and styles on each.

- Incredible easy to integrate with any ORM (object-relational mapper). Built-in adaptators for SQLAlchemy and Pony.

- Many commonly used built-in validators, and you can also write simple functions to use as custom ones.

- Any field can accept multiple values; as a list or as a comma-separated text.

- All error messages are editable. We are not robots, the tone of the messages must be able to change or to be translated.


## Just show me how it looks

```python
from hyperform  import Form, Email, Text


class CommentForm(Form):
    email = Email(required=True, check_dns=True)
    message = Text(
    	LongerThan(5, "Please write a longer message"),
    	required=True
    )


def comment():
    form = CommentForm(request.POST)
    if request.method == "POST" and form.validate():
    	data = form.save()
        ...
    return render_template("comment.html", form=form)

```