Skip to main content

Python SDK for the Hightop API

Project description

Hightop SDK

A Python SDK for the Hightop API.

Installation

pip install hightop-sdk

Usage

Basic Setup

from hightop_sdk import HightopSDK

# Initialize the SDK with your API key
sdk = HightopSDK(api_key="your_api_key_here")

# Make API calls using the SDK
response = sdk.your_api_endpoint()

Configuration

You can configure the SDK with various options:

from hightop_sdk import HightopSDK, Configuration

# Create a custom configuration
config = Configuration(
    api_key="your_api_key_here",
    host="https://api.hightop.com/api",  # Optional: customize API host
    timeout=30  # Optional: set request timeout
)

# Initialize SDK with custom configuration
sdk = HightopSDK(configuration=config)

Error Handling

The SDK includes built-in error handling for common API errors:

from hightop_sdk.exceptions import ApiException

try:
    response = sdk.your_api_endpoint()
except ApiException as e:
    print(f"API Error: {e.status} - {e.reason}")
except Exception as e:
    print(f"Unexpected error: {str(e)}")

Response Handling

API responses are automatically deserialized into Python objects:

# Example response handling
response = sdk.your_api_endpoint()
data = response.data  # Access the deserialized response data

Examples

Making API Requests

# Example of making a GET request
response = sdk.get_data()

# Example of making a POST request with data
data = {
    "name": "Example",
    "value": 123
}
response = sdk.create_data(data)

# Example of making a request with query parameters
response = sdk.search_data(query="example", limit=10)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

hightop_sdk-0.1.0.tar.gz (66.7 kB view details)

Uploaded Source

Built Distribution

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

hightop_sdk-0.1.0-py3-none-any.whl (250.0 kB view details)

Uploaded Python 3

File details

Details for the file hightop_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: hightop_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 66.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for hightop_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2dee7bf393546860d79ac7a5463fa621a06de243b899ea9c8e83acf2a1cfd2f3
MD5 cd26d687961de161bbaa51448bd807b0
BLAKE2b-256 43d95da8b3418d8f11c6eb2480e26cad7f874ed50d458ea0d3ccda39f988b9b7

See more details on using hashes here.

File details

Details for the file hightop_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hightop_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 250.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for hightop_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b466ee0f31a11abe1dd5d25993f707b84152fec63b0d5fba17b85a624ba0d8
MD5 1557fc4308ba311a74861166ad17f453
BLAKE2b-256 7de6bf799db05e4cff8c17c1a437228c16981467317f2bf4066e067031930a07

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