smartextract Python SDK
Project description
smartextract Python SDK
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smartextract-0.7.tar.gz.
File metadata
- Download URL: smartextract-0.7.tar.gz
- Upload date:
- Size: 64.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a53c0e662338fa0174592e05ccd19766cd6b3d432e5057e3132a8fb5c3016dfe
|
|
| MD5 |
a466b5e92f9fd2e2a2b65be223c6c961
|
|
| BLAKE2b-256 |
0fc33155c30cb9a44e6f632edc2c38f2520eaa02cbbc141ceb6fa07f57fa1338
|
File details
Details for the file smartextract-0.7-py3-none-any.whl.
File metadata
- Download URL: smartextract-0.7-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fae7fa0ac89130b1a2836a591eb29e2d52c72f0cfbff6ba2e2ee160ed30022ea
|
|
| MD5 |
c35cd1126525590f62b728ea2bf95887
|
|
| BLAKE2b-256 |
94e3e744c1e59054905488e6fd7a22a913dd4c1a00e1d58725abd39cf30de157
|