File tree 2 files changed +22
-0
lines changed 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,21 @@ sudo service lxc-net restart
26
26
## Running locally
27
27
28
28
```
29
+ git clone https://github.com/m4n3dw0lf/flask-lxc
29
30
sudo pip install -r requirements.txt
30
31
sudo python run.py
31
32
```
32
33
33
34
## Importing as blueprint on your flask app
34
35
36
+ - install the package
37
+
38
+ ```
39
+ pip install flask_lxc
40
+ ```
41
+
42
+ - register the blueprint
43
+
35
44
```
36
45
from flask import Flask
37
46
from flask_lxc import lxc_api
Original file line number Diff line number Diff line change
1
+ from distutils .core import setup
2
+
3
+ setup (
4
+ name = 'flask-lxc' ,
5
+ packages = ['flask_lxc' ],
6
+ version = '0.0.1' ,
7
+ description = 'Flask LXC API Blueprint' ,
8
+ author = 'Angelo Moura' ,
9
+
10
+ url = 'https://github.com/m4n3dw0lf/flask-lxc' ,
11
+ download_url = 'https://github.com/m4n3dw0lf/flask-lxc/archive/0.0.1.tar.gz' ,
12
+ install_requires = ['Flask>=0.10.1' ,'lxc-python2>=0.1' ]
13
+ )
You can’t perform that action at this time.
0 commit comments