BBEye Python SDK
bbeye is the Python SDK used by BBEye decrypt scripts.
It provides:
Request/ResponsewrappersResulthelpers for text, JSON, hex, and protobuf viewsconsole()for printing messages back into the BBEye consoletest()for local script debuggingpython -m bbeye your_script.pyas the runtime entrypoint used by BBEye
Install
pip install bbeye
Basic example
from bbeye import Result, console
def onResponse(response):
console("url:", response.url)
return Result.showText(response.body)
JSON example
from bbeye import Result
def onRequest(request):
return Result.showJson(request.json())
Local test
from bbeye import Result, test
def onResponse(response):
return Result.showText(response.body)
if __name__ == "__main__":
test(
onResponse,
url="https://example.com/api/demo",
body=b'{"ok":true}',
direction="response",
)
Runtime model
BBEye invokes user scripts like this:
python3 -m bbeye your_script.py
The user script should define one or both of:
onRequest(request)onResponse(response)
Each callback can return:
Result.showText(...)Result.showJson(...)Result.showHex(...)Result.showProtobuf(...)Result.error(...)
Returning raw str or bytes is also supported and will be treated as text.
API summary
Request / Response
Common properties:
urlheadersbodydirection
Common methods:
text(encoding="utf-8")json()header(name)
Result
Result.showText(data)Result.showJson(data)Result.showHex(data)Result.showProtobuf(data)Result.error(message)
Helpers
console(*args, **kwargs)test(func, url=..., headers=..., body=..., direction=...)
Publishing
For maintainers:
cd python-sdk
./publish.sh check
./publish.sh testpypi
./publish.sh pypi
Credentials should be provided via:
TWINE_USERNAME/TWINE_PASSWORD, or~/.pypirc
Metadata
Release files for bbeye 0.1.0
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 | |
|---|---|---|---|---|
| bbeye-0.1.0.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bbeye-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / bbeye-0.1.0.tar.gz
| Download URL | bbeye-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf728533a9f4781816320dbff246e634181428f68099c82d61665861401abdc6
|
|
BLAKE2b-256 checksum How to use checksums |
7b84076547f765ba77737684cc250281ad8a1d91b45007b08ced1c87b8a9e578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / bbeye-0.1.0-py3-none-any.whl
| Download URL | bbeye-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
620367a182afedfb4723b176270a48d3b7e63b6e5716ed00bfa39493c94f58b5
|
|
BLAKE2b-256 checksum How to use checksums |
5ea69b792d77505498776e7f2e0c7a14c50374028cda516dc5aee6a4ebeaa398
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for bbeye 0.1.0
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.