Eric, Thank you for sharing your example showing the integrating CPython into Harbour directly. That is indeed an excellent option for those who require tight integration I posted that concept in https://github.com/diegofazio/hbPy.
However, I would like to emphasize the distinct advantages of the approach I showcased, which relies on generating a single executable using OLE to interact with Python. This method has several key benefits:
No Python Installation Required: My approach eliminates the need to have Python installed on the target system. This is particularly useful for distributing applications to end-users who may not have the technical expertise or permissions to install Python on their machines.
Simplified Deployment: Since the entire solution is packed into a single executable, deployment becomes straightforward. There’s no need to worry about bundling the CPython runtime or ensuring the compatibility of Python libraries across different environments.
Cross-System Consistency: While it's true that this specific implementation is tailored for Windows, the focus of my solution is on creating a lightweight, portable, and self-contained application for that platform. For projects exclusively targeting Windows, this approach minimizes dependencies and reduces maintenance overhead.
Flexibility: My method leverages OLE automation, allowing Harbour applications to communicate with Python scripts or libraries seamlessly. This separation keeps the Harbour code clean and Python code modular.
In my particular case, I have been using Python for electronic invoicing in my country for about 7 years. From my desktop system, I use OLE to perform digital signatures and all the necessary cryptographic operations. I cannot install Python with all its required dependencies on every client’s machine. That’s why I created a package and installer ready to handle this
--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/HvP18XILshE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/912d91b3-899f-48d8-8fc4-b0fd06edadabn%40googlegroups.com.