envbee SDK for Python
Project description
envbee SDK
envbee SDK is a Python client for interacting with the envbee API (see https://envbee.dev). This SDK provides methods to retrieve variables and manage caching for improved performance.
Table of Contents
Installation
To install the envbee SDK, use pip:
pip install envbee-sdk
Usage
To use the envbee SDK, instantiate the envbee class with your API credentials:
from envbee_sdk.main import Envbee
eb = Envbee(api_key="your_api_key", api_secret=b"your_api_secret")
# Retrieve a variable
value = eb.get_variable("VariableName")
# Retrieve multiple variables
variables = eb.get_variables()
Methods
get_variable(variable_name: str) -> str
Fetches the value of a variable by its name. If the API request fails, it retrieves the value from the cache.
get_variables(offset: int = None, limit: int = None) -> list[dict]
Fetches a list of variables from the API with optional pagination parameters.
Caching
The SDK uses local caching to store variable values, improving efficiency by reducing API calls.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file envbee_sdk-1.2.0.tar.gz.
File metadata
- Download URL: envbee_sdk-1.2.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37ef9105837dd545c81c7d40a38e05f2ca236f22cc7e65cdc1502e1f73a49046
|
|
| MD5 |
d508268a488944554deaf401b54fa3fa
|
|
| BLAKE2b-256 |
6c8ea9c7f8af7d57f1f0b37a8bf715a0efcb04963a5c7b0618235b92440b75dd
|
File details
Details for the file envbee_sdk-1.2.0-py3-none-any.whl.
File metadata
- Download URL: envbee_sdk-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab34930d81fcc269c5b5bf0f51ba0baea7bae76d1955d6574db55f0fb4cbedc8
|
|
| MD5 |
21e703cb013104ae59a7009df1174932
|
|
| BLAKE2b-256 |
8b6ead55099a86b1deab93b0ad8a9ac33f60919b0039ce49c4d1bfa82c9b3115
|