Skip to main content

smartextract Python SDK

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartextract-0.9.tar.gz (64.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartextract-0.9-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file smartextract-0.9.tar.gz.

File metadata

  • Download URL: smartextract-0.9.tar.gz
  • Upload date:
  • Size: 64.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.5 HTTPX/0.28.1

File hashes

Hashes for smartextract-0.9.tar.gz
Algorithm Hash digest
SHA256 da157cb40f5262858ccffcb02107281d3b85a310370f83a1b2ce675c69971805
MD5 e94010c0790053f2063f3673b1e96063
BLAKE2b-256 b083287e0c36ecebd197570fc4153ed52bdd5163a221cff630daaacb25dd9b37

See more details on using hashes here.

File details

Details for the file smartextract-0.9-py3-none-any.whl.

File metadata

  • Download URL: smartextract-0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.5 HTTPX/0.28.1

File hashes

Hashes for smartextract-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0cbffbf0401a46ab97bfcefc6053d9e7e3c0d1cd7b7b50f762947b0b63524225
MD5 21fee5f50d79163183807ceb6fbcd078
BLAKE2b-256 acce5d2d5dc16bf6862d909b25eb3ad3ff526fa623ecbbc19bced9aae7dee0b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page