A complete Python application for Android. A complete Python application for Android Can you download Python for Android

In the process of learning a language, we usually use a PC to work with appropriate applications, environments, programs, read books, and use massive online courses. Now, when smartphones are with us always and everywhere, it is a sin not to take advantage of their opportunities to master programming knowledge or improve them.

In the process of learning a programming language, in particular Python, I believe that you need to immerse yourself in it completely. Slogan: "Not a day without a code!" I supplement, well, if you do not code, then at least read about it. In order not to get out of the rhythm in conditions when you need to do a lot in life, but there is no time, but I would like to learn Python, mobile apps will help you not to waste time on transport, while waiting, etc. I offer a list of applications from Google Play for learning Python on Android devices, which will help not only gain knowledge, but also test your level in Python. I definitely advise students when learning Python: Learn Python, Quiz & Learn Python, and Python Challenge. Well, now in more detail.
1. Learn Python Rating 4.8 on 10/20/2015
One of the best, cute application: the interface immediately pleased. Contains short tutorials and quizzes to help you learn Python. There is an element of excitement - you collect points for passing classes and tests. Upon completion of the course, you can receive a certificate. The application covers the following topics: Python basics, data types, control structures, functions and modules, working with files, functional programming, object-oriented programming, regular expressions.


2. QPython - Python for Android Rating 4.4 on 10/19/2015
QPython is a script that runs Python on Android devices, allowing scripts and projects to be executed. QPython contains a Python interpreter, a console, an editor, and an SL4A library (it does not always allow creating and running scripts written in various scripting languages ​​directly on Android devices. SL4A is intended for developers and is still in alpha testing - ru.wikipedia .org / wiki / SL4A) for Android. Thus, the app offers a developer kit that makes it easy to create Python projects and scripts on Android devices. Main characteristics
  • support for Python programming on Android, including web apps, games and SL4A programming, etc.
  • running Python scripts / projects on Android devices
  • can execute Python code & files with QRCode
  • QEdit makes it easy to create / edit Python scripts / projects
  • includes many useful Python libraries
  • pip support (the package management system is used to install and manage software packages written in Python en.wikipedia.org/wiki/Pip_ (package_manager))
  • support SL4A programming to access Android functions: network, Bluetooth, GPS, etc.

There is also a QPython3 application which, unlike QPython, has python3 support.
3. Python Documentation Rating 4.4 on 10/19/2015
Convenient and stylish application with Python 3.5 documentation on English language, completely Offline. Has improved search, easy navigation, mobile reading format, user-friendly interface... The content of the documentation includes the following sections:

  • What's new in Python?
  • Python tutorial
  • Python link library
  • Python language reference
  • Python setup and use
  • Python HOWTOs
  • Extensions and attachments
  • Python / C API
  • Installing Python modules
  • Uninstalling Python Modules


4. Quiz & Learn Python Rating 4.1 on 19.10.2015
Quiz & Learn Python app for testing and improving Python knowledge and concepts (version 2.7). Questions range from the basics of Python programming to very specific, possibly unexpected ways of writing code. Depending on the progress, the questions may get more complex. The faster you answer, the more points you get. You can remove the two incorrect answers, skip the question, stop the timer, or debug the code. Developers site mobileicecube.com/quiz-learn-python.


5. Python interview questions Rating 4.0 as of 20.10.2015
An interesting application. Helps to test the knowledge of the Python language in the form of an interview.


6. Python Challenge Rating 3.9 on 10/19/2015
This application is a test in English for users who would like to learn and test their knowledge of Python programming. The application has two main modes: Challenge Mode and Practice Mode. Challenge Mode consists of 20 questions. Points are awarded based on the time taken to resolve each issue. The test ends when the user chooses the wrong answer or completes all 20 questions. In Practice Mode, questions are sorted by different topics. The user can choose them himself. 10 questions are suggested. The user can continue the test, even if he gives the wrong answer. All questions and answers will be shown at the end of the workout.


7. Python Guide Rating 3.9 on 10/19/2015
This app is a quick start guide for Python. The guide will be especially useful for beginners who want to familiarize themselves with the rules of Python syntax. The tutorial covers the basics of Python programming, so users will have enough knowledge to create some simple and productive application. The manual consists of the following topics: variables, conditions, functions, loops, lists, strings, dictionaries. Small list. I would like more.


