python-anvil 5.1.2__py3-none-any.whl → 6.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_anvil/__init__.py +21 -7
- python_anvil/api.py +596 -345
- python_anvil/api_resources/base.py +1 -4
- python_anvil/api_resources/mutations/__init__.py +8 -0
- python_anvil/api_resources/mutations/base.py +30 -17
- python_anvil/api_resources/mutations/create_etch_packet.py +63 -108
- python_anvil/api_resources/mutations/forge_submit.py +22 -69
- python_anvil/api_resources/mutations/generate_etch_signing_url.py +8 -8
- python_anvil/api_resources/mutations/helpers.py +2 -4
- python_anvil/api_resources/payload.py +86 -103
- python_anvil/auth.py +60 -0
- python_anvil/cli.py +129 -166
- python_anvil/constants.py +39 -21
- python_anvil/errors.py +132 -0
- python_anvil/exceptions.py +7 -4
- python_anvil/graphql/__init__.py +11 -0
- python_anvil/graphql/mutations/__init__.py +14 -0
- python_anvil/graphql/mutations/create_etch_packet.py +79 -0
- python_anvil/graphql/mutations/forge_submit.py +60 -0
- python_anvil/graphql/mutations/generate_etch_sign_url.py +12 -0
- python_anvil/graphql/mutations/remove_weld_data.py +9 -0
- python_anvil/graphql/queries/__init__.py +4 -0
- python_anvil/graphql/queries/etch_packet.py +45 -0
- python_anvil/graphql/selection.py +15 -0
- python_anvil/http.py +286 -196
- python_anvil/models.py +40 -18
- python_anvil/rate_limit.py +272 -0
- python_anvil/types/__init__.py +58 -0
- python_anvil/types/_base.py +21 -0
- python_anvil/types/graphql.py +2626 -0
- python_anvil/types/operations.py +1261 -0
- python_anvil/types/rest.py +700 -0
- python_anvil/upload.py +269 -0
- python_anvil/utils.py +6 -1
- python_anvil-6.0.0.dist-info/METADATA +751 -0
- python_anvil-6.0.0.dist-info/RECORD +41 -0
- {python_anvil-5.1.2.dist-info → python_anvil-6.0.0.dist-info}/WHEEL +1 -1
- python_anvil/api_resources/requests.py +0 -183
- python_anvil/tests/__init__.py +0 -1
- python_anvil/tests/conftest.py +0 -11
- python_anvil/tests/payloads.py +0 -92
- python_anvil/tests/test_api.py +0 -457
- python_anvil/tests/test_cli.py +0 -112
- python_anvil/tests/test_http.py +0 -145
- python_anvil/tests/test_models.py +0 -264
- python_anvil/tests/test_utils.py +0 -39
- python_anvil-5.1.2.dist-info/METADATA +0 -77
- python_anvil-5.1.2.dist-info/RECORD +0 -32
- {python_anvil-5.1.2.dist-info → python_anvil-6.0.0.dist-info}/entry_points.txt +0 -0
- {python_anvil-5.1.2.dist-info → python_anvil-6.0.0.dist-info/licenses}/LICENSE.md +0 -0
python_anvil/__init__.py
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
from importlib.metadata import PackageNotFoundError, version
|
|
2
2
|
|
|
3
|
-
from python_anvil import api, cli
|
|
4
|
-
from python_anvil.models import FileCompatibleBaseModel
|
|
5
|
-
|
|
6
3
|
|
|
7
4
|
try:
|
|
8
|
-
__version__ = version(
|
|
9
|
-
except PackageNotFoundError:
|
|
10
|
-
__version__ =
|
|
5
|
+
__version__ = version("python_anvil")
|
|
6
|
+
except PackageNotFoundError: # pragma: no cover
|
|
7
|
+
__version__ = "(local)"
|
|
8
|
+
|
|
9
|
+
from python_anvil.api import Anvil
|
|
10
|
+
from python_anvil.constants import VERSION_LATEST, VERSION_LATEST_PUBLISHED
|
|
11
|
+
from python_anvil.errors import AnvilError, AnvilRequestError
|
|
12
|
+
from python_anvil.models import FileCompatibleBaseModel
|
|
13
|
+
from python_anvil.upload import UploadWithOptions, prepare_graphql_file
|
|
14
|
+
|
|
11
15
|
|
|
12
|
-
__all__ = [
|
|
16
|
+
__all__ = [
|
|
17
|
+
"VERSION_LATEST",
|
|
18
|
+
"VERSION_LATEST_PUBLISHED",
|
|
19
|
+
"Anvil",
|
|
20
|
+
"AnvilError",
|
|
21
|
+
"AnvilRequestError",
|
|
22
|
+
"FileCompatibleBaseModel",
|
|
23
|
+
"UploadWithOptions",
|
|
24
|
+
"__version__",
|
|
25
|
+
"prepare_graphql_file",
|
|
26
|
+
]
|