An open API service indexing awesome lists of open source software.

https://github.com/protojour/mikrokosmos

A (test) data generator and scenario simulation framework
https://github.com/protojour/mikrokosmos

Last synced: 6 months ago
JSON representation

A (test) data generator and scenario simulation framework

Awesome Lists containing this project

README

          

Mikrokosmos
===========

**A (test) data generator and scenario simulation framework**

Mikrokosmos allows you to define and run scenarios of simulated events through its command line client, `mikro`. Scenarios are described as YAML files [...]. Simulation data can be output in multiple formats – logs, json data etc.

Mikrokosmos was designed specifically to generate test data, so most of its included functionality is geared towards this. If you have an idea for how its functionality can be extended for other uses, let us know.

Installation
------------

Mikrokosmos requires Python 3.6 or higher, and is tested with PyPy3.

```bash
$ pip install --user mikrokosmos
```

Usage
-----

Generate static data from a scenario:

```bash
$ mikro gen scenario.yml
```

Generate static data with JSON indentation, redirect to file:

```bash
$ mikro gen -n 4 scenario.yml > data.json
```

Planned functionality
---------------------

- [x] Data generation (random etc.)
- [x] Simple JSON output
- [ ] Configurable output (separate JSON files, logs)
- [ ] Environments and populations
- [ ] Environment state, per-object state, resources
- [ ] State machines for processes?
- [ ] Activity and events simulated over time
- [ ] Realtime simulations

License
-------

Mikrokosmos is copyright © 2020 Protojour AS, and is licensed under MIT. See [LICENSE.txt](https://github.com/protojour/mikrokosmos/blob/master/LICENSE.txt) for details.