lglass.md
... ...
@@ -28,10 +28,18 @@ To generate IPv6 rDNS zones:
28 28
29 29
You can also reformat RPSL files using lglass by using the lglass.rpsl module:
30 30
31
- $ python -m lglass.rpsl < $DATA/inetnum/172.22.0.53_32
31
+ $ ./bin/lglass-rpsl < $DATA/inetnum/172.22.0.53_32
32 32
33 33
lglass.rpsl also supports in-place operation:
34 34
35
- $ python -m lglass.rpsl -i $DATA/inetnum/172.22.0.53_32
35
+ $ ./bin/lglass-rpsl -i $DATA/inetnum/172.22.0.53_32
36 36
37 37
This opens the file, reads the content into memory, seeks to position 0, writes the formatted object and truncates the file.
38
+
39
+## Simple web interface
40
+
41
+lglass also comes with a simple web interface written in Python3 using Bottle and Jinja2. It also provides a binary to run it using wsgiref:
42
+
43
+ $ ./bin/lglass-web
44
+
45
+Furthermore you can use any WSGI server like Gunicorn by using lglass.web.application:app as WSGI callback. You can provide a path to the configuration file in the environment variable `LGLASS_WEB_CFG`.
... ...
\ No newline at end of file