• Hi there,

    I'm having the same objective : release a simple game, with adds to make (or not...) money via the app Store.
    My researches brings me to Google Ads, and Google provide a Python version of their Ads API.
    I hadn't gone more further in that (I'm not at this point of the project), but here is the Google solution :
    https://developers.google.com/adwords/api/docs/samples/python/

    I'm not sure it will be easy to use with Pythonista, or simply possible, but it looks promising and probably easiest than Object-C for Python programmers.

    As I was talking about it in the "Next Pythonista Most wanted features" thread, I really think that being able to support such a feature in Pythonista should bring a lot of people to develop with.

  • You're right but I only wanted tell him there is another way for! sorry.

  • You know what, never mind. I was using OMZ's Barcode/QR Code Scanner that uses ui. I just had to use the wait_modal function. Sorry!

  • @jbap Are you sure?

    >>> import pyparsing >>> pyparsing <module 'pyparsing' from '/var/mobile/Containers/Bundle/Application/E4982298-24E8-43A9-BE41-1B030744FB63/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/pyparsing.py'>

    pyparsing.py is located inside PythonistaKit.framework, so it's not something that I had to install by hand.

    stash has used pyparsing for a long time too, even before the 2.0 release, so it can't be a very recent addition.

    (The documentation for pyparsing isn't included with Pythonista though, aside from docstrings that you can view with help(pyparsing).)

  • Thanks guys. I will look at these for inspiration. @JonB , but you are correct in your thinking. Here, it's going to be about drinking and bar hopping. And of course we are not mental giants after the first few hours of drinking 😱 But will be nice to see how others do it . What I have is just a night of fun, not mentally taxing. There are many built in road blocks '/challenges in thailand already. I did some simple but fun things many years ago with SMS in Phuket.
    Again thanks all...

  • No, Python is not compiled into C. Python source code is internally compiled into Python bytecode, which is then run by the Python runtime. The runtime (CPython) is written in C, but that doesn't mean that Python code is compiled to C.

    There is a project called Cython (not to be confused with CPython, the "standard" Python implementation from http://python.org/) which is based on Python's syntax, but has some extra features for working with C libraries. Cython source code is "compiled" to C, but only so it can be compiled to native code by a normal C compiler. Most Python code is also valid Cython, so you can probably use that to compile Python scripts to native code.

  • Pythonista has no built-in module for microphone access, though you can use the native microphone API using objc_util. One of @omz's early ctypes examples was a very simple sound recorder. In the current Pythonista you'd want to use objc_util rather than raw ctypes though.

Internal error.

Oops! Looks like something went wrong!