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.8.tar.gz (64.1 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.8-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smartextract-0.8.tar.gz
Algorithm Hash digest
SHA256 5138bc78d7736b62c2259f7968f5d0972958d46b2c5c574295a08aa80d2a81f0
MD5 1fc7140eaca00aa41858e68b494e97fc
BLAKE2b-256 9f62ec661e03e481a316f8eb1c958f54f6c9180dadf5ff51f7f5de57ed4c69f0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for smartextract-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 40a8570275a567871e3e2d71e08f7f51fab8f8a7ab0d84e2021a3e52673105ba
MD5 5bf5aa68339df69a34fb39bbac42e340
BLAKE2b-256 106594ede0c1be88158aac6fd61fb6a54dd95c102e8bc6d4e5f36c70c59b97a5

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