Skip to main content

Python SDK for using SOCO platform

Project description

SOCO-Doc-Parser Python SDK

Python client to use SOCO document parsing platform

Install

pip install soco-doc-parser-python

Quick Start

This following example can be found at: quick_start.py. To see more examples, check out /examples folder

First of all, register at https://app.soco.ai. After get your API_KEYs, you can parse document files using 10 lines of code!

from soco_parser.doc_api import DocAPI
from soco_parser.utils import pprint_json


if __name__ == '__main__':
    PARSER_API_KEY = 'convmind'
    client = DocAPI(PARSER_API_KEY)
    """
        parsing a url
    """
    #url = "https://convmind-images.s3.us-east-2.amazonaws.com/pdfview/Fresh_Start_Program_Summary.pdf"
    #parsed_data = client.parse(file_url=url)

    """
        parsing a local file
    """
    parsed_data = client.parse_local_file("resources/1906.09308.pdf",lang="en") #lang="en" or lang="zh"
    pprint_json(parsed_data)

Contact

kyusongl@soco.ai

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for soco-doc-parser-python, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size soco-doc-parser-python-0.0.3.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page