Skip to content

Commit

Permalink
fixed internal modules import error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushal-Dhungel committed Aug 30, 2021
1 parent 9752413 commit d8bfffa
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
EMAIL = "[email protected]"
AUTHOR = "Kaushal Dhungel"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "0.0.8"
VERSION = "0.0.9"

REQUIRED = [
'WebOb==1.8.7',
Expand All @@ -34,7 +34,7 @@
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
download_url = 'https://github.com/Kaushal-Dhungel/tiny-api/archive/refs/tags/0.0.8.tar.gz',
download_url = 'https://github.com/Kaushal-Dhungel/tiny-api/archive/refs/tags/0.0.9.tar.gz',
packages=['tiny_api'],
install_requires=REQUIRED,
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion tiny_api/JsonResponse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from webob import Response, response
from webob import Response
import json

def JsonResponse(result:dict,status_code):
Expand Down
2 changes: 1 addition & 1 deletion tiny_api/Requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from webob import Request as WebobRequest
from constants import SECRET_KEY
from .constants import SECRET_KEY

class Request(WebobRequest):

Expand Down
6 changes: 3 additions & 3 deletions tiny_api/api.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from webob import Response
from Requests import Request
from .Requests import Request
from parse import parse
import inspect
import os
from jinja2 import Environment, FileSystemLoader
from whitenoise import WhiteNoise
from middleware import Middleware
from constants import METHODS
from .middleware import Middleware
from .constants import METHODS


class API:
Expand Down
8 changes: 4 additions & 4 deletions tiny_api/auth.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from jwt_token import decode_access_token
from JsonResponse import JsonResponse
from .jwt_token import decode_access_token
from .JsonResponse import JsonResponse
from jwt.exceptions import InvalidSignatureError, InvalidTokenError, InvalidAlgorithmError, ExpiredSignatureError
from constants import SECRET_KEY
from get_env_var import get_env_vars
from .constants import SECRET_KEY
from .get_env_var import get_env_vars

def authenticated(func):

Expand Down
4 changes: 2 additions & 2 deletions tiny_api/jwt_token.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import datetime, timedelta
import jwt
import random
from constants import SECRET_KEY, ALGORITHM
from get_env_var import get_env_vars
from .constants import SECRET_KEY, ALGORITHM
from .get_env_var import get_env_vars


def create_access_token(user_id,username,seconds,secret_key= None):
Expand Down
4 changes: 2 additions & 2 deletions tiny_api/middleware.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from jwt.exceptions import InvalidSignatureError
from webob import Request, Response
from Requests import Request
from jwt_token import decode_access_token
from .Requests import Request
from .jwt_token import decode_access_token

class Middleware:
def __init__(self,app) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tiny_api/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from get_env_var import get_env_vars
from .get_env_var import get_env_vars

print(get_env_vars('fuck'))

0 comments on commit d8bfffa

Please sign in to comment.