Package: atlastk
Cyberaddiction, cyberbullying, pedocriminality…:Zelbinium, to prevent the risks related to smartphone use!Pythonversion of theAtlastoolkitTheAtlastoolkitis available for:Language / DemoRepositoryPopularityVidéoWebGPIO(Raspberry Pi/ODROID-C2): theWebGPIOapplication, with which you can control theRaspberry Pi/ODROID-C2(and probably other similar devices) GPIOs with your smartphone, is described in theRaspberry Pi/ODROID-C2below section.A GUI withPythonin a couple of minutesClick the animation to see a screencast of programming this"Hello, World!" programwithPythonin a matter of minutes:Same video onPeertube:https://q37.info/s/qfcng9j4.Source code:importatlastkBODY="""<fieldset><input id="Input" xdh:onevent="Submit" value="World"/><button xdh:onevent="Submit">Hello</button><hr/><fieldset><output id="Output">Greetings displayed here!</output></fieldset></fieldset>"""defacConnect(dom):dom.inner("",BODY)dom.focus("Input")defacSubmit(dom):name=dom.getValue("Input")dom.begin("Output",f"<div>Hello,{name}!</div>")dom.setValue("Input","")dom.focus("Input")CALLBACKS={"":acConnect,"Submit":acSubmit}atlastk.launch(CALLBACKS)See for yourself right now - it's quick and easy!Online, with nothing to installTo run above "Hello, World!" program directly in your browser, as seen in corresponding video, follow this link:https://replit.com/@AtlasTK/hello-python.Thanks toReplit, anonline IDE, you can write and run programs using theAtlastoolkit directly in your web browser, without having to installPythonon your computer.To see more examples, like the followingTodoMVC, simply:gohere(also accessible with thebutton at the top of this page),click on the greenRunbutton,choose thePythonentry (this clones the correspondingGitHubrepository),choose the demonstration to launch,wait for the application to open,… and, as you wish, fork theReplitrepository and run your own tests directly in your browser, by modifying the code of the examples or by writing your own code.WithPythonon your computer# You can replace 'github.com' with 'framagit.org' or 'gitlab.com'.# DON'T copy/paste this and above line!gitclonehttp://github.com/epeios-q37/atlas-pythoncdatlas-python/examples
pythonHello/AndroiddevicesPrograms made with theAtlastoolkit work perfectly on yourAndroiddevices (smartphone or tablet) using theTermuxapplication. Simply install (pkg intall …) thegitandpythonpackages. That's all!JupyternotebooksWhen using theAtlastoolkit in aJupyternotebook, the GUI is embedded in the notebook, as shown here:Jupyternotebook examples can be found in thetutorialsdirectory.Your turnIf you want to take your code to the next level, fromCLItoGUI, then you found the right toolkit.With theAtlastoolkit, you transform your programs in modern web applications (SPA) without the usual hassles:noJavaScriptto write; onlyHTML(/CSS) andPython,nofront and back end architectureto bother with,noweb server(Apache,Nginx…) to install,no need to deploy your application on a remote server,no incoming port to open on your internet box or routeur.TheAtlastoolkit is written in purePython, with no native code and no dependencies, allowing theAtlastoolkit to be used on all environments wherePythonis available.And simply by running them on a local computer connected to internet, applications using theAtlastoolkit will be accessible from the entire internet on laptops, smartphones, tablets…TheAtlastoolkit is particularly well suited for educational purposes, to write modern programming exercises, i.e. with a true graphical interface instead of the usual outdated textual one. More about this can be foundhere.Pythonis much more powerful thenExcelmacros to automate (boring) tasks, and you can also work withPDF,Word,Googlefiles…. And with theAtlastoolkit, you have much more possibilities then withVBAforms. There are some exampleshere.There is also a stub to for this library at addresshttps://q37.info/s/zzcn3wnx.You will also find programs fromThe Big Book of Small Python ProjectsbyAl Sweigartto which a graphical user interface using theAtlastoolkit were added in this repository:epeios-q37/AlSweigartTheBigBookPython.Content of the repositoryTheatlastkdirectory contains thePythonsource code of theAtlastoolkit, which is the directory you have to reference inPYTHONPATHin order to use theAtlastoolkit in your own program, unless you have installed theatlastkpackage(pip install atlastk…).You can also retrieve theatlastk.zipfile, and add to your source code :__import__("sys").path.append("<path to>/atlastk.zip")importatlastkIf theatlastk.zipfile is in the current folder, replace<path-to>/atlastk.zipwith./atlastk.zipand not onlyatlastk.zip.In theexamplesdirectory, you will found following examples:Blank: very basic example,Hello:"Hello, World!",Chatroom: multi-user chatroom,Notes: note taking program,TodoMVC:TodoMVC,Hangman:Hangman game,15-puzzle:15-puzzle game,Contacts: a basic address book,Widgets: some widgets handled with theAtlastoolkit,Chatrooms: same as aboveChatroom, but with several rooms,PigGame:Pig gamefor one or two players,Reversi:Reversigamefor one or two players,MatPlotLib: theAtlastoolkit displaying some graphics made withmatplotlib; this example needs, of course, thematplotlibpackage to be installed…Other examples are detailed in the next section.Except for theErgoJr,GPIOandRGBapplications, which are detailed in the next section, to run an example, launch, from within theexamplesdirectory,python <Name>/(don't forget the final/), where<Name>is the name of the example (Blank,Chatroom…).TheStarsapplication is an example where theAtlastoolkitis used to control aPygamebased application. Of course,Pygameneeds to be installed.Thetutorialsdirectory contains someJupyternotebooksabout  theAtlastoolkit.Raspberry Pi/ODROID-C2If the applications does not work on yourRaspberry Pi, please see this issue:https://github.com/epeios-q37/atlas-python/issues/1TheGPIOandRGBapplications are designed to be used on aRaspberry Pior aODROID-C2.Here is how theWebGPIOapplication looks like:For theRaspberry Pi, theRPi.GPIOPythonmodule have to be installed (this is probably already the case).For theODROID-C2, ThePythonversion ofWiringPimust be installed, and the application has to be launched, from within theexamplesdirectory, withsudo(sudo python GPIO/orsudo python RGB/).TheErgoJrapplication is experimental and to control aPoppyErgo Jrrobot.TheRGBapplication is dedicated to the control of a RGB led, and theGPIO(akaWebGPIO) application allows to control the basic pins. Click below picture to see aYouTubevideo on how they work (same video onPeerTube:https://q37.info/s/49pbmwv9):