python-anvil 3.0.0__tar.gz → 4.0.0__tar.gz

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.
Files changed (30) hide show
  1. {python_anvil-3.0.0 → python_anvil-4.0.0}/PKG-INFO +6 -9
  2. {python_anvil-3.0.0 → python_anvil-4.0.0}/pyproject.toml +9 -4
  3. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/base.py +4 -1
  4. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/payload.py +1 -1
  5. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/test_api.py +1 -1
  6. python_anvil-3.0.0/setup.py +0 -42
  7. {python_anvil-3.0.0 → python_anvil-4.0.0}/LICENSE.md +0 -0
  8. {python_anvil-3.0.0 → python_anvil-4.0.0}/README.md +0 -0
  9. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/__init__.py +0 -0
  10. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api.py +0 -0
  11. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/__init__.py +0 -0
  12. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/mutations/__init__.py +0 -0
  13. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/mutations/base.py +0 -0
  14. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/mutations/create_etch_packet.py +0 -0
  15. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/mutations/forge_submit.py +0 -0
  16. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/mutations/generate_etch_signing_url.py +0 -0
  17. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/mutations/helpers.py +0 -0
  18. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/api_resources/requests.py +0 -0
  19. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/cli.py +0 -0
  20. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/constants.py +0 -0
  21. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/exceptions.py +0 -0
  22. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/http.py +0 -0
  23. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/py.typed +0 -0
  24. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/__init__.py +0 -0
  25. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/conftest.py +0 -0
  26. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/payloads.py +0 -0
  27. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/test_cli.py +0 -0
  28. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/test_http.py +0 -0
  29. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/tests/test_utils.py +0 -0
  30. {python_anvil-3.0.0 → python_anvil-4.0.0}/python_anvil/utils.py +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
- Name: python-anvil
3
- Version: 3.0.0
2
+ Name: python_anvil
3
+ Version: 4.0.0
4
4
  Summary: Anvil API
5
5
  Home-page: https://www.useanvil.com/
6
6
  License: MIT
7
7
  Keywords: anvil,api,pdf,signing
8
8
  Author: Anvil Foundry Inc.
9
9
  Author-email: developers@useanvil.com
10
- Requires-Python: >=3.7.2,<3.12
10
+ Requires-Python: >=3.8.0,<3.12
11
11
  Classifier: Development Status :: 3 - Alpha
12
12
  Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Natural Language :: English
@@ -18,18 +18,15 @@ Classifier: Programming Language :: Python :: 3.8
18
18
  Classifier: Programming Language :: Python :: 3.9
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
- Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.10
23
21
  Classifier: Programming Language :: Python :: 3.7
24
- Classifier: Programming Language :: Python :: 3.8
25
- Classifier: Programming Language :: Python :: 3.9
26
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
23
  Requires-Dist: click (>=8.0,<9.0)
28
- Requires-Dist: gql[requests] (==3.5.0b1)
29
- Requires-Dist: pydantic (>=1.8.2,<2.0.0)
24
+ Requires-Dist: gql[requests] (==3.5.0)
25
+ Requires-Dist: pydantic (>=2.8.2,<3.0.0)
30
26
  Requires-Dist: ratelimit (>=2.2.1,<3.0.0)
31
27
  Requires-Dist: requests (>=2.25.0,<3.0.0)
32
28
  Requires-Dist: tabulate (>=0.9.0,<0.10.0)
29
+ Requires-Dist: urllib3 (<2)
33
30
  Project-URL: Documentation, https://github.com/anvilco/python-anvil
34
31
  Project-URL: Repository, https://github.com/anvilco/python-anvil
35
32
  Description-Content-Type: text/markdown
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
 
3
3
  name = "python_anvil"
4
- version = "3.0.0"
4
+ version = "4.0.0"
5
5
  description = "Anvil API"
6
6
  license = "MIT"
7
7
  authors = ["Anvil Foundry Inc. <developers@useanvil.com>"]
