semvec/pypi-packages huggingface dataset:
CMDUI 0.2.0
A GUI toolkit for CMD.
License: MIT
Requires Python: >=3.6.0

<div>
  <img height=150 src="https://i.imgur.com/UebexHA.gif">
</div>

## What is it?
This is a project to build an easy-to-use GUI toolkit using just the windows console. The usage of this module is inspired by Tkinter as its ease of use makes it one of the fastest ways to create GUIs on the fly.

Eventually I aim to mirror the placement methods available in Tkinter such as Pack, Place, and Grid. I would also like to make a version of CMDUI for ANSI code driven terminals in the same easy-to-use style, although in the meantime CMDUI is only runnable in the windows console (or CMD). 

## Notes for 0.2.0 release
Thanks for checking out the project! CMDUI is still in very early development and this release has added a new pack algorithm. This algorithm has been a tricky one to implement and there are still a lot of bugs that need to be ironed out. Feel free to open an issue if you encounter any. I hope you enjoy. :-)

## Installation
CMDUI is now available on pip...
```sh
pip install CMDUI
```

## Example Usage - Stop Watch
A simple stopwatch UI. This example demonstrates the use of buttons, labels, and text variables.
```python
import CMDUI as CMD
import threading
import time


def counter():
    btn_txt.set("Stop")

    tt = time.time()
    while running:
        lab_txt.set(f"{time.time()-tt:.2f}")
        time.sleep(0.01)
    
    btn_txt.set("Reset")


def stopwatch():
    if btn_txt.get() == "Reset":
        btn_txt.set("Start")
        lab_txt.set("")
        return

    global running
    running = not running
    threading.Thread(target=counter).start()


cmdui = CMD.CMDUI()
running = False

lab_txt = CMD.StringVar()
btn_txt = CMD.StringVar()
btn_txt.set("Start")

lab = CMD.Label(cmdui, textvariable=lab_txt)
lab.pack()

but = CMD.Button(cmdui, textvariable=btn_txt, command=stopwatch)
but.pack()

cmdui.mainloop()
```
pandemic 0.4.4
Orstein-Uhlenbeck pandemic simulation
License: MIT

# Pandemic

An agent model in which commuting, compliance, testing and contagion parameters drive
infection in a population of thousands of millions. Agents follow Ornstein-Uhlenbeck processes
in the plane and collisions drive transmission. Results are stored at 
<a href="https://www.swarmprediction.com/about.html">SwarmPrediction.com</a> for further analysis, and can be retrieved by anyone.  

![](https://github.com/microprediction/pandemic/blob/master/images/pandemic.png)

### Motivaton 

Covered in this [post](https://www.linkedin.com/pulse/pandemic-minimalist-2d-ornstein-uhlenbeck-model-peter-cotton-phd) with 
the followup [here](https://www.linkedin.com/pulse/dear-new-zealand-heres-how-simulate-covid-19-all-your-cotton-phd/) where possible
improvements are also discussed and acknowledgements are made. See also the SwarmPrediction.Com [list of articles](www.swarmprediction.com/articles.html). The author is not an epidemiologist. The model expresses no opinions
on the health aspects of COVID-19. The model offers a novel motion model with some interesting
analytic properties also discussed in the [article](https://www.linkedin.com/pulse/dear-new-zealand-heres-how-simulate-covid-19-all-your-cotton-phd/) referenced
above and presented in a more technical [working paper](https://www.overleaf.com/read/sgjvfxydcwpk) shared on Overleaf.

### Basic Usage

    pip install pandemic
    >> from pandemic import run
    >> run()
    
See also <a href="https://github.com/microprediction/pandemic/tree/master/examples">examples</a> of
library use and <a href="https://github.com/microprediction/pandemic/tree/master/examples_of_surrogate_use">examples of using the public
database of simulations</a> generated by this model. 

### Other entry points. 

- pandemic.simulation.simulate is the main routine
- pandemic.client offers an alternative in object oriented style 

### Modifying

See pandemic/client.py for examples of extending the newer style to include data storage, lockdown and so forth. 

#### Docker

Pandemic can be run in a docker container. 

```
docker run xtellurian/pandemic
```

### Crowd-sourced surrogate model 

See <a href="https://www.swarmprediction.com/about.html">SwarmPrediction.com</a> for an explanation of 
a SETI-like project to crowd-source a surrogate model. 

### Basic elements of the model 

Covered in detail in this [article](https://www.linkedin.com/pulse/dear-new-zealand-heres-how-simulate-covid-19-all-your-cotton-phd/). As noted some analytical properties of 
special cases of the model are discussed in a [working paper](https://www.overleaf.com/read/sgjvfxydcwpk). 

### Contributing 

Opinions and issues are most welcome.