Skip to content

Commit

Permalink
Make the geo-utils like a lib importable from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmi151 committed Jan 21, 2025
1 parent 7505f99 commit 1f3cbd9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .geOrchestra import geOrchestra
from .meta_apis.ask_gn_api import Ask_gn_api
from .console.console import Console_api
1 change: 1 addition & 0 deletions console/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .console import Console_api
16 changes: 11 additions & 5 deletions geOrchestra.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@

from meta_apis.ask_gn_api import Ask_gn_api
from meta_apis.meta_manipulation import Meta_manipulation
from console.console import Console_api
import json
if __name__ == "__main__":
# adding local file
from meta_apis import Ask_gn_api
from meta_apis.meta_manipulation import Meta_manipulation
from console import Console_api
else:
# adding relative path
from .meta_apis import Ask_gn_api
from .meta_apis.meta_manipulation import Meta_manipulation
from .console import Console_api

class geOrchestra:
def __init__(self, server, username, password):
Expand All @@ -18,7 +24,7 @@ def __init__(self, server, username, password):
password = 'testadmin'

# Set up your server and the authentication URL:
server = "https://georchestra-127-0-1-1.traefik.me"
server = "https://georchestra-127-0-0-1.nip.io"

geOrchestra_api = geOrchestra(server, username, password)
geOrchestra_api.gn.generate_xsfr()
Expand Down
1 change: 1 addition & 0 deletions meta_apis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .ask_gn_api import Ask_gn_api

0 comments on commit 1f3cbd9

Please sign in to comment.