Skip to main content

A Python SDK for interacting with Beamdust API

Project description

Beamdust Package

Beamdust is a Python SDK for interacting with APIs that use Swagger specifications. It dynamically generates methods for API endpoints and allows users to perform authenticated API requests with ease.

Installation

You can install the beamdust-package by following these steps:

Clone the repository:

git clone https://github.com/Beamdust/beamdust-package.git

Navigate to the project directory:

cd beamdust-package

Install the package using setup.py:

python setup.py install

This will install the package and its dependencies on your system.

Usage Example

Here's a simple example of how to use the Beamdust SDK to interact with an API:

Import the Beamdust SDK

from beamdust import Beamdust

# Initialize the Beamdust instance
beamdust = Beamdust(base_url="https://your-api.com", email="your-email@example.com", password="your-password")

# Retrieve information about available API methods
available_methods = beamdust.get_available_functions()
print("Available API methods:", available_methods)

# Getting the example body to send to this endpoint 
print(beamdust.retrieve_notifications(_help=True))

# Making a request to a dynamically generated API method
notification_response = beamdust.retrieve_notifications({
    "page": 0,
    "size": 2,
    "sorts": {"field": "body.timestamp", "order": "desc"},
    "filters": []
})

Key Features:

Dynamic Method Generation: Methods are automatically generated based on the Swagger documentation of the API. Authentication: Log in using your email and password, and the SDK will manage your authentication token. Swagger Integration: The SDK loads and integrates with Swagger documentation to provide structured access to API endpoints. API Calls: Make API requests to any endpoint by using the method name corresponding to the Swagger operationId. Documentation: Use the _help flag in any method to retrieve the expected body structure for API requests.

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

beamdust-sdk-1.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

beamdust_sdk-1.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file beamdust-sdk-1.0.0.tar.gz.

File metadata

  • Download URL: beamdust-sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for beamdust-sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 565011367736ed7b7396a7d5711d508b79eea5d2d78c4a33993203c3d809c01d
MD5 52cbb6930d7381fc22cf8835d15c1abd
BLAKE2b-256 938701c086765fdb1d4e9ea5a68a57a1b40b61ec18c406be43eec21cef0bad9f

See more details on using hashes here.

File details

Details for the file beamdust_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: beamdust_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for beamdust_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae6c5ea889c75676662e378eb2825791ce22a2daba351ece3bfa6186f6677d38
MD5 ac01db97644e0b724dd17ca856087918
BLAKE2b-256 902d9284b08dd546f7cff171532a1f40fc40633296dceecb2efe16ffeaa7a4ae

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