No project description provided
Project description
BaleClient
⚡ BaleClient is a maintained fork / rework of Aiobale, an asynchronous Python client for Bale Messenger.
The original library is great but contains several bugs and incomplete implementations. This project fixes those issues and adds improvements for reliability, stability, and usability.
Installation
Install from PyPI:
pip install baleclient
Upgrade to the latest version:
pip install -U baleclient
Install from source:
git clone https://github.com/Foad-KhAb/baleclient.git
cd baleclient
pip install -e .
Requirements
- Python 3.11+
Quick Example
from baleclient import Client
async def main():
async with Client("session") as client:
me = await client.get_me()
print(me)
Features
- Fully asynchronous API
- Lightweight and fast
- Improved parsing reliability
- Better error handling
- Maintained fork of Aiobale
Based On
This project is based on:
Aiobale https://github.com/Enalite/aiobale
Credit to the original author for the initial implementation.
Why BaleClient?
While using Aiobale in real projects, I encountered several issues such as:
- parsing bugs
- inconsistent API responses
- missing validations
- edge cases not handled
BaleClient fixes these problems and introduces improvements to make the library more stable for production usage.
Fixes
List of fixes applied to the original library:
- Fix dialog response parsing
- Fix message caption parsing
- Fix incorrect type validations
(this list will grow as more issues are discovered)
Added Improvements
Additional features and improvements:
- Better error handling when reading corrupted or modified session files
Changelog
v0.1.0
- Initial release
- Fork of Aiobale with several fixes
- Improved session error handling
Documentation
Documentation will be expanded in future releases.
For now, refer to:
- The source code
- Example usage in the repository
Notes
- BaleClient is not an official Bale API library
- The Bale API is internal and may change without notice
License
This project follows the same license as the original project unless otherwise specified.
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 baleclient-1.0.1.tar.gz.
File metadata
- Download URL: baleclient-1.0.1.tar.gz
- Upload date:
- Size: 109.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2c5dd37214d57ca61d2893ce5d66a94fe3b9994de9111a3b2d158c347a96921
|
|
| MD5 |
51eca8be297dfe341537e5846271d090
|
|
| BLAKE2b-256 |
95a5803990d87a6ad94100d1f2af813af545ee0f66185838345b81d5e505000a
|
Provenance
The following attestation bundles were made for baleclient-1.0.1.tar.gz:
Publisher:
workflow.yml on Foad-KhAb/baleclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
baleclient-1.0.1.tar.gz -
Subject digest:
c2c5dd37214d57ca61d2893ce5d66a94fe3b9994de9111a3b2d158c347a96921 - Sigstore transparency entry: 1059748618
- Sigstore integration time:
-
Permalink:
Foad-KhAb/baleclient@6b3bbaa4acc13969a1eeb3975fb7d5848307de4c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Foad-KhAb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@6b3bbaa4acc13969a1eeb3975fb7d5848307de4c -
Trigger Event:
release
-
Statement type:
File details
Details for the file baleclient-1.0.1-py3-none-any.whl.
File metadata
- Download URL: baleclient-1.0.1-py3-none-any.whl
- Upload date:
- Size: 215.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
089eecb54ed0755751157473fbe92055212bb8b02faddba6e41f573bf7741517
|
|
| MD5 |
d348988f7c054a0fdf36137528a4fa48
|
|
| BLAKE2b-256 |
c044f1ee1447b671c6c04053e0a7a7c06d914fa5ad7f63c64451c14ef16ad7ae
|
Provenance
The following attestation bundles were made for baleclient-1.0.1-py3-none-any.whl:
Publisher:
workflow.yml on Foad-KhAb/baleclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
baleclient-1.0.1-py3-none-any.whl -
Subject digest:
089eecb54ed0755751157473fbe92055212bb8b02faddba6e41f573bf7741517 - Sigstore transparency entry: 1059748620
- Sigstore integration time:
-
Permalink:
Foad-KhAb/baleclient@6b3bbaa4acc13969a1eeb3975fb7d5848307de4c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Foad-KhAb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@6b3bbaa4acc13969a1eeb3975fb7d5848307de4c -
Trigger Event:
release
-
Statement type: