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.
Metadata
Release files for beamdust-sdk 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| beamdust-sdk-1.0.2.tar.gz | 7.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beamdust_sdk-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / beamdust-sdk-1.0.2.tar.gz
| Download URL | beamdust-sdk-1.0.2.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40435e08953bac02717b7677a1dfafe20e1572d6f34c6d67b2dc87d61c29dddf
|
|
BLAKE2b-256 checksum How to use checksums |
a64b15d56769dd8408c523fdb6819faa911161c79cab72198aa8976409156cf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.2
|
Release files / beamdust_sdk-1.0.2-py3-none-any.whl
| Download URL | beamdust_sdk-1.0.2-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41b4c458e4db1f1b8deda18ebc1a99133a172dda04e23452874363bafe1104c5
|
|
BLAKE2b-256 checksum How to use checksums |
a434730b7b2832eba664b31a19135b150ae376a0bf525ed46754d2661db8971d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.2
|
Security for beamdust-sdk 1.0.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.