8. Python Programming in a day Rating 3.0 on 10/20/2015
The app developers advise us to skip the long, complex Phyton books. In order to learn how to program in Phyton 3.0 faster, they offer a short and concise application that will teach everything you need to program Phyton. This book is written for people who have no programming knowledge or are newbies. She focuses on the most important concepts with examples.


9. Learn Python & Python Django Rating 3.0 on 10/20/2015
This application finally differs from the previous ones in that it affects not only Python itself, but also Django. This is essentially a Python and Django tutorial in English on the Udemy platform. Its content includes such topics: Python and Hello World, Python overview and history, functions, classes, databases, modules and packages, JSON, Django installation, administrator interface, Django template language, etc. x hours of high quality content, community, video and audio lectures, presentations, articles, you can save courses for viewing in offline.


10. Python tutorial Rating 4.0 as of 20.10.2015
A collection of tutorials on Python 2 and 3. He will tell you about the history and philosophy of Python, how to install Python, work with numbers and strings in Python, about data types and variables, functions, etc. mobile phones- fonts are small in some places. The name in Russian inspired me that the tutorial could be in Russian - but no! In general, I did not find applications in Russian.


You can also name applications such as:
  • Dive Into Python 3 - A book by Mark Pilgrim, rated 3.8, has problems stretching the interface.
  • Python For Android - Python IDE, 3.3 rating due to intrusive ads
  • Python Tutorial - Python 2.6 Programming Tutorial, rated 3.8
  • Python Programming Tutorial - Python 2.7 Tutorial, 3.6 rating

In this article, I would like to talk about how to create full application in Python for Android. No, this is not another manual for creating a script for sl4a, this is a manual for creating a full-fledged application with a UI, the ability to build apk and upload it to Android Market... At the same time, I would like to boast about my first application on google.play, this is not hello world, but useful application for photographers, albeit a highly specialized one.

Perhaps I'll start the story with the application itself and finish with stories about how it was done.

isortViewer

As a photographer, I have to spend a lot of time sorting and selecting photos. You don't always want to sit at a work computer when you have a laptop, smartphone or tablet at hand, but copy tens of gigabytes of raw or jpeg files, and then synchronizing with a work computer is a dubious pleasure. That is why I created the isortManager and isortViewer programs, which made my job of sorting and selecting photos much easier. Now I can do the selection and sorting of photos while lying on the beach couch or bored in traffic :)

Copy-paste descriptions and a couple of screenshots:
isortViewer is a program for photographers that allows you to quickly and easily select and sort thousands of photos (raw or jpg) from photo sessions on your android smartphones and tablets. At the same time, there is no need to copy tens of gigabytes of jpg or raw files to the device. Just use free program isortManager for the computer, which will save everything into one small project file:
1. Download and run isortManager from the official site;
2. Create a project and add folders with photos. Supported formats: jpg and raw (cr2, nef, orf, etc.). As a result, you will have a small project file (about 150 MB for several thousand photos, be it jpg or raw format);
3. Copy to your android device project file, open in isortViewer. You can mark photos "for deletion", as well as give ratings from 1 to 5 stars;
4. After that, copy the project file back and apply the changes to the isortManager. Besides deleting the selected photos, you can copy or move the marked photos. For example, photos with "5 stars" can be copied to the "masterpieces" folder, and "1 star" can be moved to the "trash" folder.

The application is absolutely free and available on google.play, however donations are welcome.

Sources are available on the official website!

How it was done

Since python best language programming in the world except python, I do not know anything, it was decided to write an application in python.

isortManager

There were no problems with isortManager for PC, the creation of a GUI assembly for windows has been tested for a long time and it works very simply: using dcraw it rips out jpg previews from raw files, resizes them using PIL and adds them into one file with a fairly simple structure. We invented our own scale box with a container for storing photos and metadata (full path to the photo, mark “for deletion” and rating mark), since, for example, zip or tar format cannot change one file in the archive (metadata), requiring repacking all files. Files are simply written one after the other in a row and in the metadata block (the usual repr of the Python dictionary) at the end the offsets of the beginning of the files are stored, plus the size of the metadata block is written at the end of the file. The GUI is written in Tkinter (I love it for the speed of writing and for the small size of the final assembly), here is the actual screenshot:

