Skip to main content

sentience_sdk

API Gateway for Sentience Platform - Web Content Extraction and Element Coordinate Mapping

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

  • API version: 1.0.0
  • Package version: 0.2.2
  • Generator version: 7.18.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

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

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

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

Then import the package:

import sentience_sdk

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 sentience_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import sentience_sdk
from sentience_sdk.rest import ApiException
from pprint import pprint

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

# 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 (API Key): apiKeyAuth
configuration = sentience_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with sentience_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = sentience_sdk.SentienceObservationApi(api_client)
    authorization = 'Bearer sk_live_51Mz...' # str | Sentience API Key. Format: 'Bearer <API_KEY>'
    sentience_observe_request = sentience_sdk.SentienceObserveRequest() # SentienceObserveRequest | 

    try:
        # Observe and extract web content or element coordinates
        api_response = api_instance.observe(authorization, sentience_observe_request)
        print("The response of SentienceObservationApi->observe:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling SentienceObservationApi->observe: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
SentienceObservationApi observe POST /v1/observe Observe and extract web content or element coordinates

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

apiKeyAuth

  • Type: Bearer authentication (API Key)

Author

support@sentienceapi.com

Metadata

Release files for sentience-sdk 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentience-sdk 0.2.2
File Size Uploaded Provenance Actions
sentience_sdk-0.2.2.tar.gz 36.0 kB Without provenance Details for sentience_sdk-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentience-sdk 0.2.2
File Interpreter ABI Platform Actions
sentience_sdk-0.2.2-py3-none-any.whl Python 3 none any Details for sentience_sdk-0.2.2-py3-none-any.whl

Total release size: 95.5 kB

Release files / sentience_sdk-0.2.2.tar.gz

Download URL sentience_sdk-0.2.2.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3795264dac211639a449a5c6188afdcbc2c2fd66ede29950cbe1f37f5a551478
BLAKE2b-256 checksum
How to use checksums
4e59c75d4cd7d381d3fe43495a17759ddc56da0b2a3652577d25be4dc69adaba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / sentience_sdk-0.2.2-py3-none-any.whl

Download URL sentience_sdk-0.2.2-py3-none-any.whl
Size 59.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0982926b83ceca5e97283e39db6b0399191528045e28ce7d6aeb2bcdb90031e
BLAKE2b-256 checksum
How to use checksums
2e80b9ccb1e175853d3031305819ae074af7e5873c2c1c5d6bb215d7fb25ebbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for sentience-sdk 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page