semvec/pypi-packages huggingface dataset:
pkce 1.0.3
PKCE Pyhton generator.
License: MIT
Requires Python: >=3

# pkce (Proof Key for Code Exchange)

Simple Python module to generate PKCE code verifier and code challenge.


## Installation

```bash
pip install pkce
```

## Usage

```python
>>> import pkce
>>> code_verifier, code_challenge = pkce.generate_pkce_pair()
```

```python
>>> import pkce
>>> code_verifier = pkce.generate_code_verifier(length=128)
>>> code_challenge = pkce.get_code_challenge(code_verifier)
```

## Additional information

Spec for the PKCE protocol can be found [here](https://tools.ietf.org/html/rfc7636).
djangocms-plus-forms 0.1.2
A generic form plugin for the djangocms (plus) framework.
License: MIT

# Django Plus Forms

> Generic form creation through plugins.


**Quickstart**

`pip install git+https://github.com/InQuant/djangocms-plus-forms`

You also need to add
```python
INSTALLED_APPS = [
    ...
    'plusforms',
    'django.forms', # if not already included
    ...
]
```
to INSTALLED_APPS

### How to hook into submit (Example)
```python
from cms.plugin_pool import plugin_pool
from plusforms.cms_plugins import GenericFormPlugin as OldGenericFormPlugin
from plusforms.models import SubmittedForm

plugin_pool.unregister_plugin(OldGenericFormPlugin)


@plugin_pool.register_plugin
class GenericFormPlugin(OldGenericFormPlugin):
    def post_save(self, context, instance, obj: SubmittedForm = None):
        print('Hooked')
```

## Doc
There are 3 ways to predefine and get an existing form for displaying in Plugin:

- set GET parameter 'fid'
- set POST parameter 'fid'
- set context variable 'plus_form'



### Optional Setting
**PLUSFORMS_FIELDS**
> Define custom form fields
> (Default: None)
```python
PLUSFORMS_FIELDS = [
    'my_app.my_module.my_fields.CustomField',
]
```

**PLUSFORMS_MEDIA_UPLOAD**
> Custom destination folder for FileField uploads. (Default: 'media/plusform_uploads/')

```python
PLUSFORMS_MEDIA_UPLOAD = 'media/form_uploads/'
```

### ToDo
Add Date/DateTime form field with a good datetime picker.
 

### Known Bugs

### Security issues
UUID of submitted forms can be (theoretically) bruteforced wich leads into information disclosure.