Skip to main content

A Python wrapper for the SocketBee.

Project description

tinq

  • API version: v2
  • Package version: 1.26.0

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/tinq-ai/tinq-python.git

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

Then import the package:

import tinq

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 tinq

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import tinq
from tinq.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://tinq.ai/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = tinq.Configuration(
    host = "https://tinq.ai/api/v2"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearerAuth
configuration = tinq.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with tinq.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tinq.Assistant(api_client)
    accept_charset = 'UTF-8' # str |  (optional)
    content_type = 'application/json' # str |  (optional)
    accept = 'application/json' # str |  (optional)
    body = None # object |  (optional)

    try:
        # Generate
        api_instance.generate(accept_charset=accept_charset, content_type=content_type, accept=accept, body=body)
    except ApiException as e:
        print("Exception when calling Assistant->generate: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://tinq.ai/api/v2

Class Method HTTP request Description
Assistant generate POST /assistant Generate
Classifiers classifiers GET /classifiers Classifiers
Classifiers classify POST /classify Classify
Classifiers sentiment_analysis POST /sentiment-analysis Sentiment Analysis
PlagiarismChecker check_plagiarism POST /check-plagiarism Check Plagiarism
Projects create_project POST /projects Create Project
Projects get_all_projects GET /projects/ Get All Projects
Projects get_project GET /projects/{project} Get Project
Projects update_project PUT /projects/{project} Update Project
Scraper extract_article POST /scraper/extract-article Extract article
Scraper google_search POST /scraper/google Google Search
Scraper scrape POST /scraper/scrape Scrape
Tools extract_text_from_file POST /extract-text Extract text from file
Tools extract_url POST /extract-article Extract URL
Workflows create_workflow POST /workflows Create workflow
Workflows execute_workflow POST /workflows/{workflow_slug}/execute Execute workflow
Workflows get_one_workflow GET /workflows/{workflow_slug} Get one workflow
Workflows get_workflows GET /workflows Get workflows

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

Author

boulama@tinq.ai

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

tinq-0.1.4.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tinq-0.1.4-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file tinq-0.1.4.tar.gz.

File metadata

  • Download URL: tinq-0.1.4.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for tinq-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6b4922dde62c657a3a8989f5d7a8e5a160a9a4de6eef563604037b43700d79ed
MD5 2d6f21fbeb09d9dd9dfe6b0d69a09c49
BLAKE2b-256 9003c6c502925d8c517b59953f1722686a21d82bb7ab8ac462a93f9e075b16e8

See more details on using hashes here.

File details

Details for the file tinq-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tinq-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for tinq-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9b45d934757ea7484479b8e63b1a920d1caa9679c9c9a03b8ea1c255b3209d69
MD5 8713f5ac0a9f8969499b109d607f81aa
BLAKE2b-256 26cb92d678d519a8ce6c4e94315b85f979759aa0e65ee32ce261e28f37a59377

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page