GithubHelp home page GithubHelp logo

isabella232 / prowritingaid.python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prowriting/prowritingaid.python

0.0 0.0 0.0 73 KB

Official Python SDK. Grammar checking API for Python. Also includes: style improvements, terminology checking, and plagiarism checking API.

Home Page: https://prowritingaid.com/en/App/Api

Python 100.00%

prowritingaid.python's Introduction

ProWritingAidSDK

Official ProWritingAid API Version 2

This Python package is automatically generated by the Swagger Codegen project:

Requirements.

Python 2.7 or 3.4+

Installation & Usage

pip install

The python package is hosted on Github. You can install directly from Github.

pip install git+https://github.com/prowriting/prowritingaid.python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/prowriting/prowritingaid.python.git)

Then import the package:

import ProWritingAidSDK 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ProWritingAidSDK

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import ProWritingAidSDK
from ProWritingAidSDK.rest import ApiException
from pprint import pprint

configuration = ProWritingAidSDK.Configuration()
configuration.host = 'https://api.prowritingaid.com'
configuration.api_key['licenseCode'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = ProWritingAidSDK.TextApi(ProWritingAidSDK.ApiClient('https://api.prowritingaid.com'))

try:
    api_request = ProWritingAidSDK.TextAnalysisRequest("I place my cane firmly on the ground and, slowly, with its aid, "
                                                       "I lower myself from the hammock. Now the rains have gone my joints "
                                                       "don't hurt so badly. Today won't be too bad, I think. I'm prone to "
                                                       "be over optimistic. Could this be my last day. At this time the jungle "
                                                       "is strangely subdued. She poke around in the ashes. Every day the "
                                                       "weariness is even worst than beofre. I don't know yett. \n"
                                                       "Whne? What a weka statement. Jaroslav Drabny is a Czech football goalkeeper. "
                                                       "Bhuvnehwar Kumar is a Czech football goalkeeper. I just saw Siyabonga Siyo. "
                                                       "I just saw Siyabonga Seyo. I read this article on RaelSport.",
                                                       ["grammar"],
                                                       "General",
                                                       "en")
    api_response = api_instance.post(api_request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling API: %s\n" % e)

Examples

Documentation for API Endpoints

All URIs are relative to https://api.prowritingaid.com

Class Method HTTP request Description
ContextualThesaurusApi get GET /api/async/contextualthesaurus/result/{taskId} Tries to get the result of a request using the task id of the request
ContextualThesaurusApi post POST /api/async/contextualthesaurus Analyses text and returns contextual thesaurus entries
HtmlApi get GET /api/async/html/result/{taskId} Tries to get the result of a request using the task id of the request
HtmlApi post POST /api/async/html Analyses HTML and adds suggestion tags to it
SummaryApi get GET /api/async/summary/result/{taskId} Tries to get the result of a request using the task id of the request
SummaryApi post POST /api/async/summary Gets the summary analysis of a document
TextApi get GET /api/async/text/result/{taskId} Tries to get the result of a request using the task id of the request
TextApi post POST /api/async/text Analyses text and returns tags for it
ThesaurusApi post POST /api/thesaurus Returns the thesaurus entries for a specific word
WordCloudApi get GET /api/async/wordcloud/result/{taskId} Tries to get the result of a request using the task id of the request
WordCloudApi post POST /api/async/wordcloud Analyses text and returns a word cloud (as an image)

Documentation For Models

Documentation For Authorization

licenseCode

  • Type: API key
  • API key parameter name: licenseCode
  • Location: HTTP header

Author

prowritingaid.com

prowritingaid.python's People

Contributors

pedroroquette avatar pedroroquette-toptal avatar vladimirmelekh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.