simple microframework for microservices rapid prototyping
Project description
### About xio
Xio is a Python micro framework for quickly write simple microservices REST based Web applications and APIs.
Xio is builded on concept of resources, app , node and network
- resources:
The main concept is that everything is resource, a resource is a feature which match an uri and we can interact wich
- app:
An app is a root resource used as container for all resources it contain
- node
A node is a app gateway, an app (and so a resource) which provide unique checkpoint for resources delivery
Nodes could be linked beetween for create network
- network
A network is a container of nodes and define rules for decentralized backbone of resources
### Requirements
You need Python >= 2.7
### Installation
```
pip install xio
```
### Usage
Basic app creation
```
mkdir myfirstapp
cd myfirstapp
vi app.py
```
Here is an minimalist example of what app.py look like
```
#-*- coding: utf-8 -*--
import xio
app = xio.app(__name__)
@app.bind('www')
def _(req):
return 'Hello World'
if __name__=='__main__':
app.main()
```
start server
```
./app.py run
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
xio-0.0.3-py2.py3-none-any.whl
(55.1 kB
view hashes)
xio-0.0.3-py2.7.egg
(132.8 kB
view hashes)