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.1.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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file beamdust_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: beamdust_sdk-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6528e3567abb8530665eec9342a69b10d56fa1e6d4478a75f6915548b3f5336a
MD5 77088cea61363fbccf5fedc6e2e4330c
BLAKE2b-256 1a95f58283775149e1e258e9cc574415ac3b9dc5e78c2f4582e847db5c7f2e44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beamdust_sdk-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbe3fc156d3ab5fca428210f657187f77b3f95b515c9cf75a3a721d18a277d0e
MD5 33145a1cda30c0f902292b77579b589b
BLAKE2b-256 ec800718131ba4316645cb84bdf5449fc3255c3d3b979218a1cab9e922de6b4a

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