Move into package

This commit is contained in:
Maël Kervella 2018-05-24 12:00:58 +00:00
parent 6d47993aee
commit eed616d72e
5 changed files with 7 additions and 3 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
**/__pycache__/

2
re2oapi/__init__.py Normal file
View file

@ -0,0 +1,2 @@
from re2oapi.api import Re2oAPI
from re2oapi import exceptions

View file

@ -1,8 +1,9 @@
import requests import requests
from requests.exceptions import HTTPError from requests.exceptions import HTTPError
import endpoints
import datetime import datetime
import exceptions
from re2oapi import endpoints
from re2oapi import exceptions
TIME_FOR_RENEW = 60 TIME_FOR_RENEW = 60

View file

@ -1,4 +1,4 @@
import exceptions from re2oapi import exceptions
urls = { urls = {
'root': '/api/', 'root': '/api/',