semvec/pypi-packages huggingface dataset:
flask-bootnav 0.7.1
Easily create navigation for Flask applications.
License: MIT

Flask-Nav
=========

Flask-Nav is a `Flask <http://flask.pocoo.org>`_-Extension to ease the creation
of navigational Elements in Applications. It provides means to Express the
Navigational structure and different ways to render these, making it easy to
custom tailor it for your application.

A motivating example:

.. code-block:: python

    from flask import Flask
    from flask_nav import Nav
    from flask_nav.elements import *

    nav = Nav()

    # registers the "top" menubar
    nav.register_element('top', Navbar(
        View('Widgits, Inc.', 'index'),
        View('Our Mission', 'about'),
        Subgroup(
            'Products',
            View('Wg240-Series', 'products', product='wg240'),
            View('Wg250-Series', 'products', product='wg250'),
            Separator(),
            Label('Discontinued Products'),
            View('Wg10X', 'products', product='wg10x'),
        ),
        Link('Tech Support', href='http://techsupport.invalid/widgits_inc'),
    ))


    app = Flask(__name__)
    # [...] (view definitions)

    nav.init_app(app)

You can find a small, runnable example application inside the ``example``
folder. To run it, install `Flask-Appconfig
<https://github.com/mbr/flask-appconfig>`_ and execute::

    $ flask --app=example dev

The `full documentation <http://pythonhosted.org/flask-nav/>`_ can be found on PyPI.
guest_list 0.1
Simple python package for a company to generate a guest list from a data file containing json encoded customer coordinates, based on their distance to the companies office.
License: MIT

Guest List
==========

Introduction
------------
Simple python package for a company to generate a guest list from a data file containing json encoded customer coordinates, based on their distance to the companies office.

Example data file is given in 'customers.json'

The default distance is 100km and the default office location is::

    {"latitude": 53.3381985, 'longitude': -6.2592576}


Requirements
------------
python3  

pip

Install
------------
::

    pip install guest_list

Usage
-----
.. code:: python

    import guest_list

    # 'customers.json' must be stored in the same directory as your python script
    guests = guest_list.create("customers.json")

    for guest in guests:
        print("{}: {}".format(guest['user_id'], guest['name']))

The office location and maximum distance can be passed as arguments

.. code:: python

    import guest_list

    office_coordinates = {'latitude': 53.378356, 'longitude': -6.588503}
    max_distance_km = 60.0  

    guests = guest_list.create("customers.json", office_coordinates=office_coordinates, max_distance_km=max_distance_km)

    for guest in guests:
        print("{}: {}".format(guest['user_id'], guest['name']))  


Tests
---------
To run the tests::

	git clone https://github.com/kujosHeist/guest_list.git
	cd guest_list
	
	python setup.py test
PPark 1.0.1
Advanced Lexer
License: MIT
Keywords: lexer

<h1 align="center">
  <br>
  <a href="https://github.com/aabbfive/PPark">
    <img src="PPark.svg" alt="PPark" width="200">
  </a>
  <br>
  PPark
  <br>
  <br>
</h1>

<h4 align="center">The best lexing library available any python version confused (2.x, 3.x, PyPy...)</h4>

## &#x1F4BE; Install

Download the latest version of PPark from
the [GitHub releases](https://github.com/aabbfive/PPark/releases) page.


## &#x1F4AC; How to Contribute

### Get the code

```
$ git clone https://github.com/aabbfive/PPark.git
$ cd PPark
```

### Install the library

```
$ pip install PPark
```

#### Or

```
$ pip install git+https://github.com/aabbfive/PPark
```

### Examples

```
from PPark import Lexer
from PPark.constant import Keyword, Keywords

lexer = Lexer()
lexer.addRule('INTEGER', r'([0-9]+)')
lexer.addRule('OP', Keywords([
	Keyword('}'), 
	Keyword('{'),
	Keyword('^'),
	Keyword(']'),
	Keyword('['),
	Keyword('>'),
	Keyword('<'),
	Keyword('='),
	Keyword('.'),
	Keyword('-'),
	Keyword(','),
	Keyword('+'),
	Keyword('**'),
	Keyword('*'),
	Keyword('/'),
	Keyword('//'),
	Keyword('%'),
	Keyword(')'),
	Keyword('(')
	]))
@lexer.on_match(r'"([^"\n]|(\\"))*"')
def STRING(token):
	token.value = token.value[1:][:-1]
@lexer.on_match(r'[a-zA-Z_$]\w*')
def IDENTIFIER(token):
	if keywords.contains(token.value):
		token.type = token.value.upper()
		return token
lexer.input("""
t = 12*2
""")
for token in lexer:
	print(token)
```

## &#x00A9;&#xFE0F; License

MIT. Copyright (c) [Aabbfive](https://github.com/aabbfive).