B4J Library [python] B4XSerializator implementation in Python - Erel    
Jan 15, 2025   
(19 reactions)Python is a very nice programming language and it rules several domains such as data science... build several utilities to make it easier to integrate and communicate with Python scripts.
The first... B4X types to Python dataclass. In order to deserialize dataclasses, the classes need to be passed to... == '__main__':
ser = B4XSerializator(types=)
t = Testing(Aa=11, Bb="from python...)
Combinations of maps(dicts), lists and custom types are supported.
Note that Python ints...
B4J Tutorial [pybridge] Mac notarized standalone package with embedded python - Erel    
Dec 16, 2025   
(5 reactions) with B4J-Bridge and MacSigner. MacSigner v2.01+ is required.
1. Download standalone python and remove quarantine flags:
Python 3.11 for arm64 Mac: https://github.com/astral-sh/python-build-standalone... running with B4J-Bridge.
Run this command from the terminal (run it from the python folder)
xattr -dr com.apple.quarantine .
You should now be able to run python:
cd bin
./python
And install packages with pip (./pip)
2. Configure PyBridge to find python:
Dim opt As PyOptions = Py.CreateOptions...
Other B4J v10.2 with support for Python, is available for download - Erel    
Mar 17, 2025   
(30 reactions)This update includes a new library named PyBridge, that allows using Python libraries from inside the B4J app. Python is leading the way in fields such as AI, LLM, image recognition and many others...
link:
Do we need to reinstall Java OpenJDK 19?
No...
link: Do we need to reinstall Java OpenJDK 19?...
link:
I don't have variable Initilaized as Boolean ... Nowhere in the system...
Sory, I found it... ...
B4J Library [python] jRDC2 Python client - Erel    
Jan 15, 2025   
(13 reactions)Start here: https://www.b4x.com/android/forum/threads/python-b4xserializator-implementation-in-python.165109/
Depends on: pip install requests
Example:
from db_request_manager import DBRequestManager, DBCommand
if __name__ == '__main__':
req = DBRequestManager(connector_link="http://127.0.0.1:17178/rdc")
req.execute_batch()
print("table created successfully")
commands =
with open(r"C:\Users\H\Downloads\1.jpg", "rb") as f...
B4J Tutorial [PyBridge] Text-Embedding using Local LLM with the help of Python (Get ready for AI) - Magma    
Apr 18, 2026   
(7 reactions) you will need ?
- Need B4J, Python 3.12+, also need to install some PIP..
- Read some tutorials and how PyBridge - Python works with B4X... @Erel has everything we want...
- Need some knowledge...
link:
So I suppose it was a missundestanding of this:
"There is no way for one man/person to have al...
link:
to understand why we must think more about B4X Open Source Software partnerships
My point is if yo...
link:
?
i am not seeing a beef
you didnt help me ? when ?
as for not sharing dont be so sure...
So I...
B4J Code Snippet [PyBridge] Convert Python object to dict / map - Erel    
Aug 12, 2025   
(3 reactions)This methods extracts a list of fields from a Python object and creates a dict (Python equivalent to Map) with the field names as keys and the values.
It is useful when the relevant fields are serializable.
Private Sub ObjectToDict (Obj As PyWrapper, Fields As List) As PyWrapper
Dim entries As List = B4XCollections.CreateList(Null)
For Each key As String In Fields
entries.Add... is a Python object that can't be serialized directly, so we extract the fields:
Wait For...
B4J Library [B4J][PyBridge] PyWorks: a Class to Facilitate Running Python Code - William Lancee    
Jan 21, 2026   
(10 reactions)This class arose from my experience with PyBridge. PyBridge is a powerful interface to Python.
With PyBridge you can use Python code in the way Python was intended: as a Command Line tool - commands are send to Python.
It can also be used to register Python "Subs" (called "def" in Python), then call that Sub with arguments, and expect a return value.
This is the method... you think this is a bad idea, please ignore this post.
Most of my work with Python is calling a method...
B4J Library [PyBridge] UPDATE PyPasslib – Secure Password Hashing via Python & Passlib - zed    
Sep 9, 2025   
(5 reactions) the PassLib library in Python.
It leverages PyBridge to connect your B4J app to Python, giving...
Passlib installed in your Python environment: pip install passlib
bcrypt_4.0.1 installed in your...
link: I forgot. You need to install the python libs.
pip install passlib
pip install "bcrypt==4.0.1...
link: sha512_crypt
sha512_crypt is a variant of the SHA-512 algorithm, suitable for securely hashing pass...
link: Argon2
Argon2 is a key derivation function (KDF) designed for secure password hashing.
Unlike older...
B4J Code Snippet Get fingerprint validation using B4J + Python + DLL (Windows Only) - Daestrum    
Aug 20, 2025   
(4 reactions) B4J with Python with a DLL bridge to WInbio.
The Python script spawns another Python script, running... with 2 params :
1, The path to Python (it has to spawn a new python)
2, The path of the second python..., Array("D:/Python313/python.exe",getAssetFile("py_fp_test.py")), readAsset...
link: Glad to see your posting issues are gone!...
link: Forgot to add - working on adding hashing so B4J knows if the python script has been altered to...
B4J Library [B4J, B4XPages] B4J as an interactive backend for Python3 - William Lancee    
May 25, 2024   
(9 reactions) version of Python is 3.12.3. Python3 has quite a few differences from Python2, and is not backwards compatible.
The PyUDP class attached is for Python3. When installing Python3, a launcher Py.exe...
link:
Do you have Python3 installed? If not then the shortcut in the shell statement "py" does...
link: ppath As String = "C:\Users\....\AppData\Local\Programs\Python\Python312\python.exe"
shl...
link: Another possible problem could be indentation. In Python indentation has critical meaning and has...
Page: 1  
2  
3  
4  
5  
6  
7