Skip to content

Commit

Permalink
refactor: fixed typo in package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeusina committed Mar 11, 2024
1 parent f932f37 commit 082ce2e
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 32 deletions.
5 changes: 0 additions & 5 deletions petersbugredu_wrap/__init__.py

This file was deleted.

7 changes: 0 additions & 7 deletions petersbugredu_wrap/types/__init__.py

This file was deleted.

5 changes: 5 additions & 0 deletions petersburgedu_wrap/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
Library for accessing petersburg education website via python
"""
from petersburgedu_wrap.client import Client
import petersburgedu_wrap.types
9 changes: 4 additions & 5 deletions petersbugredu_wrap/client.py → petersburgedu_wrap/client.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import json
import logging
import requests

from petersbugredu_wrap.types.education import Education
from petersbugredu_wrap.utils import endpoints, request_parameters
from petersbugredu_wrap.errors.invalid_login_or_password_exc import InvalidLoginOrPasswordException
from petersbugredu_wrap.types import Child, ActionPayload, Identity
from petersburgedu_wrap.types.education import Education
from petersburgedu_wrap.utils import endpoints, request_parameters
from petersburgedu_wrap.errors.invalid_login_or_password_exc import InvalidLoginOrPasswordException
from petersburgedu_wrap.types import Child, ActionPayload, Identity


class Client:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ def __init__(self, *args):
if args:
self.message = args[0]
else:
self.message = None
self.message = None
7 changes: 7 additions & 0 deletions petersburgedu_wrap/types/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
Module used for storing types of this library
"""
from petersburgedu_wrap.types.child import Child
from petersburgedu_wrap.types.teacher import Teacher
from petersburgedu_wrap.types.action_payload import ActionPayload
from petersburgedu_wrap.types.identity import Identity
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

import requests

from petersbugredu_wrap.types.action_payload import ActionPayload
from petersbugredu_wrap.types.estimate import Estimate
from petersbugredu_wrap.types.lesson_entry import LessonEntry
from petersbugredu_wrap.types.mark_entry import MarkEntry
from petersbugredu_wrap.types.task import Task
from petersbugredu_wrap.types.teacher import Teacher
from petersbugredu_wrap.types.identity import Identity
from petersbugredu_wrap.types.education import Education
from petersbugredu_wrap.utils import endpoints, request_parameters
from petersburgedu_wrap.types.action_payload import ActionPayload
from petersburgedu_wrap.types.estimate import Estimate
from petersburgedu_wrap.types.lesson_entry import LessonEntry
from petersburgedu_wrap.types.mark_entry import MarkEntry
from petersburgedu_wrap.types.task import Task
from petersburgedu_wrap.types.teacher import Teacher
from petersburgedu_wrap.types.identity import Identity
from petersburgedu_wrap.types.education import Education
from petersburgedu_wrap.utils import endpoints, request_parameters


@dataclasses.dataclass
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import datetime
from typing import Any

from petersbugredu_wrap.types.action_payload import ActionPayload
from petersbugredu_wrap.types.estimate import Estimate
from petersbugredu_wrap.types.identity import Identity
from petersbugredu_wrap.types.task import Task
from petersburgedu_wrap.types.action_payload import ActionPayload
from petersburgedu_wrap.types.estimate import Estimate
from petersburgedu_wrap.types.identity import Identity
from petersburgedu_wrap.types.task import Task


@dataclasses.dataclass
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
'Chrome/114.0.0.0 Safari/537.36',
'Accept': 'application/json, text/plain, */*',
'Content-Type': 'application/json'
}
}

0 comments on commit 082ce2e

Please sign in to comment.