semvec/pypi-packages huggingface dataset:
pidng 4.0.9
Python utility for creating Adobe DNG files from RAW image data.
Requires Python: >=3.6

PiDNG
=========
![](https://img.shields.io/badge/Version-4.0.9-green.svg)

Create Adobe DNG RAW files using Python.

<!-- ![](docs/demo.jpg) -->

**Features**
------------

- 8,10,12,14,16-bit precision
- Lossless compression
- DNG Tags ( extensible )

### Works with any **Bayer RAW** Data including native support for **Raspberry Pi cameras**.
- OV5467 ( Raspberry Pi Camera Module V1 )
- IMX219 ( Raspberry Pi Camera Module V2 )
- IMX477( Raspberry Pi High Quality Camera )

<!-- *Raspberry Pi High Quality Camera examples below ( DNG top, JPEG bottom )* -->

<!-- ![](docs/collage.jpg) -->

***

Instructions
------------

Requires: 
- Python3 
- Numpy  

### Install

From PyPI:
```
python3 -mpip install PiDNG 
```

Latest version from GitHub:

```
python3 -mpip install  git+https://github.com/schoolpost/PiDNG.git
```

***

Credits
------------
Source referenced from:

CanPi ( Jack ) | [color-matrices](https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=278828)

Waveform80 | [picamera](https://github.com/waveform80/picamera)

Krontech | [chronos-utils](https://github.com/krontech/chronos-utils)

Andrew Baldwin | [MLVRawViewer](https://bitbucket.org/baldand/mlrawviewer)
Blue2FactorPy 0.1.3
Used to implement Blue2Factor
Requires Python: >=3.6

#Blue2FactorPy

This python page is used for python webservers that use Blue2Factor

It can be used with both Django and Flask. You may have to install some
packages

`python3 -m pip install jwt rsa django flask requests`

###To call in Flask:

```
from Blue2Factor import Authentication

companyId = "COMPANY_ID from https://secure.blue2factor.com"
loginUrl = "LOGIN_URL that was entered at https://secure.blue2factor.com"

b2f = Authentication.Auth()

@app.route('/mytest', methods=['GET', 'POST'])
def myTest():
    if not b2f.authenticateFlaskRequest(request, companyId, loginUrl, privateKeyStr):
        return b2f.redirect
    #do what you would normally do, and set cookies
    response = Main.Sample().showTestPage()
    return response
    
@app.after_request
def setCookie(response):
    return b2f.setB2fCookie(response)
```

###Or using Django

```
from Blue2Factor import Authentication

companyId = "COMPANY_ID from https://secure.blue2factor.com"
loginUrl = "LOGIN_URL that was entered at https://secure.blue2factor.com"

b2f = Authentication.Auth()

def index(request):
	if not b2f.authenticateDjangoRequest(request, companyId, loginUrl, privateKeyStr):
        return b2f.redirect
    #do what you normall do
    template = loader.get_template('sample.html')
    response = HttpResponse(template.render())

@app.after_request
def setCookie(response):
    return b2f.setB2fCookie(response)
```