semvec/pypi-packages huggingface dataset:
flaskcode 0.0.8
Web based code editor on python flask framework
License: MIT
Requires Python: >=3.6
Keywords: flaskcode code editor code-editor

# flaskcode

[![Build Status](https://travis-ci.org/sujeetkv/flaskcode.svg?branch=master)](https://travis-ci.org/sujeetkv/flaskcode)
[![PyPI Version](https://img.shields.io/pypi/v/flaskcode.svg)](https://pypi.org/project/flaskcode)
[![MIT License](https://img.shields.io/github/license/sujeetkv/flaskcode.svg)](https://github.com/sujeetkv/flaskcode/blob/master/LICENSE)

Web based code editor on python flask framework.

![screenshot](https://user-images.githubusercontent.com/17122995/92307134-bc8f9e00-efb1-11ea-93c3-49aa6c52cca3.png)


## Installation

```bash
pip install flaskcode
```


## Run application from CLI

Run flaskcode standalone using following command:

```bash
flaskcode /path/to/resource/folder
```

Get help for CLI command:

```bash
flaskcode --help
```

```
Usage: flaskcode [OPTIONS] [RESOURCE_BASEPATH]

  Run FlaskCode with given RESOURCE_BASEPATH or current working directory.

  All options can be set on the command line or through environment
  variables of the form FLASKCODE_*. For example FLASKCODE_USERNAME.

Options:
  -h, --host TEXT                 IP or hostname on which to run HTTP server.
  -p, --port INTEGER              Port on which to bind HTTP server.
  --username TEXT                 HTTP Basic Auth username.
  --password TEXT                 HTTP Basic Auth password.
  --editor-theme [vs|vs-dark|hc-black]
                                  Editor theme, default is vs-dark.
  --debug                         Run in flask DEBUG mode.
  --env TEXT                      Flask environment, default is development.
  --version                       Show the version and exit.
  --help                          Show this message and exit.
```


## Integrating flaskcode in your Flask app

The flaskcode can be integrated in to your own `Flask` app by configuring and registering `flaskcode.blueprint` with your app:

```python
from flask import Flask
import flaskcode

app = Flask(__name__)
app.config.from_object(flaskcode.default_config)
app.config['FLASKCODE_RESOURCE_BASEPATH'] = '/path/to/resource/folder'
app.register_blueprint(flaskcode.blueprint, url_prefix='/flaskcode')

@app.route('/')
def hello():
    return "Hello World!"

if __name__ == '__main__':
    app.run()
```

Now if you run the Flask app on default port, you can access the flaskcode at http://127.0.0.1:5000/flaskcode.


## Built with

* [Flask](http://flask.pocoo.org) - a python web framework
* [Monaco Editor](https://microsoft.github.io/monaco-editor) - a browser based code editor


## Authors

* [**Sujeet Kumar**](https://github.com/sujeetkv)


## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/sujeetkv/flaskcode/blob/master/LICENSE) file for details.
aiohttp-prometheus-swaggered 0.1.2
HTTP metrics for a aiohttp application
License: MIT
Keywords: prometheus,aiohttp

AIOHTTP prometheus
==================

.. image:: https://travis-ci.org/globocom/aiohttp-prometheus.svg?branch=master
    :target: https://travis-ci.org/globocom/aiohttp-prometheus

HTTP metrics for a AIOHTTP application

Installing
----------

.. code-block:: bash

   pip install aiohttp-prometheus-client


Usage
-----

.. code-block:: python

    from aiohttp import web
    from aiohttp_prometheus import metrics_middleware, MetricsView

    app = web.Application()
    app.middlewares.append(metrics_middleware)

    app.router.add_route('GET', '/metrics', MetricsView),

    web.run_app(app)


Example output for metric route
-------------------------------

.. code-block::

   # HELP aiohttp_http_requests_total Asyncio total Request Count
   # TYPE aiohttp_http_requests_total counter
   aiohttp_http_requests_total{handler="MetricsView",method="GET",status="2xx"} 7.0

   # HELP aiohttp_http_request_duration_seconds Request latency
   # TYPE aiohttp_http_request_duration_seconds histogram
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.01",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.05",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.1",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.5",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="0.75",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="1.0",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="2.5",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="5.0",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="7.5",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="10.0",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="15.0",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="20.0",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="30.0",method="GET"} 7.0
   aiohttp_http_request_duration_seconds_bucket{handler="MetricsView",le="+Inf",method="GET"} 7.0
simplpy 0.1a1
Simple python helpers to make your lives easier
License: MIT

# SimplPy

A collection of helper functions for various libraries that I find useful in my work, you might too :smiley:

Feel free to add more helper functions

## Installation

```bash
user@programmer~:$ pip install simplpy
```

## Documentation

Follow the <a href="https://github.com/frankhart2018/simplpy/wiki">official documentation</a> to learn usage of various helper functions.

## License

This is open sourced under <a href="https://github.com/frankhart2018/simplpy/blob/master/LICENSE">MIT</a> license.
cut-sent-thai 0.1.0
tokenize sentence in Thai
License: MIT
Requires Python: >=3.6

from cut_sent_thai import cut_sent<br/>
tokens = cut_sent("put your string here")<br/><br/>
If you want the raw answer (which space is end of sentence (EOS) and which space is not)<br/>
tokens, raw = cut_sent("put your string here", return_raw=True) <br/>
raw is numpy array. value is 1 if that space position is EOS and 0 if it's not. Length of raw is the same as number of spaces in your text

<br/>
change log version 0.0.8: now needs pytorch as dependency
databind.mypy 0.0.3
MyPy plugin for the "databind" module.
License: MIT
Requires Python: >=3.6.0,<4.0.0

# databind.mypy

MyPy plugin for static type validation when using the `databind.core` package.

__Todo__

* [ ] Assignments using `field()` on `@datamodel`s is not yet recognized as valid by Mypy
* [ ] PR Mypy to make `mypy.plugins.dataclasses` customizable for this use case

## Getting started

Install the `databind.mypy` package from PyPI and register it as a MyPy plugin.

```ini
# mypy.ini
[mypy]
plugins = databind.mypy
```

---

<p align="center">Copyright &copy; 2020 Niklas Rosenstein</p>