Skip to main content

smartextract Python SDK

PyPI - Version PyPI - Python Version

This package provides convenient access to the smartextract REST API for Python applications.

Installation

This package requires Python 3.10 or higher and is available from PyPI:

pip install smartextract[oauth,cli-extras]

You can leave out oauth and cli-extras if you don't plan to use those features.

Usage

To make your first request to the smartextract API, first make sure that you have signed up at https://app.smartextract.ai/. Then, try the following:

import smartextract
client = smartextract.Client()
info = client.get_user_info()
print(info)

You may also generate an API key and pass it as an argument when initializing the client. This is necessary if you want to avoid the interactive login via web browser.

For more information, use your IDE to explore the methods of the Client object or refer to the user guide.

CLI

This package also offers a command line interface. To enable a few additional CLI features, install it with:

pip install smartextract[cli-extras]

Then type, for instance

smartextract get-user-info

to make a request, and

smartextract --help

for more information on all available commands and switches.

If you want to use an API key instead of the interactive OAuth authentication, generate an API key and set your environment variable SMARTEXTRACT_API_KEY.

Finally, see smartextract completion --help for instructions on how to set up command-line completion in your shell.

Metadata

Release files for smartextract 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartextract 0.9
File Size Uploaded Provenance Actions
smartextract-0.9.tar.gz 64.5 kB Without provenance Details for smartextract-0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smartextract 0.9
File Interpreter ABI Platform Actions
smartextract-0.9-py3-none-any.whl Python 3 none any Details for smartextract-0.9-py3-none-any.whl

Total release size: 85.0 kB

Release files / smartextract-0.9.tar.gz

Download URL smartextract-0.9.tar.gz
Size 64.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da157cb40f5262858ccffcb02107281d3b85a310370f83a1b2ce675c69971805
BLAKE2b-256 checksum
How to use checksums
b083287e0c36ecebd197570fc4153ed52bdd5163a221cff630daaacb25dd9b37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.14.5 HTTPX/0.28.1

Release files / smartextract-0.9-py3-none-any.whl

Download URL smartextract-0.9-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cbffbf0401a46ab97bfcefc6053d9e7e3c0d1cd7b7b50f762947b0b63524225
BLAKE2b-256 checksum
How to use checksums
acce5d2d5dc16bf6862d909b25eb3ad3ff526fa623ecbbc19bced9aae7dee0b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.14.5 HTTPX/0.28.1

Security for smartextract 0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page