RAD 11월 14일, 2022에 포스트됨 공유하기 11월 14일, 2022에 포스트됨 원문제목: Stable Python Environments in the Delphi-Python EcoSystem 원문: https://blogs.embarcadero.com/stable-python-environments-in-the-delphi-python-ecosystem/ 작성자: Priyatham (2022.11) We’re launching a new series of Delphi-Python Ecosystem and Python tools updates. You’ll know what we’re developing around Delphi-Python integration and how you can use those new tools in these updates. 새 델파이-파이썬 환경과 파이썬 도구 업데이트를 선보이게 되었다. 델파이-파이썬을 통해 무엇을 개발하고 있는지, 그리고 여러분은 이번 업데이트를 통해 선보이는 새로운 도구들을 어떻게 활용할 수 있는지를 파악할 수 있게 될 것이다. Python4Delphi (P4D) is the core technology/package that powers the whole Delphi-Python EcoSystem. P4D has a long history of over two decades, and you can read more about it on its wiki pages. Python4Delphi (P4D)는 전체 델파이-파이썬 환경을 구동하는 핵심 기술/패키지이다. P4D는 20년 이상의 오랜 역사가 있으며, 더 자세한 내용은 위키 페이지에서 확인할 수 있다. After more than two decades of introducing Python4Delphi (P4D), we are trying to solve the essence of why the P4D project started with the PythonEnvironments project. Initially, P4D was designed to have a scripting capability in Delphi using Python. Python is a great programming language for prototyping and experimenting with an idea using short scripts. One of the reasons that the community didn’t adopt to include Python into their Delphi applications as it was not an easy process to do so. Python4Delphi (P4D)를 선보이고 20년이 훌쩍 지났지만, 여전이 PythonEnvirionments 프로젝트로 P4D 프로젝트를 시작해야 하는 이유의 본질을 해소하기 위해 노력하고 있다. 초기 P4D는 파이썬을 사용해 델파이에서 스크립트 기능을 활용하도록 설계되었다. 파이썬은 짧은 스크립트로 생각한 것을 프로토타입화하고 실험할 수 있는 훌륭한 프로그래밍 언어이다. 커뮤니티가 델파이 애플리케이션에 파이썬을 적용하지 않았던 이유 중 하나는 그 프로세스가 쉽지 않았기 때문이다. Our Delphi-Python EcoSystem can be summarized using the below figure: 우리의 델파이-파이썬 환경은 아래 그림처럼 정리할 수 있다: PythonEnvironments provides a set of Design time Components to embed a desirable Python Environment into your Delphi application using the readily available Python embeddable very easily. PythonEnvironments는 매우 쉽게 사용 가능한 파이썬 embeddable로 델파이 애플리케이션에 바람직한 파이썬 Environment를 임베디드할 수 있는 디자인 단계에서 활용 가능한 컴포넌트이다. The recent advancements in PythonEnvironments are described below. PythonEnvironments의 발전 항목들은 다음과 같이 정리할 수 있다. 목차 PythonEnvironments는 충분히 발전해왔는가? PythonEnvironments 예제나 샘플이 있는가? 안드로이드 용 파이썬 embeddable 파일 추가 PYTHONENVIRONMENTDIR 환경 변수 설정 자동화 방법 향후 업데이트 - 어떤 기능이 업데이트될까? PythonEnvironments는 충분히 발전해왔는가? A few days ago, we were in the early alpha/beta stages of developing the PythonEnvironments. Now, the project is in quite a robust stage where we’re confident the community can try it out. Now, you can add a Python environment to your Delphi application and distribute it easily. In addition, we have implemented a notification protocol where you can create notifications between different events at different stages of setting the Python environment. Finally, one of the most important updates is that you can implement all of the events of PyEmbeddedEnvironment component and loading processes of Python asynchronously. 얼마전까지만 해도, PythonEnvironments 개발은 초기 알파/베타 수준에 있었다. 현재 해당 프로젝트는 커뮤니티에게 자신있게 권할만큼 꽤 탄탄한 단계에 이르렀다. 그리고 여러 파이썬 환경 설정 단계에서 다양한 이벤트에 알림을 설정할 수 있는 알림 프로토콜을 구현했다. 가장 중요한 업데이트 중 하나는 모든 PyEmbeddedEnvironment 컴포넌트 이벤트를 구현하고 파이썬 프로세스를 비동기적으로 불러올 수 있게 되었다는 것이다. We highly encourage you to try out the PythonEnvironments, and if you face any problems, please raise issues in the GitHub repository. Let’s embrace the power of Delphi-Python EcoSystem as a community. PythonEnvironments를 사용해 보길 적극 권장한다. 문제가 발생하면, 깃허브(GitHub) 저장소에 이슈 사항을 남겨주길 바란다. 델파이-파이썬 생태계의 힘을 활용해보자! PythonEnvironments 예제나 샘플이 있는가? We have added a decent number of samples to our GitHub repository to get started with PythonEnvironments. You can find out the samples in our GitHub repository. Please try out the samples in the mentioned order in the README. Each sample is almost self-explanatory, but we shall also add explanations for all of them. You can build all of the samples for any target platform of your choice. We added a sample specifically to try out on the Android platform called SimpleAndroid. PythonEnvironments를 시작할 수 있는 상당한 수의 샘플을 깃허브(GitHub) 저장소에 올려놓았다. 깃허브에 있는 샘플들을 활용해보길 바란다. README에 정리된 내용을 확인해 샘플들을 사용해보길 바란다. 샘플은 혼자서도 충분히 활용할 수 있겠지만, 각각에 대한 설명도 올려놓았다. 원하는 모든 타겟 플랫폼에 대한 샘플을 모두 빌드해 볼 수 있다. 안드로이드 플랫폼 SimpleAndroid에서 활용해 볼 수 있는 샘플도 특별히 추가해놓았다. 안드로이드 용 파이썬 embeddable 파일 추가 We have added the Python embeddables compiled for the Android platform for Python versions – 3.7 to 3.10. Because of this addition, you can now easily create Python environments in your Delphi-built Android applications. You can run Python scripts to implement your applications’ data analysis tasks. 파이썬 버전 3.7부터 3.10 용 안드로이드 플랫폼에 맞추어 컴파일된 파이썬 embeddable이 추가되었다. 이를 통해 델파이로 구축한 안드로이드 애플리케이션에도 파이썬 환경을 손쉽게 생성할 수 있다. 파이썬 스크립트를 실행해 애플리케이션 데이터 분석 작업을 구현할 수 있게 되었다. PYTHONENVIRONMENTDIR 환경 변수 설정 자동화 방법 Earlier, we need to register the PYTHONENVIRONMENTDIR environment variable in Delphi IDE for it to find the path of Python embeddables. We have now automated that process in the installation process of PythonEnvironments using a batch script. 이전에는 파이썬 embeddable 경로 탐색을 위해서는 델파이 IDE에서 PYTHONENVIRONMENTDIR 환경 변수를 등록해야 했다. 지금은 배치 스크립트로 PythonEnvironments 설치 프로세스 처리가 자동화되었다. 향후 업데이트 - 어떤 기능이 업데이트될까? PythonEnvironments 설치 상세 정보가 위키 페이지에 등록될 예정이다. 전체 PythonEnvironments 추가 샘플에 대한 상세 설명이 등록될 예정이다. 커뮤니티가 개발 프로세스에 참여할 수 있도록 PythonEnvironments 아키텍처 다이어그램을 만들 예정이다. 리눅스용으로 P4D를 컴파일하고, P4D로 리눅스 애플리케이션 구현 중 종속성을 활용할 수 있도록 할 예정이다. 인용하기 "우리의 목표는 델파이 개발자가 가능한 손쉽게 델파이 애플리케이션에 파이썬 환경을 적용할 수 있도록 하는 것이다." 이 글의 작성자 Priyatham은 모든 델파이/파이썬 생태계 프로젝트의 핵심 기여자이자 유지보수 작업자이다. 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
Recommended Posts
이 토의에 참여하세요
지금 바로 의견을 남길 수 있습니다. 그리고 나서 가입해도 됩니다. 이미 회원이라면, 지금 로그인하고 본인 계정으로 의견을 남기세요.