Skip to content

Megaputer/tmapi-python

Repository files navigation

tmapi

Megaputer Text Mining API

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/Megaputer/tmapi-python.git

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

Then import the package:

import tmapi 

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 tmapi

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import tmapi
from tmapi.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = tmapi.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = tmapi.LimitsApi(tmapi.ApiClient(configuration))

try:
    # Limits information
    api_response = api_instance.get_limits()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LimitsApi->get_limits: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost:7008/tmapi/v1

Class Method HTTP request Description
LimitsApi get_limits GET /limits Limits information
OperationsApi extract_documents_entities POST /operations/entities Entities extraction
OperationsApi extract_documents_facts POST /operations/facts Facts extraction
OperationsApi extract_documents_keywords POST /operations/keywords Keywords extraction
OperationsApi extract_documents_sentiments POST /operations/sentiments Sentiments analysis
OperationsApi extract_documents_tokens POST /operations/tokens Text parsing
OperationsApi extract_entities GET /operations/entities Entities extraction
OperationsApi extract_facts GET /operations/facts Facts extraction
OperationsApi extract_keywords GET /operations/keywords Keywords extraction
OperationsApi extract_sentiments GET /operations/sentiments Sentiments analysis
OperationsApi extract_tokens GET /operations/tokens Text parsing
OperationsApi get_documents_languages POST /operations/languages Language detection
OperationsApi get_languages GET /operations/languages Language detection
ServerApi change_password POST /change-password Change password
ServerApi get_server_info GET /server Server information
TasksApi create_task POST /tasks Create task
TasksApi delete_tasks DELETE /tasks Delete tasks
TasksApi get_task_result GET /tasks/result Task result
TasksApi get_tasks_info GET /tasks Tasks information

Documentation For Models

Documentation For Authorization

BasicAuth

  • Type: HTTP basic authentication

Author

About

Megaputer text mining python SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published