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 from source code 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.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.2.tar.gz (7.9 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.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for beamdust-sdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 40435e08953bac02717b7677a1dfafe20e1572d6f34c6d67b2dc87d61c29dddf
MD5 c79cd3d6528fb0d3f647910310f3c300
BLAKE2b-256 a64b15d56769dd8408c523fdb6819faa911161c79cab72198aa8976409156cf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beamdust_sdk-1.0.2-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.9.2

File hashes

Hashes for beamdust_sdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41b4c458e4db1f1b8deda18ebc1a99133a172dda04e23452874363bafe1104c5
MD5 2f08f32a3168208593b53a12ca63c631
BLAKE2b-256 a434730b7b2832eba664b31a19135b150ae376a0bf525ed46754d2661db8971d

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