semvec/pypi-packages huggingface dataset:
ufns 0.0.1
Utility Functions
Requires Python: >=3.7

# ufns

Utility functions for Python

linspace(a, b, l, r)

- generates a list of length l of evenly spaced values between a and b
- rounds values to r decimal places, can be left blank if desired
- leaving l blank will generate a values differing by 1 if the difference
  between a and b is whole, or else will set the length to 100

gen(l, a, b)

- generates a list of length l of random integers between a and b

gen(l, list, allowDuplicates)

- generates a list of length l of random values picked from an iterable (in this case the iterable is list)
- iterable should not be passed as a string
- setting allowDuplicates to False will populate the list with unique values,
  leaving blank or setting to True will add duplicate values to the list

lininc(a, b, i)

- generates a list of values from a to b, in increments of i

ordmag(n)

- returns the power that 10 is raised to when n is expressed in scientific notation
norm-benchmark 0.14.1
coNstructiOn pRoject Manager
Requires Python: <4.0,>=3.12

# NORM - coNstructiOn pRoject Manager

**Norm** is a CLI tool for benchmarking cost estimate generator models in construction projects. It evaluates model outputs against ground truths and provides a leaderboard for comparison. The name "Norm" was chosen because it sounds like a good PM name.

## Report

Here's the [full report](https://www.notion.so/Handoff-Takehome-Solution-1a2ee5e433ba8069b014c5d2ed238fcc) which comprises the reasoning behind the product, methodology, results and future work.

## Features

- 📊 **Benchmark Models**: Compare model-generated cost estimates against ground truth data.
- 📈 **Leaderboard**: Optionally upload benchmarking results to a leaderboard.
- 🖥 **Dashboard**: Launch an interactive Streamlit dashboard to visualize results.

## Installation

```sh
pip install norm-benchmark
```

## Usage

Norm provides a simple CLI with two commands: `benchmark` and `dashboard`.

### 1. Run Benchmarking

Compare a model's output against ground truths:

```sh
norm benchmark <model_outputs.json> <ground_truths_directory> [--to_leaderboard]
```

#### Arguments:
- `<model_outputs.json>`: Path to the JSON file containing model outputs.
- `<ground_truths_directory>`: Path to the directory with ground truth data.
- `--to_leaderboard` *(optional)*: Uploads results to the leaderboard if specified.

### 2. Launch Dashboard

Start the Streamlit dashboard for visualizing benchmarking results:

```sh
norm dashboard
```

The dashboard will be available at: [http://localhost:8501](http://localhost:8501)

## Example

```sh
norm benchmark results.json ground_truths/ --to_leaderboard
norm dashboard
```

## License

This project is licensed under the MIT License.
revproxy-auth 0.1.16
Reverse proxy with synology authentication
Requires Python: >=3.11

# revproxy_auth
This class implements a reverse proxy intended to work inside a Flask server, allows to use the synology auth credentials for all your services behind the synology service proxy.
Have you setup the reverse proxy in your synology NAS, but don´t want that everyone who knows your services´ URL can have access to your services?
This repo will allow you to restrict the access from internet to your internal Api REST webservices, using the credentials and users that you have created in your Synology NAS.
It will also request the OTP code if you have that configured in your NAS.

Configuration yml file will be place in the /home/var/{yourservicename}

Revproxy_auth can work in two mode:

1. Embeded. You can embed the authentication by modifying your Flask based service:
    self.app = Flask(__name__, template_folder=template_folder, static_folder=static_folder)
    self.revproxy_auth = RevProxyAuth(self.app, root_class='yourservicename')
    self.app.add_url_rule('/', 'index', self.main_endpoint, methods=['GET', 'POST'])
    ...
    def main_endpoint(self):
        """ Main endpoint that returns the main page for your service
        Returns:
            response: The main html content
        """
        return self.revproxy_auth.get_auth_response(request, lambda : render_template('form.html'))

2. Proxy
    You need to make available a new service inside your LAN with the authproxy.
    You may want to include revproxy-auth as part of you already existing services... no need to create an specific flask or any newwsgi just for this. Just make the API REST call available.
    Configure the service in the config.yml so that it can redirect all the requests to the proper internal host & port.
    Create all your entry points in the synology reverse proxy menu, and make all of them point to the authproxy endpoint