diff --git a/.github/workflows/helper-tests.yml b/.github/workflows/helper-tests.yml index 61ada0c..c6b1e4e 100644 --- a/.github/workflows/helper-tests.yml +++ b/.github/workflows/helper-tests.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v3 diff --git a/__init__.py b/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/setup.cfg b/setup.cfg index 9a97d1b..6993d4a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = blueink-client-python -version = 0.9.3 +version = 0.9.4 author = Blueink author_email = pypi@blueink.com description = Python Client for Blueink eSignature API diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/blueink/__init__.py b/src/blueink/__init__.py index bffa4c0..43671b0 100644 --- a/src/blueink/__init__.py +++ b/src/blueink/__init__.py @@ -1,8 +1,8 @@ from requests import exceptions -from .client import Client -from .bundle_helper import BundleHelper -from .person_helper import PersonHelper -from . import constants +import blueink.constants +from blueink.bundle_helper import BundleHelper +from blueink.client import Client +from blueink.person_helper import PersonHelper __all__ = ["Client", "BundleHelper", "PersonHelper", "exceptions", "constants"] diff --git a/src/blueink/bundle_helper.py b/src/blueink/bundle_helper.py index 0987ab0..c14ae53 100644 --- a/src/blueink/bundle_helper.py +++ b/src/blueink/bundle_helper.py @@ -3,7 +3,7 @@ from os.path import basename from typing import List -from .model.bundles import ( +from blueink.model.bundles import ( Bundle, Document, Field, diff --git a/src/blueink/client.py b/src/blueink/client.py index 9606027..867cb46 100644 --- a/src/blueink/client.py +++ b/src/blueink/client.py @@ -1,16 +1,16 @@ from os import environ -from src.blueink.constants import ( +from blueink.constants import ( DEFAULT_BASE_URL, ENV_BLUEINK_API_URL, ENV_BLUEINK_PRIVATE_API_KEY, ) -from src.blueink.request_helper import RequestHelper -from src.blueink.subclients.bundle import BundleSubClient -from src.blueink.subclients.packet import PacketSubClient -from src.blueink.subclients.person import PersonSubClient -from src.blueink.subclients.template import TemplateSubClient -from src.blueink.subclients.webhook import WebhookSubClient +from blueink.request_helper import RequestHelper +from blueink.subclients.bundle import BundleSubClient +from blueink.subclients.packet import PacketSubClient +from blueink.subclients.person import PersonSubClient +from blueink.subclients.template import TemplateSubClient +from blueink.subclients.webhook import WebhookSubClient class Client: diff --git a/src/blueink/model/bundles.py b/src/blueink/model/bundles.py index 029cfb3..b8b9f61 100644 --- a/src/blueink/model/bundles.py +++ b/src/blueink/model/bundles.py @@ -1,9 +1,10 @@ import random import string from typing import List, Optional -from pydantic import BaseModel, validator, EmailStr -from ..constants import DELIVER_VIA, FIELD_KIND +from pydantic import BaseModel, EmailStr, validator + +from blueink.constants import DELIVER_VIA, FIELD_KIND class ValidationError(RuntimeError): diff --git a/src/blueink/model/webhook.py b/src/blueink/model/webhook.py index 630c95b..9420a8e 100644 --- a/src/blueink/model/webhook.py +++ b/src/blueink/model/webhook.py @@ -1,7 +1,8 @@ from typing import List, Optional -from pydantic import BaseModel, validator, Field -from src.blueink.constants import EVENT_TYPE +from pydantic import BaseModel, Field, validator + +from blueink.constants import EVENT_TYPE class WebhookExtraHeaderSchema(BaseModel): diff --git a/src/blueink/paginator.py b/src/blueink/paginator.py index 18dad2b..8ac51a7 100644 --- a/src/blueink/paginator.py +++ b/src/blueink/paginator.py @@ -1,6 +1,6 @@ from requests.exceptions import HTTPError -from .request_helper import NormalizedResponse +from blueink.request_helper import NormalizedResponse class PaginatedIterator: diff --git a/src/blueink/person_helper.py b/src/blueink/person_helper.py index c316015..b189b7b 100644 --- a/src/blueink/person_helper.py +++ b/src/blueink/person_helper.py @@ -1,6 +1,6 @@ from typing import List -from .model.persons import ContactChannelSchema, PersonSchema +from blueink.model.persons import ContactChannelSchema, PersonSchema class PersonHelper: diff --git a/src/blueink/request_helper.py b/src/blueink/request_helper.py index 6b54667..b39a687 100644 --- a/src/blueink/request_helper.py +++ b/src/blueink/request_helper.py @@ -1,9 +1,8 @@ import requests - from munch import munchify from requests import Request, Session -from .constants import BLUEINK_PAGINATION_HEADER +from blueink.constants import BLUEINK_PAGINATION_HEADER class Pagination: diff --git a/src/blueink/subclients/bundle.py b/src/blueink/subclients/bundle.py index e70ef07..ed41ac3 100644 --- a/src/blueink/subclients/bundle.py +++ b/src/blueink/subclients/bundle.py @@ -4,12 +4,12 @@ from munch import Munch -from src.blueink import endpoints -from src.blueink.bundle_helper import BundleHelper -from src.blueink.constants import BUNDLE_STATUS -from src.blueink.paginator import PaginatedIterator -from src.blueink.request_helper import NormalizedResponse -from src.blueink.subclients.subclient import SubClient +from blueink import endpoints +from blueink.bundle_helper import BundleHelper +from blueink.constants import BUNDLE_STATUS +from blueink.paginator import PaginatedIterator +from blueink.request_helper import NormalizedResponse +from blueink.subclients.subclient import SubClient class BundleSubClient(SubClient): diff --git a/src/blueink/subclients/packet.py b/src/blueink/subclients/packet.py index b8ff17a..06cc7c8 100644 --- a/src/blueink/subclients/packet.py +++ b/src/blueink/subclients/packet.py @@ -1,6 +1,6 @@ -from src.blueink import endpoints -from src.blueink.request_helper import NormalizedResponse -from src.blueink.subclients.subclient import SubClient +from blueink import endpoints +from blueink.request_helper import NormalizedResponse +from blueink.subclients.subclient import SubClient class PacketSubClient(SubClient): diff --git a/src/blueink/subclients/person.py b/src/blueink/subclients/person.py index 2904235..6189c4b 100644 --- a/src/blueink/subclients/person.py +++ b/src/blueink/subclients/person.py @@ -1,8 +1,8 @@ -from src.blueink import endpoints -from src.blueink.paginator import PaginatedIterator -from src.blueink.person_helper import PersonHelper -from src.blueink.request_helper import NormalizedResponse -from src.blueink.subclients.subclient import SubClient +from blueink import endpoints +from blueink.paginator import PaginatedIterator +from blueink.person_helper import PersonHelper +from blueink.request_helper import NormalizedResponse +from blueink.subclients.subclient import SubClient class PersonSubClient(SubClient): diff --git a/src/blueink/subclients/subclient.py b/src/blueink/subclients/subclient.py index ed67650..13f9523 100644 --- a/src/blueink/subclients/subclient.py +++ b/src/blueink/subclients/subclient.py @@ -1,5 +1,5 @@ -from src.blueink import endpoints -from src.blueink.request_helper import RequestHelper +from blueink import endpoints +from blueink.request_helper import RequestHelper class SubClient: diff --git a/src/blueink/subclients/template.py b/src/blueink/subclients/template.py index 961d943..0613b9a 100644 --- a/src/blueink/subclients/template.py +++ b/src/blueink/subclients/template.py @@ -1,7 +1,7 @@ -from src.blueink import endpoints -from src.blueink.paginator import PaginatedIterator -from src.blueink.request_helper import NormalizedResponse -from src.blueink.subclients.subclient import SubClient +from blueink import endpoints +from blueink.paginator import PaginatedIterator +from blueink.request_helper import NormalizedResponse +from blueink.subclients.subclient import SubClient class TemplateSubClient(SubClient): diff --git a/src/blueink/subclients/webhook.py b/src/blueink/subclients/webhook.py index bda2664..1adac16 100644 --- a/src/blueink/subclients/webhook.py +++ b/src/blueink/subclients/webhook.py @@ -1,6 +1,6 @@ -from src.blueink import endpoints -from src.blueink.request_helper import NormalizedResponse -from src.blueink.subclients.subclient import SubClient +from blueink import endpoints +from blueink.request_helper import NormalizedResponse +from blueink.subclients.subclient import SubClient class WebhookSubClient(SubClient): diff --git a/src/blueink/tests/test_bundle_helper.py b/src/blueink/tests/test_bundle_helper.py index 9c2dc35..0d4dbd4 100644 --- a/src/blueink/tests/test_bundle_helper.py +++ b/src/blueink/tests/test_bundle_helper.py @@ -1,12 +1,9 @@ import copy -from base64 import b64encode -from os.path import basename from munch import Munch -from src.blueink import BundleHelper, Client -from src.blueink.person_helper import PersonHelper -from src.blueink.utils.testcase import TestCase +from blueink.bundle_helper import BundleHelper +from blueink.utils.testcase import TestCase class TestBundleHelper(TestCase): diff --git a/src/blueink/tests/test_client.py b/src/blueink/tests/test_client.py index cc9330d..67a5ff4 100644 --- a/src/blueink/tests/test_client.py +++ b/src/blueink/tests/test_client.py @@ -5,9 +5,9 @@ from munch import Munch -from src.blueink import BundleHelper, Client, PersonHelper -from src.blueink.constants import EVENT_TYPE -from src.blueink.utils.testcase import TestCase +from blueink import BundleHelper, Client, PersonHelper +from blueink.constants import EVENT_TYPE +from blueink.utils.testcase import TestCase class TestClient(TestCase): diff --git a/src/blueink/tests/test_person_helper.py b/src/blueink/tests/test_person_helper.py index 1ac1329..7939029 100644 --- a/src/blueink/tests/test_person_helper.py +++ b/src/blueink/tests/test_person_helper.py @@ -1,5 +1,5 @@ -from src.blueink.person_helper import PersonHelper -from src.blueink.utils.testcase import TestCase +from blueink.person_helper import PersonHelper +from blueink.utils.testcase import TestCase class TestPersonHelper(TestCase):