We recently released a new version of the Python SDK. We’re working hard to improve the experience of our developers and we heard your feedback— here’s a quick overview:
What is the v2 Python SDK?
If you’re already familiar with our Python SDK, then you know that our first version (v1) supports the Off-the-shelf APIs Invoice, Passport, and Receipt APIs, including Europe license plates. We have made various updates and improvements to this throughout the course of time. Custom documents APIs created using the API builder are now supported by the V2 python SDK.
Why should you upgrade to v2?
Simply put, because the developer experience is much better and it supports a wider range of documents!
The installation process is the same as v1:
To briefly illustrate the use of the SDK, here’s is an example of the implementation differences between v1 and v2:
For extracting documents from the off-the-shelf APIs(invoice), you’d write the following in v1:
Whereas in v2
For Custom document built API created using the API builder, in v2 you can use the following code:
To make it easier to transition from v1 to v2, check out our documentation for more details.
Extra perks with V2!
We have released v2.0.0, v2.0.1 and v2.0.2. While these releases provide support for custom documents API created using the API Builder, it also has a few changes:
v2.0.0
- now has confidence renamed to probability in the return fields to match API return
- now has client initialization reworked to be more extensible
- now has Document loading and parsing reworked to separate arguments
v2.0.1
- have improved the converting of invoice to string
- have improved the counting of empty PDF pages
- has an updated version of PikePDF
- has an updated version of Pillow for extra security.
v2.0.2
- have improved the sending financial document via the CLI
- now allows OCR return in CLI
- makes that sure all of the document information is printed
We’re excited to see what you will create with our new and improved Python SDK!
Conclusion
Want to give the new SDK version a spin? Head on over to our Python SDK section in our documentation. Have any feedback or questions you’d like to see us know? Join us in our Slack community — we’d love to hear from you!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.