Skip to content

Commit

Permalink
interlex_session fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbugs committed Apr 27, 2020
1 parent a55a02a commit c7e46e5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ontquery/plugins/services/interlex_session.py
@@ -1,14 +1,10 @@
import json
import os
from typing import Union, Dict, List, Tuple
from urllib.parse import urljoin, urlparse

import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry

from pyontutils.utils import Async, deferred


class InterlexSession:
""" Boiler plate for SciCrunch server responses. """
Expand Down Expand Up @@ -121,12 +117,3 @@ def _get(self, endpoint: str, data: dict = None) -> dict:
def _post(self, endpoint: str , data: dict = None) -> dict:
""" Quick POST for SciCrunch. """
return self.__session_shortcut(endpoint, data, 'POST')


def main():
ilx = InterlexSession(key=os.environ.get('INTERLEX_API_KEY'))
print(ilx.key, ilx.host)


if __name__ == '__main__':
main()

0 comments on commit c7e46e5

Please sign in to comment.