semvec/pypi-packages huggingface dataset:
AFQ-Browser 0.2.4
AFQ-Browser
License: MIT

AFQ-browser is a software library for visualization of results from
automated fiber quantification of human brain tractography.

The software takes as input the results of analysis from the ``AFQ`` software
and produces a browser-based visualization of the data. Command-line tools
allow users to create these visualizations from their data and upload them to
share with others as a website.

For instructions on installation and use, visit the documentation:
https://yeatmanlab.github.io/AFQ-Browser
flask_json_content_type_validator 0.1.1
Flask JSON Content-Type decorator which validates that the Content-Type is indeed application/json. In the case of a wrong content type, then the decorator will throw an exception which can be customized.
License: MIT
Keywords: flask json content validation decorator

[![Build Status](https://travis-ci.org/vklap/flask-json-content-type-validator.svg?branch=master)](https://travis-ci.org/vklap/flask-json-content-type-validator)

# Flask JSON Content Type Validation Decorator

This package contains a Flask routes decorator that validates that the request 
has a Content-Type header with 'application/json'.

# Why?
Whenever you develop a Flask based API with plain vanilla flask routes that 
expect to get json data, then trying to access `request.get_json()` 
will return None whenever the Content-Type is not 'application/json' - which 
might eventually break your code. Using this decorator will help you keep your 
code clean and DRY.

# How it works?

## Create your custom exception

Below is an example of the exception you might wish to raise:

```python
class CustomError(Exception):
    def __init__(self, message, error_code):
        self.message = message
        self.error_code = error_code
```

## Register your custom error with a flask error handler

The decorator will throw your `CustomError` is the content type is not valid, 
in which case you can handle and return your customized response.

```python
@app.errorhandler(CustomError)
def custom_error_handler(custom_error):
    return flask.jsonify(dict(message=custom_error.message,
                                     error_code=custom_error.error_code)), 400
```

## Decorate your route with the content type validator

```python
import flask
from flask import request
from flask_json_content_type_validator import json_content_type_validator

app = flask.Flask(__name__)

@app.route('/echo-resource')
@json_content_type_validator.validator(
    CustomError(message='Missing Content-Type header application/json',
                error_code=1000)
)
def echo_resource():
    data = dict(**request.get_json())
    return flask.jsonify(data)

```
pref_timer 0.1.6
Used to find the function execution time
License: MIT
Keywords: performance

pyPerformanceTimer
==================
Functionality Performance Timer

Introduction
------------
The pyPerformanceTimer is used to find the function execution time. So it will use which function takes more time when execute and helps to find out the performance issue. So this is beginning and the more updated coming soon.

Installation
------------
It's very simple install and use, I will show two types of installation manual and PIP installation.

Manual Installation
===================
First you need to clone the package or download the latest release.


    https://github.com/PraveenJP/pyPerformanceTimer.git
    cd 'path to the package'
    python setup.py install


PIP Installation
================

    pip install pref_timer

Usage
-----
It's very easy to use, Please follow the setps.

  from pref_timer.timer import timer

  @timer
  def main():
      for i in range(50000):
          print ("Execution:", i)

  if __name__ == '__main__':
      main()

Finally run the python file.

Result
------
The Result of the above simple loop method

    Execution: 19998
    Execution: 19999
    main Taken: 0.3 Seconds


It shows the functionality name and time which is taken.

If any suggestion or doubts please let me know via below email.
---------------------------------------------------------------

Email: praveen.josephmasilamani@outlook.com

Happy Coding. :)