semvec/pypi-packages huggingface dataset:
pyMdfReader 0.1.5
Read the binary MDF file format
License: MIT

===========
pyMdfReader
===========


A reader for Micro lab MDF files


Description
===========

This module is used to read the micro lab MDF data files. An efficient mechanism is used to allow to make
selection   of data columns.

Example of usage:
-----------------

Read a MDF file as a whole

.. code:: python

    import mdf_reader.mdf_parser as mdf
    data_file = "example_data_file.mdf"

    header_object = mdf.MDFParser(data_file)
    header_object.data.info()

Read a selection of columns based on a filter

.. code:: python

    header_object = mdf.MDFParser(data_file, import_data=False)
    header_object.set_column_selection(filter_list=["BALDER", "A[XYZ]"])
    header_object.import_data()

Note that the data is stored in a pandas data frame 'header_object.data'


Examples
========

* See here for examples of filtering with the *SignalFilters* package: `example_mdf`_
  or `example_mdf_rtd`_


.. _example_mdf:
    _static/example_mdf_reader.html

.. _example_mdf_rtd:
    https://pymdfreader.readthedocs.io/en/latest/_static/example_mdf_reader.html


Unit Test
=========
In order to run the standard unit test do::

    tox

Installation
============

To install the package run::

    pip install pyMdfReader

In case you want to run all the examples in a virtual environment you can also do::

    pip install pyMdfReader[examples]

which makes sure that a that also the package *matplotlib*, *seaborn* and *jupyter* are
installed as well.

Making Changes & Contributing
=============================

This project uses `pre-commit`_, please make sure to install it before making any
changes::

    pip install pre-commit
    cd pyMdfReader
    pre-commit install

It is a good idea to update the hooks to the latest version::

    pre-commit autoupdate

Don't forget to tell your contributors to also install and use pre-commit.

.. _pre-commit: https://pre-commit.com/

Note
====

This project has been set up using PyScaffold 4.5. For details and usage
information on PyScaffold see https://pyscaffold.org/.
Flask-Cognito 1.21
Authenticate users to Cognito user pool via JWT.
License: MIT
Keywords: flask aws cognito jwt authentication auth serverless

Flask-Cognito
-------------

Authenticate users based on AWS Cognito JWT.


# Initialization
```python3
# configuration
app.config.update({
    'COGNITO_REGION': 'eu-central-1',
    'COGNITO_USERPOOL_ID': 'eu-central-1c3fea2',

    # optional
    'COGNITO_APP_CLIENT_ID': 'abcdef123456',  # client ID you wish to verify user is authenticated against
    'COGNITO_CHECK_TOKEN_EXPIRATION': False,  # disable token expiration checking for testing purposes
    'COGNITO_JWT_HEADER_NAME': 'X-MyApp-Authorization',
    'COGNITO_JWT_HEADER_PREFIX': 'Bearer',
})


# initialize extension
from flask_cognito import CognitoAuth
cogauth = CognitoAuth(app)

@cogauth.identity_handler
def lookup_cognito_user(payload):
    """Look up user in our database from Cognito JWT payload."""
    return User.query.filter(User.cognito_username == payload['username']).one_or_none()
```

# Check Authentication
```python3
from flask_cognito import cognito_auth_required, current_user, current_cognito_jwt

@route('/api/private')
@cognito_auth_required
def api_private():
    # user must have valid cognito access or ID token in header
    # (accessToken is recommended - not as much personal information contained inside as with idToken)
    return jsonify({
        'cognito_username': current_cognito_jwt['username'],   # from cognito pool
        'user_id': current_user.id,   # from your database
    })
```

# Restrict access by Cognito Group
```python3
from flask_cognito import cognito_auth_required, current_user, current_cognito_jwt

@route('/api/foo')
@cognito_auth_required
@cognito_group_permissions(['admin','developer'])
def api_private():
    # user must belongs to "admin" or "developer" groups
    return jsonify({
        'foo': "bar"
    })
```

### Acknowledgements
* Uses [cognitojwt](https://github.com/borisrozumnuk/cognitojwt) at its core.
* Based on [flask-jwt](https://github.com/mattupstate/flask-jwt/).
vagrant-creator 0.0.6
A tool to generate Vagrant init files with custom configurations
License: MIT

[![PyPI version](https://img.shields.io/pypi/v/vagrant-creator.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/vagrant-creator/)
[![PyPI downloads](https://img.shields.io/pypi/dm/vagrant-creator.svg)](https://pypistats.org/packages/pypistats)
[![Licence](https://img.shields.io/github/license/hugovk/pypistats.svg)](LICENSE.txt)

# Vagrant Init Generator

## Overview

`vagrant-init-generator` is a command-line tool that simplifies the process of generating Vagrant `Vagrantfile` with custom configurations. It allows users to specify CPU, RAM, machine name, host name, IP address, forwarded ports, and provisioning commands easily through user-friendly prompts or default values.

## Features

- Generate `Vagrantfile` with custom configurations
- Interactive prompts for user input (CPU, RAM, machine name, host name, IP address, forwarded ports, provision commands)
- Support for specifying forwarded ports and provisioning commands
- Default values for skipped prompts
- Easy installation and usage

## Installation

To install `vagrant-creator`, you can use `pip`:

```bash
pip install vagrant-creator
```

## Usage

To generate a vagrant file, Run `vagrant-creator` to start the interactive setup and follow the steps as prompted to customize the file as required:

```bash
vagrant-creator
```

### Entering Information

- Pressing \`Enter\` will use the default value shown in parentheses.
- To add multiple forwarded ports or provisioning commands, follow the prompts.

#### Forwarded Ports

When prompted to add a forwarded port, enter `y` to add a port or `n` to skip.

- Guest Port: Enter the guest port number (default: 8080).
- Host Port: Enter the host port number (default: 8080).
- Auto Correct: Enable auto-correct (default: true). Enter `t` for true or `f` for false.

#### Provisioning Commands

When prompted to add a provisioning command, enter `y` to add a command or `n` to skip.

- Command: Enter the provisioning command (e.g., `sudo yum install ansible -y`).

### Example

Here's an example of the interactive setup:

```bash
$ vagrant-creator

===================================== Vagrant file generator =====================================
Enter vm box name (default: centos/7):
Enter CPU (default: 1):
Enter RAM in MB (default: 1024):
Enter Machine Name (default: default-machine):
Enter Host Name (default: localhost):
Enter IP Address (default: 192.168.33.10):
Do you want to add a forwarded port? [y (Yes) /n (No)]: y
Enter the guest port number (default: 8080):
Enter the host port number (default: 8080):
Enable auto correct? (default: true) [t (True) /f (False)]: t
Do you want to add a provisioning command? [y (Yes) /n (No)]: y
Enter the provisioning command (e.g., 'sudo yum install ansible -y'): sudo apt-get install ansible -y
Do you want to add a provisioning command? [y (Yes) /n (No)]: n
Vagrantfile generated successfully!
```

## License

This project is licensed under the MIT License. See `LICENSE` for more information.