diff --git a/README.md b/README.md index 3706b72..fe1dc58 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ More detailed documentation can be found [here](https://docs.qfield.org/referenc ## Module usage ```python -from qfieldcloud_sdk import sdk +from import sdk client = sdk.Client(url="https://app.qfield.cloud/api/v1/") client.login( diff --git a/qfieldcloud_sdk/__main__.py b/qfieldcloud_sdk/__main__.py index 7fde485..98dcca0 100644 --- a/qfieldcloud_sdk/__main__.py +++ b/qfieldcloud_sdk/__main__.py @@ -1,4 +1,4 @@ -from qfieldcloud_sdk.cli import cli +from .cli import cli if __name__ == "__main__": cli() diff --git a/qfieldcloud_sdk/cli.py b/qfieldcloud_sdk/cli.py index 37247bc..f67d748 100755 --- a/qfieldcloud_sdk/cli.py +++ b/qfieldcloud_sdk/cli.py @@ -5,8 +5,8 @@ import click -from qfieldcloud_sdk import sdk -from qfieldcloud_sdk.utils import log, print_json +from . import sdk +from .utils import log, print_json QFIELDCLOUD_DEFAULT_URL = "https://app.qfield.cloud/api/v1/" diff --git a/qfieldcloud_sdk/sdk.py b/qfieldcloud_sdk/sdk.py index 6d416da..79fd35c 100644 --- a/qfieldcloud_sdk/sdk.py +++ b/qfieldcloud_sdk/sdk.py @@ -10,8 +10,8 @@ import urllib3 from requests.adapters import HTTPAdapter, Retry -from qfieldcloud_sdk.interfaces import QfcException, QfcRequest, QfcRequestException -from qfieldcloud_sdk.utils import get_numeric_params, log +from .interfaces import QfcException, QfcRequest, QfcRequestException +from .utils import get_numeric_params, log logger = logging.getLogger(__file__)