And yes, it all works on linux, and even faster than on windows)

isortViewer for android

In total, I found two ways to make a python application work as a full-fledged android application, they are pygame for android and the kivy project.
Pygame is a lower-level one, all the UI would have to be drawn by hand, which would take a lot of time, so the kivy framework was chosen. So:

This is a wonderful framework for writing an application for windows, linux, macOS, android and iOS. Multitouch is supported, UI is drawn through OpenGL, which means hardware acceleration should work. You can see how the widgets work by installing the Kivy Showcase demo application. It is possible to use some platform-specific functions, for example, vibration or accelerometer, using the android module.

Hello World looks like this:

Import kivy kivy.require ("1.0.6") # replace with your current kivy version! from kivy.app import App from kivy.uix.button import Button class MyApp (App): def build (self): return Button (text = "Hello World") if __name__ == "__main__": MyApp (). run ( )

Moreover, this code will work on all announced platforms. There is no need to test the application in the emulator. It is enough to run the script for execution in your favorite IDE and see the result on the computer screen, without delays in compilation, launching the emulator, etc. If you still want to see how it will look directly on the device, just install Kivy Launcher, copy the project files to the card memory and run. You can debug this using adb logcat.
If you use the android library, which is not available on the PC, but you want to run the application not only on android, use this construction:
try: import android except ImportError: android = None ... if android: android.vibrate (0.05)

Building apk is quite simple and is described on this page. After building the release, it is enough to sign your application (I used this manual) and upload it to google play.

Pros of kivy:

  • Rapid development for various platforms, with little or no code revision.
  • Wide variety of widgets available
  • High speed of work. All resource-intensive modules are moved to C modules. The python interpreter itself on android works natively.
  • The framework includes many tools like animation, caching, etc.
  • upd: Access to camera, clipboard, microphone. You can write your own video player in just 20 lines.

Cons of kivy:

  • Big size apk file... A project with 300 kb of resources (scripts, graphics) is collected in 7 mb apk. Although, I think there is an opportunity to optimize it somehow.
  • Inability (yet) to restore work after minimizing - the application is closed

In my next article, I will talk in more detail about the process of writing an application from scratch, chewing on each line of code.

I would like to immediately stop the holivars on the topic "for android only java, python is not needed." I think it doesn't matter what technologies are “under the hood”, the main thing is that the application is of high quality.
The scope of kivy can be overwhelming. Now on my account there are several applications written to order, where python with the kivy framework has shown itself to be on the good side. For example, in exactly one hour, an application was written for the network service centers... The app runs in kiosk mode and is installed on cheap chinese tablets that hang in the lobby. The client dials the order number, then by WiFi tablet connects to the server and reports the order status.

Tags: Add Tags

Latest QPython - Python for Android apk Download. QPython is a program engine that runs Python script on your Android devices.
It contains the Python interpreter, editor, QPYPI, QRCode reader and some amazing features for Android.

It "s literally the most awesome Python on Android.

Newest version is 2.4.0, it contains the following amazing features.

[[Main Features]]

Offline Python 2.7.15 / 3.6 interpreter all in one: no Internet is required to run Python programs
- An built-in awesome Python IDE
- Pip package manager and a custom repository for prebuilt wheel packages like enhanced scientific libraries
- Powerful QRCode scan can read program / link / notebook link from QRCode
- Built-in Notebook plug-in, which easily allows you to open the jupyter notebook documentation

[[Programming & Packages]]

With the features below, you can easily develop your apps:

