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 Distribution
xio-0.0.6.tar.gz
(159.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
xio-0.0.6-py3-none-any.whl
(207.5 kB
view details)
File details
Details for the file xio-0.0.6.tar.gz.
File metadata
- Download URL: xio-0.0.6.tar.gz
- Upload date:
- Size: 159.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3acc01a1576ec7089d677f7cce42f0fce8d51e81071bdeeec737c6ff4e7e1744
|
|
| MD5 |
28bf4c98882bf4e71eaf8aac5e7d4847
|
|
| BLAKE2b-256 |
536d678d669d762209674e4c9797ed0ee22e29666c7c0b01d75c1476a8ccb2da
|
File details
Details for the file xio-0.0.6-py3-none-any.whl.
File metadata
- Download URL: xio-0.0.6-py3-none-any.whl
- Upload date:
- Size: 207.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47634b79121a7299b3df555b7d16f0e8cad00bb350c5fb4486c9ce3ededcea63
|
|
| MD5 |
73e91f1af6fbc9fac28c6e09415f6a83
|
|
| BLAKE2b-256 |
5bd4f612ac1ca41af1475b465968436c00cf5fe7d6a62b1fae37c179b153cd33
|