semvec/pypi-packages huggingface dataset:
mkdocs-twincat-doc-plugin 0.0.15
MkDocs plugin to import retrieve docstrings from TwinCAT project objects and add to docs
License: MIT
Requires Python: >=3.7
Keywords: mkdocs twincat

# mkdocs-twincat-doc-plugin
MkDocs plugin to import retrieve docstrings from TwinCAT project objects and add to docs.



# Developing mkdocs-twincat-doc-plugin

To install mkdocs-twincat-doc-plugin, along with the tools you
need to develop and run tests, run the following in your virtualenv:

```bash
$ pip install -e . [dev]
```
flask-simple-captcha-k-fork 1.1.3
Extremely simple, "Good Enough" captcha implemention for flask forms. No server side sessions required.
License: MIT

# Install
Install from pypi
```pip install flask-simple-captcha-k-fork```
Install from source
```python3 setup.py install```

# How to use
This package is intended to assign a unique CSRF string per each form submit per user session, without requiring any backend session tracking. First, you'll want to set a variable `CAPTCHA_CONFIG['SECRET_CAPTCHA_KEY']` in your app config to a random, complex string. Example: `CAPTCHA_CONFIG = {'SECRET_CAPTCHA_KEY':'wMmeltW4mhwidorQRli6Oijuhygtfgybunxx9VPXldz'}`

Second, add this to the top of your code.

```python
from flask_simple_captcha_k_fork import CAPTCHA


CAPTCHA = CAPTCHA(config=config.CAPTCHA_CONFIG)
app = CAPTCHA.init_app(app)
```

For each route you want captcha protected, add the following code:

```python
@app.route('/example', methods=['GET','POST'])
def example():
    if request.method == 'POST':
        c_hash = request.form.get('captcha-hash')
        c_text = request.form.get('captcha-text')
        
        if CAPTCHA.verify(c_text, c_hash):
            # Code to success captcha
            ...
        else:
            # Code to failed captcha
            ...

    if request.method == 'GET':
        captcha = CAPTCHA.create()
        return render_template('example.html', captcha=captcha)
```


In the HTML forms you want to generate a captcha: `{{ captcha_html(captcha) }}`

This will create something like this:
```html
<input type="text" name="captcha-text">
<input type="hidden" name="captcha-hash" value="1o9ig...">
```


To make a customized-size captcha, you can do:

```python
captcha = CAPTCHA.create(length=10, digits=True)
```
pcprimefinder 0.1.1
Spark sql rules for databricks
License: MIT
Keywords: prime,maths

This is a library to find if a number is prime.
It takes O(n^1/2) time complexity as compared to O(n) in common method

Change Log
==========

0.0.1 (23/01/2023)
--------------------
- First Release

0.0.2 (24/01/2023)
--------------------
- Second Release
- changed package structure

0.0.3 (24/01/2023)
--------------------
- Added rule functions from notebook

0.1.0 (25/01/2023)
---------------------
- Demo rules added to run on notebooks
error-visor 0.0.6
Librería para guardar registros de errores y warnings personalizados en json
License: MIT

# Error Visor

## Que es?
Es un proyecto destinado a guardar registros personalizados en un archivo json que será utilizado
más tarde para visualizarse en una app web de forma localizada y ordenada. Solo es necesaria una
sentencia y listo, ya tienes el registro del error en tu app.

## Cómo funciona?

Primero instalamos con:

```bash
pip install error-visor
```

Importamos el módulo:

```python
import error_visor as EV
```

Luego localizamos el lugar desde donde queremos mandar el log. Por ejemplo un bloque `exception` y
colocamos el siguiente código:

```python
except Exception as ex:

	EV.log(
		EV.Error(
			description='Error de muestra',
			ex=ex,
			priority=EV.Priority.HIGH
		)
	)

```

Para una `advertencia`/`warning`:

```python
except Exception as ex:

	EV.log(
		EV.Warning(
			description='Advertencia de muestra',
			ex=ex,
      		follow_me=True
		)
	)

```

Y listo, tendremos el registro en un json!


## CHANGELOG

### v0.0.6
- Fixed: Package .whl has the wrong uploaded

### v0.0.5
- Added: printable function to EV.log() -> It prints the status of the log to save
- Fixed: When we pass an Exception with args, it raises a JSONDecodeError!

### v0.0.4
- Modified: Now to log should be:
```python
EV.log(EV.Error(...))
#or
EV.log(EV.Warning(...))
```
- Modified: RTypes have new attr `context`. Its a merge between `function` and `class`.
- Fixed: Make of new log when the `logs` dir exists. The new log file wasn't created or created empty.

### v0.0.3
- Fixed: Making of new `logs` dir when that not exists. Really work now!
- Added: Warning Type
- Modified: RTypes have have new format to use. RTypes are like: `EV.Error`, `EV.Warning`, etc.

### v0.0.2
- Fixed: Making of new `logs` dir when that not exists

### v0.0.1
- First upload