@@ -32,14 +32,19 @@ classifiers = [
32
32
 
33
33
  [tool.poetry.dependencies]
34
34
 
35
- python = ">=3.7.2,<3.12"
35
+ python = ">=3.8.0,<3.12"
36
+
37
+ # urllib must be pinned to <2 due to an issue with the `requests_toolbelt`
38
+ # dependency in `gql`.
39
+ # Similar: https://github.com/apache/arrow/commit/4295e3dd06f9f507f75ccc780eaca16a6b621a02
40
+ urllib3 = "<2"
36
41
 
37
42
  click = "^8.0"
38
43
  requests = "^2.25.0"
39
44
  ratelimit = "^2.2.1"
40
45
  tabulate = "^0.9.0"
41
- pydantic = "^1.8.2"
42
- gql = {version = "3.5.0b1", extras = ["requests"]}
46
+ pydantic = "^2.8.2"
47
+ gql = {version = "3.5.0", extras = ["requests"]}
43
48
 
44
49
  [tool.poetry.group.dev.dependencies]
45
50
 
@@ -3,7 +3,10 @@ import re
3
3
 
4
4
  # Disabling pylint no-name-in-module because this is the documented way to
5
5
  # import `BaseModel` and it's not broken, so let's keep it.
6
- from pydantic import BaseModel as _BaseModel, Extra # pylint: disable=no-name-in-module
6
+ from pydantic.v1 import ( # pylint: disable=no-name-in-module
7
+ BaseModel as _BaseModel,
8
+ Extra,
9
+ )
7
10
 
8
11
 
9
12
  under_pat = re.compile(r"_([a-z])")
@@ -5,7 +5,7 @@ from io import BufferedIOBase
5
5
 
6
6
  # Disabling pylint no-name-in-module because this is the documented way to
7
7
  # import `BaseModel` and it's not broken, so let's keep it.
8
- from pydantic import ( # pylint: disable=no-name-in-module
8
+ from pydantic.v1 import ( # pylint: disable=no-name-in-module
9
9
  Field,
10
10
  HttpUrl,
11
11
  root_validator,
@@ -1,7 +1,7 @@
1
1
  # pylint: disable=unused-variable,unused-argument,too-many-statements
2
2
  import json
3
3
  import pytest
4
- from pydantic import ValidationError
4
+ from pydantic.v1 import ValidationError
5
5
  from typing import Any, MutableMapping
6
6
  from unittest import mock
7
7
 
@@ -1,42 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- packages = \
5
- ['python_anvil',
6
- 'python_anvil.api_resources',
7
- 'python_anvil.api_resources.mutations',
8
- 'python_anvil.tests']
9
-
10
- package_data = \
11
- {'': ['*']}
12
-
13
- install_requires = \
14
- ['click>=8.0,<9.0',
15
- 'gql[requests]==3.5.0b1',
16
- 'pydantic>=1.8.2,<2.0.0',
17
- 'ratelimit>=2.2.1,<3.0.0',
18
- 'requests>=2.25.0,<3.0.0',
19
- 'tabulate>=0.9.0,<0.10.0']
20
-
21
- entry_points = \
22
- {'console_scripts': ['anvil = python_anvil.cli:cli']}
23
-
24
- setup_kwargs = {
25
- 'name': 'python-anvil',
26
- 'version': '3.0.0',
27
- 'description': 'Anvil API',
28
- 'long_description': '![Horizontal Lockupblack](https://user-images.githubusercontent.com/293079/169453889-ae211c6c-7634-4ccd-8ca9-8970c2621b6f.png#gh-light-mode-only)\n![Horizontal Lockup copywhite](https://user-images.githubusercontent.com/293079/169453892-895f637b-4633-4a14-b997-960c9e17579b.png#gh-dark-mode-only)\n\n# Anvil API Library\n\n[![PyPI Version](https://img.shields.io/pypi/v/python-anvil.svg)](https://pypi.org/project/python-anvil)\n[![PyPI License](https://img.shields.io/pypi/l/python-anvil.svg)](https://pypi.org/project/python-anvil)\n\nThis is a library that provides an interface to access the [Anvil API](https://www.useanvil.com/developers) from applications\nwritten in the Python programming language.\n\n[Anvil](https://www.useanvil.com/developers/) provides easy APIs for all things paperwork.\n\n1. [PDF filling API](https://www.useanvil.com/products/pdf-filling-api/) - fill out a PDF template with a web request and structured JSON data.\n2. [PDF generation API](https://www.useanvil.com/products/pdf-generation-api/) - send markdown or HTML and Anvil will render it to a PDF.\n3. [Etch e-sign with API](https://www.useanvil.com/products/etch/) - customizable, embeddable, e-signature platform with an API to control the signing process end-to-end.\n4. [Anvil Workflows (w/ API)](https://www.useanvil.com/products/workflows/) - Webforms + PDF + e-sign with a powerful no-code builder. Easily collect structured data, generate PDFs, and request signatures.\n\nLearn more on our [Anvil developer page](https://www.useanvil.com/developers/). See the [API guide](https://www.useanvil.com/docs) and the [GraphQL reference](https://www.useanvil.com/docs/api/graphql/reference/) for full documentation.\n\n### Documentation\n\nGeneral API documentation: [Anvil API docs](https://www.useanvil.com/docs)\n\n# Setup\n\n## Requirements\n\n* Python 3.7.2+\n\n## Installation\n\nInstall it directly into an activated virtual environment:\n\n```shell\n$ pip install python-anvil\n```\n\nor add it to your [Poetry](https://python-poetry.org/) project:\n\n```shell\n$ poetry add python-anvil\n```\n',
29
- 'author': 'Anvil Foundry Inc.',
30
- 'author_email': 'developers@useanvil.com',
31
- 'maintainer': 'None',
32
- 'maintainer_email': 'None',
33
- 'url': 'https://www.useanvil.com/',
34
- 'packages': packages,
35
- 'package_data': package_data,
36
- 'install_requires': install_requires,
37
- 'entry_points': entry_points,
38
- 'python_requires': '>=3.7.2,<3.12',
39
- }
40
-
41
-
42
- setup(**setup_kwargs)
File without changes
File without changes