semvec/pypi-packages huggingface dataset:
network-interface 0.0.3
This class is an abstract class to standardize the way of creating a network graph in networkx
License: MIT
Requires Python: >=3.6



# network-interface
In order to install, open the command prompt and type:
```
pip install network_interface
```

In order to import:
```
from network_interface import NetworkInterface
```

In this module you will find NetworkInterface class which is an abstract class to standardize the way of creating a network graph in networkx.

Once you install this library, you have to install igraph library where:
- Refer to [igraph/python](https://igraph.org/python/ ) if you are a linux or mac user
- Refer to [stackoverflow](https://stackoverflow.com/questions/34113151/how-to-install-igraph-for-python-on-windows) if you are a windows user

In order to use the class, you have to inherit this class and define the following abstract methods according to your dataset:
- get_nodes
- get_edges

This class also has some helpful methods like (use help function to get more info about them):
- get_nodes_list
- get_edges_list
- create_network_graph
- nodes_df_to_nodes_list
- calculate_nodes_positions(using the most common algorithms to calculate nodes positions in a network graph)
- append_nodes_positions_to_nodes_attributes
- get_nodes_pos_dict

The following directory [Example](https://github.com/Samer92/network-interface/tree/master/Example) shows a concrete example about how to use the class
lys 1.0
Simple HTML templating for Python
License: MIT

Lys
===
.. image:: https://img.shields.io/pypi/v/lys.svg
    :target: https://pypi.python.org/pypi/lys
.. image:: https://travis-ci.org/mdamien/lys.svg?branch=master
    :target: https://travis-ci.org/mdamien/lys

*Simple HTML templating for Python*

.. code:: python

    from lys import L

    print(L.body / (
        L.h1 / 'What is love ?',
        L.ul / (
            L.li / 'Something in the air',
            L.li / 'You can\'t catch it',
            L.li / (
                L.a(href="https://en.wikipedia.org/wiki/Love") / 'Keep trying'
            ),
        ),
    ))

To install, :code:`pip3 install lys`

A few more tricks:

.. code:: python

    # raw() to mark the content as already escaped
    from lys import raw
    L.p / raw('<script>alert("boo")</script>')

    # attributes '_' are replaced with '-'
    L.button(data_id="123") / 'click me'
    # => <button data-id="123">click me</button>

    # shortcut to add classes and ids easily
    L.button('#magic-button.very-big', onclick='add_it()') / 'Magic !'

    # one easy way to do loops and ifs
    (
        L.h1 / 'Welcome',
        (L.ul / (
            'Try one of our recipes:',
            (L.li / (
                L.a(href=recipe.link) / recipe.name
            ) for recipe in recipes)
        ) if len(recipes) > 0 else ''),
    )

**Inspiration** : `pyxl <https://github.com/dropbox/pyxl>`_, `React <https://facebook.github.io/react/>`_