gql
requirement is now3.6.0b2
- Python requirement is now
>= 3.8.0,<3.13
. - Updated
pylint
to^3.0
in support of the above.
- [BREAKING CHANGE] Python requirement is now
>= 3.8.0,<3.12
. - Unpegged
urllib3
. - Utilizing pydantic v2 syntax and best practices.
- Improves file handling with
FileCompatibleBaseModel
(Thanks @cyrusradfar!)
- Updated
pydantic
package dependency tov2
, but still usingv1
internally. - [BREAKING CHANGE] Python requirement is now
>= 3.8.0
, up from>= 3.7.2
.
- Fixed issue with
requests_toolbelt
(gql
dependency) using an incompatible version ofurllib3
. This caused an error ofImportError: cannot import name 'appengine'
to be thrown.
- [BREAKING CHANGE]
graphql-python/gql
is now the main GraphQL client implementation. All functions should still work the same as before. If there are any issues please let us know inpython-anvil
GitHub issues. - Updated examples to reflect new GraphQL implementation and added
examples/make_graphql_request.py
example.
- [BREAKING CHANGE] Minimum required Python version updated to
>=3.7.2
- Clearer version number support
- Add additional variables for
CreateEtchPacket
mutation - Add missing
webhookURL
variable inForgeSubmit
mutation - Add
forgeSubmit
example
- Added support for multipart uploads on
CreateEtchPacket
requests. - New example for multipart uploads in
examples/create_etch_upload_file_multipart.py
- Added environment variable usage in all
examples/
files for easier usage. - Updated a few minor development packages.
- Added support for
version_number
in PDF Fill requests.
- Added support for HTML/CSS and Markdown in
CreateEtchPacket
. See examples here.
- Added support for
ForgeSubmit
mutation.
- Updated
mkdocs
dependency to fix issue with Read the Docs.
- Updated a number of packages to fix linter and pre-commit issues
- Added support for
CreateEtchPacket.merge_pdfs
.
- Updated
click
package dependency to^8.0
- Update other minor dependencies. See full list here.
- Fixed optional field
CreateEtchPacket.signature_email_subject
being required. This is now truly optional. - Added support for
CreateEtchPacket.signature_email_body
. - Added support for
CreateEtchPacket.replyToName
andCreateEtchPacket.replyToEmail
which customizes the "Reply-To" header in Etch packet emails.
- Fixed issue with Etch packet
is_test
andis_draft
options not properly applying to the final GraphQL mutation when usingCreateEtchPacket.create_payload
.
- Added
py.typed
for better mypy support. - Updated a number of dev dependencies.
- Added support for
webhook_url
on Etch packets. Please see theCreateEtchPacketPayload
class and Anvil API docs for more info. - Better support for extra (unsupported) fields in all models. Previously fields not defined in models would be stripped, or would raise a runtime error. Additional fields will no longer be stripped and will be used in JSON payloads as you may expect. Note that, though this is now supported, the Anvil API will return an error for any unsupported fields.
- Updated documentation.
- [BREAKING CHANGE]
dataclasses-json
library removed and replaced with pydantic. This should not affect any users who only use the CLI and API methods, but if you are using any models directly fromapi_resources/payload.py
, you will likely need to update all usages. Please see pydantic's docs for more details. - [BREAKING CHANGE] Increased minimum required Python version to 3.6.2.
- Updated
EtchSigner
model to be more in sync with new official documentation. Seecreate_etch_existing_cast.py
file for examples andapi_resources/payload.py
forEtchSigner
changes. - Updated CLI command
anvil cast --list
to only return casts that are templates. Useanvil cast --all
if you'd like the previous behavior. - Updated a number of dependencies, the vast majority being dev-dependencies.
- Fixed API ratelimit not being set correctly
- Added support for setting API key environment which sets different API rate limits
- Added support for
--include-headers
in all API methods which includes HTTP response headers in function returns - Added support for
--retry
in all API methods which enables/disables automatic retries - Added support for
--debug
flag in CLI which outputs headers from HTTP responses
- Added support for HTML to PDF on
generate_pdf
- Fixed for REST API calls failing
- Added GraphQL queries
- Raw queries
- casts
- etchPackets
- currentUser
- availableQueries
- welds
- weldData
- Added GraphQL mutations
- TODO: sendEtchPacket
- createEtchPacket
- generateEtchSignURL
- Added other requests
- Fill PDF
- Generate PDF
- Download Documents