semvec/pypi-packages huggingface dataset:
ucpbased 0.0.3
Use Case Points

# UCP-Based

This is the first version of UCP-based library.

## Installation

```bazaar
pip install ucpbased
```

## Usage

```python
from ucpbased.ucp import ucp

ucp = ucp()
uaw = ucp.input_UAW(0, 0, 5)
uucw = ucp.input_UUCW(0, 29, 0)
uucp = ucp.get_UUCP()

tcf = ucp.input_TFactor(3, 3, 3, 3, 0, 3, 3, 0, 3, 3, 3, 0, 3)
ecf = ucp.input_EFactor(3, 3, 3, 3, 3, 3, 0, 0)

useCasePoints = ucp.get_UCP()
mh = ucp.get_MH(28)

print('UAW     : {:10.2f}'.format(uaw))
print('UUCW    : {:10.2f}'.format(uucw))
print('UUCP    : {:10.2f}'.format(uucp))
print('TFactor : {:10.2f}'.format(tcf))
print('EFactor : {:10.2f}'.format(ecf))
print('UCP     : {:10.2f}'.format(useCasePoints))
print('MH      : {:10.2f}'.format(mh))
```

## Expected output:

```
UAW     :      15.00
UUCW    :     290.00
UUCP    :     305.00
TFactor :       0.93
EFactor :       0.81
UCP     :     231.17
MH      :    6472.89
```
AJAS 0.2.3
Lightweight REST Sever framework, based on bottle

# AJAS
[![Build Status](https://travis-ci.org/swip3798/AJAS.svg?branch=master)](https://travis-ci.org/swip3798/AJAS)
[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)
[![Generic badge](https://img.shields.io/badge/Python%20Version-3.x-green.svg)]()
## Description  
Another JSON Api Server. This is a library for Python 3 to create fast JSON-Rest APIs. It uses flask and gevent in the background.
## Usage
A simple start:
```python
from AJAS import Api

def simple_resolver(header, query):
    return {"hello":"world"}

api = Api()
api.add_get_resolver("/hello", simple_resolver)
api.add_post_resolver("/hello", simple_resolver)
api.run("localhost", 8080)
```
This will run an webserver returning `'{"hello":"world"}'` at the adress `http://localhost:8080/hello` for both GET and POST requests.

### Using blocks
Using blocks allows you to seperate different parts of your API. This can be used for versioning. Also, blocks can hold a authenticator, which can accept or deny a request based on the header and query of the reuest.

```python
from AJAS import Api, Authenticator

class MyAuth(Authenticator):
    def authenticate(self, header, query):
        if someCheck() == True:
            return True
        else:
            return False

def simple_resolver(header, query):
    return {"hello":"world"}

api = Api()
v1 = Block("/v1")
v1.add_get_resolver("/hello", resolver)
api.add_block(v1)
api.run("localhost", 8080)
```
lco-bpm-maker 0.2.4
LCO bad pixel mask creator

# pixel-mask-gen
Python utility to generate a bad pixel mask from a set of calibration images.

Authors: Matt Daily, Raleigh Littles, Curtis McCully

## Installation
### From PyPi
This package is available via PyPi, and can be installed via pip:

`pip3 install lco-bpm-maker`

### From Github
To install the tool, clone this repository and run:

```
cd pixel-mask-gen
python3 setup.py install
```

## Tests
To run the unit tests, simply run:

`python3 setup.py test`

## Usage
Once you've installed the tool, it can be run simply by:

`lco_bpm_maker`

```
usage: lco_bpm_maker [-h] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                     [--dark-current-threshold DARK_CURRENT_THRESHOLD]
                     [--flat-sigma-threshold FLAT_SIGMA_THRESHOLD]
                     [--bias-sigma-threshold BIAS_SIGMA_THRESHOLD]
                     input_directory output_directory

Create a bad pixel mask from a set of calibration frames.

positional arguments:
  input_directory       Input directory of calibration images

  output_directory      Output directory for bad pixel mask

optional arguments:
  -h, --help            show this help message and exit

  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Logging level to be displayed

  --dark-current-threshold DARK_CURRENT_THRESHOLD
                        Threshold for pixel dark current when flagging bad
                        pixels in dark frames. Pixels above this will be
                        flagged. Default = 20 [electrons/second]

  --flat-sigma-threshold FLAT_SIGMA_THRESHOLD
                        Number of standard deviations from the median of the
                        combined flat image for a pixel to be flagged. Default = 10

  --bias-sigma-threshold BIAS_SIGMA_THRESHOLD
                        Number of standard deviations from the median of the
                        combined bias image for a pixel to be flagged. Default = 10
                        
  --fpack               Flag to fpack output BPM

```