Built-in SL4A library, allowing your Android device to easily function (One of QPython's powerful features)
- Built-in pygame library for android SDL2, allowing you to develop game on android easily
- Built-in bottle web framework, allowing you to develop WebApps quickly

In addition, QPython supports the following libraries:

Django / Flask / Tornado ...
- Numpy / Scipy ...
- Lots of libraries installed along with the QPYPI client.

[[Terminal's features]]

When you long click on the dashboard's terminal icon, you can start the system terminal shell or Python terminal
- You can use the quick key at the bottom of the terminal.
- Change terminal's behavior or font size from the editor's setting

[[IDE's featres]]

Code auto-indentation & Syntax highlighting
- Extended keyboard bar with all the essential symbols you need to program in Python
- Multiple themes
- Enhanced code navigation with interactive assignment / definition go-tos
- One click share with GIST.

[IMPORTANT NOTE]

To enable programming with some of Android's features, QPython requires the following permissions: Bluetooth, GPS, and others, etc.
It doesn "t require some permissions like access user account, access phone" s status, meaning you cannot use some SL4A APIs.
- If you are using an older version with Android<= 5.0 and QPython doesn"t work with your device, maybe you need to enable the python2 compatible core from the QPython setting.

[QPython community]

https://www.facebook.com/groups/qpython

[Feedback]

Please give us five stars if you like our app.
Thank you!
Contact us if you have any problems.
http://m.facebook.com/QPython
http://twitter.com/QPython

https://groups.google.com/forum/#!forum/qpython

This software uses code of Android Terminal Emulator licensed under the APACHE2 LICENSE.

Parts of the source could be found on https://github.com/qpython-android.

If you can "t install or use the latest version, please install the legacy version from https://github.com/qpython-android/qpython/releases Download and install the Play Store APK file or download and install obb from GooglePlay AppStore.

Under this name, you can find three good applications on Google Play (there are more of them, but you shouldn't even waste time installing others). The simplest of these is the Udemy Python 2.x course packaged by the SoloLearn team into an Android app format. It contains lessons that are divided into two stages: basic and advanced. Inside - a brief reference material in text or PDF format. There are working code examples for individual lessons. Doesn't require a network connection.

Learn Python

This application invites users to learn the third version of the language and has much broader functionality. The main screen is reserved for displaying individual stages of the course and personal results. In the menu, you can find a section for free creativity in Python, download courses for other programming languages, and also study help information. The application has an interesting feature: everyone who takes the course and solves problems gets points. Their total number can be found on a separate tab. This creates an additional playful component that can motivate someone to study more thoroughly. At the end of the course, you can get a certificate of mastering the programming language.

Learn Python Programming

The third application, developed by Phoenix App Labs, has the widest functionality and the most colorful interface. There are not only lessons for beginners and those who have already studied the language, but also the ability to download ready-made projects in Python directly from the application, detailed statistics of what has been learned, a separate tab for easy access to your own programs and an element of social competition in the form of an online coding championship with a board of honor ... In case of successful completion of the course, each user receives a certificate.

QPython

A complete Python programming environment for Android devices. It includes a Python interpreter, a console, an editor, and an SL4A library that allows you to create and run scripts directly on the gadget (work with smartphones and tablets is supported, since there are libraries for working with network interfaces, GPS). So in this application, you can code and create full-fledged projects. If you have a good Python tutorial and ready-made projects at hand, choosing QPython will be more than justified, despite the lack of built-in learning functions.

Python Documentation

Stylish app with Python 3.5 documentation in English. Knows how to work offline. There is a section with examples of ready-made code, although the main purpose of the program is a detailed help for those who have already mastered the basic principles of the language. It has a very convenient search and simple navigation.

Quiz & Learn Python

This app is designed to train your existing Python 2.7 programming skills in the form of short questions that address both the basics of Python programming and very specific and unexpected ways to write code. Quiz & Learn Python keeps statistics based on the speed of your responses. The questions can get more complicated depending on the progress. They can be skipped (this affects the progress: the program asks simpler questions). In addition, using the built-in debugger, you can write a question and test the answer in practice.

Python Challenge

Another application for those who have already learned the basics of programming and want to expand their knowledge. The Python Challenge is a question-and-answer game. Each round contains 20 questions containing executable code. A certain time is allotted to answer them. There is a section containing the same questions, grouped by topic, that you can answer without time limits.

Python Exercises

A handy app with text tutorials and examples. Python Exercises features very detailed headings, full coverage of basic topics, and a simple interface. Unfortunately, there is no way to write code here, so either another program or a second device is required.