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.9 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.6.1.tar.gz (63.7 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.6.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartextract-0.6.1.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for smartextract-0.6.1.tar.gz
Algorithm Hash digest
SHA256 fafaa63a854ad55bbe62f37243fca7e1481b7424fcc90c22df0c65a5f0edb1ce
MD5 0d957dd4eb1e97aa69042fc7551498c1
BLAKE2b-256 36ae92b92d6c01c72c85322b25201d31f95d18cc8acaf908722bbde3d2cf0c4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smartextract-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for smartextract-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17463ca4c58cf615743b35630327114f76dcc0a8b48a308a7c2ae175d52ce874
MD5 a68c3d2197f838eac2a06c33e13d296d
BLAKE2b-256 1f060e3e7a3b63b814a7697a77c0dcc0d5c81708b5b86b296314076b410f60b4

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