Added nodeodm app proof of concept (working) to communicate with node-OpenDroneMap, license

pull/17/head
Piero Toffanin 2016-09-20 18:18:10 -04:00
rodzic 186078a1ae
commit b5a0619df5
11 zmienionych plików z 69 dodań i 3 usunięć

7
LICENSE.md 100644
Wyświetl plik

@ -0,0 +1,7 @@
Copyright 2015-2016 WebODM Contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Wyświetl plik

@ -0,0 +1 @@
from api_client import *

3
nodeodm/admin.py 100644
Wyświetl plik

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

Wyświetl plik

@ -0,0 +1,11 @@
"""
A wrapper around Bravado to communicate with a node-OpenDroneMap node.
"""
from bravado.client import SwaggerClient
class ApiClient:
def __init__(self, host, port):
# TODO
client = SwaggerClient.from_url('http://{}:{}/swagger.json'.format(host, port))
print client.server.get_info().result()
print dir(client)

7
nodeodm/apps.py 100644
Wyświetl plik

@ -0,0 +1,7 @@
from __future__ import unicode_literals
from django.apps import AppConfig
class NodeodmConfig(AppConfig):
name = 'nodeodm'

Wyświetl plik

@ -0,0 +1,5 @@
from __future__ import unicode_literals
from django.db import models
# Create your models here.

3
nodeodm/tests.py 100644
Wyświetl plik

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
nodeodm/views.py 100644
Wyświetl plik

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

Wyświetl plik

@ -1,7 +1,32 @@
Django==1.10
PyYAML==3.12
anyjson==0.3.3
attrs==16.2.0
bravado==8.3.0
bravado-core==4.5.0
cffi==1.8.3
crochet==1.5.0
cryptography==1.5
Django==1.10
enum34==1.1.6
fido==3.2.0
functools32==3.2.3.post2
idna==2.1
ipaddress==1.0.17
jsonschema==2.5.1
pillow==3.3.1
psycopg2==2.6.2
pyasn1==0.1.9
pyasn1-modules==0.0.8
pycparser==2.14
pyOpenSSL==16.1.0
python-dateutil==2.5.3
pytz==2016.6.1
wsgiref==0.1.2
PyYAML==3.12
requests==2.11.1
service-identity==16.0.0
simplejson==3.8.2
six==1.10.0
swagger-spec-validator==2.0.2
Twisted==16.4.1
yelp-bytes==0.3.0
yelp-encodings==0.1.3
zope.interface==4.3.2

Wyświetl plik

@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'app',
'nodeodm'
]
MIDDLEWARE = [