semvec/pypi-packages huggingface dataset:
dummy_wsgi_framework 0.0.19
Dummy WSGI Framework is base for your Web-applications or your own WSGI-framework

====================
Dummy WSGI Framework
====================

Common description
==================

**Dummy WSGI Framework** is base for your Web-applications or your own WSGI-framework.
It is "unpretentious" and "dummy" (although in fact it is not so "simple" and "stupid" as it may seem at first glance). It was build as *Just4Fun*-project.

**Dummy WSGI Framework** methodology contain "controllers" and "views", as pattern "Model-View-Controller" without "Model".

It allows you to work with views generated within controllers or loaded from files, for example, in the basic version of the framework it is just HTML-files.

**Dummy WSGI Framework** is potentially expanding:

* due to open access to the WSGI-interface at the level of application controllers, developed on its (framework) basis;
* due to the possibility of using arbitrary template engines due to the function of loading view files implemented in the core of the decorator framework;
* and, in the end, it's Python, there's a lot possible.

You are free to use **Dummy WSGI Framework** as a framework for your Web applications or as a basis for your Web framework. It is not necessary to refer to the fact that You use **Dummy WSGI Framework**, but I would like to have a public review, even if it is not positive.

Links
=====

GitHub - https://github.com/BorisPlus/dummy_wsgi_framework

Author
======

BorisPlus
lomond 0.3.3
Websocket Client Library

# Dataplicity Lomond

Tranquil WebSockets for Python.

[![PyPI version](https://badge.fury.io/py/lomond.svg)](https://pypi.org/project/lomond/)
[![PyPI](https://img.shields.io/pypi/pyversions/lomond.svg)](https://pypi.org/project/lomond/)
[![Coverage Status](https://coveralls.io/repos/github/wildfoundry/dataplicity-lomond/badge.svg?branch=master)](https://coveralls.io/github/wildfoundry/dataplicity-lomond?branch=master)
[![CircleCI](https://circleci.com/gh/wildfoundry/dataplicity-lomond/tree/master.svg?style=svg)](https://circleci.com/gh/wildfoundry/dataplicity-lomond/tree/master)

Lomond is a Websocket client which turns a websocket connection in to
an orderly stream of _events_. No threads or callbacks necessary.

- [Documentation](https://lomond.readthedocs.io/)

- [GitHub Repository](https://github.com/wildfoundry/dataplicity-lomond)

- [Blog](https://www.willmcgugan.com/search/?s=lomond)

## How to Use

To connect to a "ws:" or "wss:" WebSocket URL, construct a `lomond.WebSocket` object then iterate over it. This will yield an _event object_ for each step in the connection process and for any data sent by the server.

You will receive a ``Binary`` or ``Text`` event when the server sends you a message.
You may _send_ a message with the ``send_binary`` or ``send_text`` methods.

## Example

The following is a silly example that connects to a websocket server
(in this case a public echo server), and sends a string of text
every 5 seconds.


```python
from lomond import WebSocket


websocket = WebSocket('wss://echo.websocket.org')

for event in websocket:
    if event.name == 'poll':
        websocket.send_text('Hello, World')
    elif event.name == 'text':
        print(event.text)
```

## Events

A successful websocket connection will result in a series of events
such as the following:

```
┌──────────────────────┐
│      Connecting      │     Contacting server
└──────────────────────┘
           │
           ▼
┌──────────────────────┐     Connected to server (but
│      Connected       │     not yet sent data)
└──────────────────────┘
           │
           ▼
┌──────────────────────┐     Negotiated Websocket
│        Ready         │     handshake
└──────────────────────┘
           │  ┌───────────┐
           │  │           │
           ▼  ▼           │
┌──────────────────────┐  │  Send and receive
│ Binary / Text / Poll │──┘  application data
└──────────────────────┘
           │
           ▼
┌──────────────────────┐     Websocket close
│        Closed        │     handshake
└──────────────────────┘
           │
           ▼
┌──────────────────────┐
│     Disconnected     │     Disconnected TCP/IP
└──────────────────────┘     connection to server
```