diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..61f2dc9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/__pycache__/ diff --git a/re2oapi/__init__.py b/re2oapi/__init__.py new file mode 100644 index 0000000..ea0a5ab --- /dev/null +++ b/re2oapi/__init__.py @@ -0,0 +1,2 @@ +from re2oapi.api import Re2oAPI +from re2oapi import exceptions diff --git a/api.py b/re2oapi/api.py similarity index 98% rename from api.py rename to re2oapi/api.py index 0d3c0c0..aa5a7fe 100644 --- a/api.py +++ b/re2oapi/api.py @@ -1,8 +1,9 @@ import requests from requests.exceptions import HTTPError -import endpoints import datetime -import exceptions + +from re2oapi import endpoints +from re2oapi import exceptions TIME_FOR_RENEW = 60 diff --git a/endpoints.py b/re2oapi/endpoints.py similarity index 99% rename from endpoints.py rename to re2oapi/endpoints.py index 7c739ee..913b23f 100644 --- a/endpoints.py +++ b/re2oapi/endpoints.py @@ -1,4 +1,4 @@ -import exceptions +from re2oapi import exceptions urls = { 'root': '/api/', diff --git a/exceptions.py b/re2oapi/exceptions.py similarity index 100% rename from exceptions.py rename to re2oapi/exceptions.py