5 Amazing Python Applications You Probably Didn't Know
5 Amazing Python Applications You Probably Didn't Know
Python is a simple, developer-friendly, and interpreted general-purpose programming language. Python is becoming more popular every day because of its simple grammar, rich library ecosystem, and highly productive developer environment. Programmers use Python to build web backends, utility scripts, and native desktop applications. Today, Python is very popular among scientific engineers, data analysts, machine learning engineers, and data scientists.
Programming languages often become more popular as they reach different developer communities. For example, JavaScript became more popular thanks to the Electron framework, which allows developers to build desktop applications with a web user interface. Python also strives to join new developer communities with impressive innovations made by the Python developer community.
We can now use Python to build anything like JavaScript. However, most developers are still not fully aware of Python's impressive leaps and bounds. In this article, I will explain some lesser known use cases of Python. Using Python for one of these cases will help make Python more popular.
Using Python to develop mobile apps
Now, Dart and JavaScript are the most preferred languages for building cross-platform mobile apps. In other words, Flutter and React Native dominate the mobile app development market. However, do all Python programmers have to learn Dart or JavaScript to write mobile apps? No - the Kivy GUI framework can create native apps for Android and iOS platforms. Therefore, you can use Python to build cross-platform mobile apps.
Kivy comes with its own widget toolkit similar to Flutter. Kivy uses SDL (Simple Directmedia Layer) to render 2D elements on both Android and iOS like Flutter uses Google Skia. Kivy communicates with native mobile APIs via JNI/Cython on Android and Objective-C/Cython on iOS.
Like other mobile frameworks, Kivy also provides tools for creating platform-specific app packages. Furthermore, you can run Kivy applications on desktop operating systems. Google Play and Apple AppStore accept Kivy-based apps. If more developers start building their apps with Kivy, it can certainly compete with both Flutter and React Native.
Run Python in the browser
The Python interpreter usually runs on the operating system. What if you need to run Python in a web browser? You might think that we have to host a Python interpreter instance on a remote server and communicate via WebSocket protocol. Yes - that's what most online Python interpreters do. But now, you can run any Python module completely from the client side with a browser with Pyodide. Pyodide runs the CPython version of WebAssembly via Emscripten. Browser implementations of WebAssembly typically provide a virtual CPU-like execution environment.
The Emscripten WebAssembly compiler also supports an in-memory virtual file system. Therefore, we can also run the Python file system API modules in the browser. See the following code - the code will work in the browser.
Comments
Post a Comment