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.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-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartextract-0.6.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.tar.gz
Algorithm Hash digest
SHA256 73542fe301de118669c0adf5d69333a39072a9f27dd45e0ac33e070e52bace77
MD5 66029172e5cb97a112d97d898546e837
BLAKE2b-256 6814ff9e7df721db4b4f07ed01c75dcc137fa3362659d910d2ecb20d11ac5c18

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for smartextract-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1d04b2c632bd6ca9c51f0dba19a8f4907445118490dbd24ce70d6f01e1ad3747
MD5 22677ec592a0a516ef86b0caed19f7e7
BLAKE2b-256 d50f6fdd80e2f3e52dc48526db9252eb4c9ee6f22e8d8ffc40406465f3c550d7

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