No project description provided
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
API wrapper for Inscribe
For more information, please read our documentation.
Breaking Changes
From v3.0.0 onwards, the following API token formats have been removed: 1. Supplying an api_key argument. 2. Supplying an access_key and secret_key.
From v3.0.0 onwards, you must supply a secret_token which is supplied to you on creation of an API token.
Installation
pip install inscribe
Usage
import inscribe
import json
# API Authentication
api = inscribe.Client(secret_token="YOUR_API_SECRET_TOKEN")
# Create customer folder
customer = api.create_customer(name="new")
customer_id = customer['data']['id']
# Upload document
doc_obj = open("YOUR_FILE.pdf", "rb")
document = api.upload_document(customer_id=customer_id, document=doc_obj)
document_id = document['result_urls'][0]['document_id']
# Check document
result = api.retrieve_document_results(customer_id=customer_id, document_id=document_id)
print(json.dumps(result, indent=2))
Project details
Release history Release notifications | RSS feed
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 inscribe-3.1.0.tar.gz.
File metadata
- Download URL: inscribe-3.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97b06ea0b6d330f30a249f7b617bb48d809bab28e1a031593f18257feb1fae48
|
|
| MD5 |
cdd01abe07cb14ebe6c5182ea6e34689
|
|
| BLAKE2b-256 |
5b3899643fdbc419a14182fef262951882128ea182fa378480ab01960cb4b012
|
File details
Details for the file inscribe-3.1.0-py3-none-any.whl.
File metadata
- Download URL: inscribe-3.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0af73ee4ed5241ff1317fe3d8bd7ab6cc66204b831f5a7c172b6285bb9532445
|
|
| MD5 |
8ed566799a3ebd3d9e40294554ef1bd0
|
|
| BLAKE2b-256 |
d4af0e9dc00572992747fe2f94241e80a8c4613ce1602e37094f69225b8b92d5
|