Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Monday, November 7, 2022

Python nasušni

 https://sourceforge.net/projects/pyscripter/




Do you need encouragement while typing the best code ever?

Try this:



PDF literatura samo za Vas:

Learning DevOps ~560 strana
~Terraform, Azure DevOps, Kubernetes and Jenkins

Cloud Security Handbook ~456 strana
~AWS, Azure, GCP

{ kontaktiraj me odmah ! }

++






Regata OS is a Brazilian Linux distribution based on openSUSE, focusing on desktop and gaming needs. Its main characteristics include a Regata OS store for installing applications and games, out-of-the-box integration with Google Drive, support for a gaming mode via the Vulkan graphics API, an extensive library of games in the Regata OS Game Access portal, support for configuration of hybrid graphics in notebooks, and easy transfer of files between a computer and a smartphone. The distribution's user interface is KDE Plasma.



C# niche =


JavaScript niche =




Tuesday, November 20, 2018

Interesantni Python primeri

https://www.pythonforbeginners.com/basics/list-comprehensions-in-python

https://www.programiz.com/python-programming/closure

https://www.w3schools.com/python/ref_func_map.asp

Game changer for Bots, Scalpers and used in Google Search Bots for retrieving search data from millions of websites for Googles Search Engine Data.
I use it for requesting all CSS, JavaScript and Images once I’ve retrieved the HTML file from a HTTP Request. Bots use it to grab HTML from set list of http or https website paths stored into Lists Arrays.
Yes it retrieves them all using Multi-Threads. They then process all these files to pull out data from SEO meta tags, header tags, site title and possibly the first few paragraphs of each websites main page.
  1. threads = [threading.Thread(target=fetch_url, args=(url,)) for url in cs]
  2. for thread in threads: ;thread.start()
  3. for thread in threads: ;thread.join()
It can be set to retrieve 100 to 200 websites html pages/files and download them all in the same amount of time as a single http request.
My test running “import time time.time()” . How fast is it? For a single website request to fetch all local CSS paths from the HTML Page is under 1.75 combined average time in seconds for Python.org main page with all of its CSS downloaded. Fast Enough for my Mosaic Browser.

Tuesday, November 13, 2018

TensorFlow™ @ Python

TensorFlow™ is an open source software library for high performance numerical computation. Its flexible architecture allows easy deployment of computation across a variety of platforms (CPUs, GPUs, TPUs), and from desktops to clusters of servers to mobile and edge devices. Originally developed by researchers and engineers from the Google Brain team within Google’s AI organization, it comes with strong support for machine learning and deep learning and the flexible numerical computation core is used across many other scientific domains.

***



***



Saturday, November 10, 2018

Lazarus und Python

***



***

Wir basteln uns unseren eigenen anonymen Webbrowser. Ich kombiniere einen offline Webbrowser in Lazarus mit Python scripts die von SSL Proxy Servern html Seiten laden können. So ergibt sich ein Browser der nicht selber online geht ohne das wir es wollen. Kein Java, keine Bilder, kein Flash ... reines html. Achtung !! Ausser Lazarus müssen sowohl python also auch python-mechanize installiert sein damit das Programm läuft. Lazarus Quelltext als Download : "annonbrowser.zip" http://theregrunner.de ( i show in this programming demo how to build my own webbrowser with Lazarus and Python scripts ) Weblinks / Quellen : http://www.lazarus.freepascal.org/ http://www.python.org/ http://wwwsearch.sourceforge.net/mech... http://sourceforge.net/projects/tpipro/

http://wiki.freepascal.org/Python4Delphi



https://www.lazarus-components.org/Components-with-sources/Demos-applications-forms-themes-languages/Applications/

https://www.getlazarus.org/learn/tutorials/examples/webbrowser/

http://lazplanet.blogspot.com/2015/09/create-web-browser-in-3-minutes-using.html

http://wiki.freepascal.org/GeckoPort

http://lazplanet.blogspot.com/2013/10/browser-in-lazarus-with-gecko-pt1.html

Friday, October 5, 2018

Faster Python * Welcome to PyPy

Welcome to PyPy

PyPy is a fastcompliant alternative implementation of the Python language (2.7.13 and 3.5.3). It has several advantages and distinct features:
  • Speed: thanks to its Just-in-Time compiler, Python programs often run faster on PyPy. (What is a JIT compiler?)
    “If you want your code to run faster, you should probably just use PyPy.” — Guido van Rossum (creator of Python)
  • Memory usage: memory-hungry Python programs (several hundreds of MBs or more) might end up taking less spacethan they do in CPython.
  • Compatibility: PyPy is highly compatible with existing python code. It supports cffi and can run popular python libraries like twisted and django.
  • Stackless: PyPy comes by default with support for stackless mode, providing micro-threads for massive concurrency.
  • As well as other features.
Want to know more? A good place to start is our detailed speed and compatibility reports!



Tuesday, September 25, 2018

Python - nekoliko reči o ovoj temi ponovo...

...


1https://sourceforge.net/projects/pywin32/files/



2* https://python-gtk-3-tutorial.readthedocs.io/en/latest/

https://www.gtk.org/download/windows.php

*http://www.msys2.org/

---------------------------------------------------------------------

Python for Linux & GTK+:

1https://python-gtk-3-tutorial.readthedocs.io/en/latest/install.html


2https://www.gtk.org/download/index.php


---------------------------------------------------------------------

Plaćeni alat - visual components


https://www.visualcomponents.com/

**
***
**** http://academy.visualcomponents.com/courses/python-robotics/
***** http://academy.visualcomponents.com/

Probajte da napravite Python (ili Django) robustnu aplikaciju za knjigovodstvo sa PostgreSQL bazom podataka ili sa MySQL-om, ništa fensi, samo jedan grid, editor box, pretraga.

Zar nije lakše i brže programirati knjigovodstvene programe u C#.net ili Lazarusu ?


Ipak da koristite Python i sa drugim jezicima ?


C/C++

There a various tools which make it easier to bridge the gap between Python and C/C++:
  • Pyrex - write your extension module on Python (!)
  • Cython -- Cython -- an improved version of Pyrex
  • CXX - PyCXX - helper lib for writing Python extensions in C++
  • ctypes is a Python module allowing to create and manipulate C data types in Python. These can then be passed to C-functions loaded from dynamic link libraries.
  • elmer - compile and run python code from C, as if it was written in C
  • PicklingTools is a collection of libraries for exchanging Python Dictionaries between C++ and Python.
  • weave - include C code lines in Python program (deprecated in favor of Cython)
  • ackward exposes parts of Python's standard library as idiomatic C++
  • CFFI - interact with almost any C code from Python, based on C-like declarations that you can often copy-paste from header files or documentation.

C/C++ Binding Generators

Tools to make C/C++ functions/methods accessible from Python by generating binding (Python extension or module) from header files.
  • boost.python - Expose C++ classes functions and objects to Python, and vice-versa, using just C++ compiler
  • PyAutoC - Automatically wrap C functions and structs, using just C compiler.
  • pwig is a SWIG extension for writing new language modules in Python.
  • PyBindGen Python bindings code generator for pure C or C++ APIs. The generator is written in Python and has low complexity. The generated code is lean, efficient, and highly readable
  • shiboken - Binding Generator used to create PySide Python bindings for Qt
  • SIP - similar to SWIG but specialised for Python and C++. Used to create PyQt, the Qt API wrapper library
  • SWIG - generate extension module from your .h files
  • pybind11 - Similar to Boost.Python, but with a lean header-only implementation for C++11-capable compilers.
  • pyclif - Google tool. Similar to SWIG, but user-friendly and targeted only C++11 well-written libs.
  • cppyy - Interact with C/C++ through LLVMs JIT with automatic pythonizations for a "python feel." Support tools are available for large scale projects.

Articles
  • Using Python as glue SciPy Documentation
  • Building Hybrid Systems with Boost.Python in C/C++ User Journal (2003)
  • Integrating Python, C and C++, presented at the ACCU conference by Duncan Booth (2003)
  • Embedding Python in Multi-Threaded C/C++ Applications in LinuxJournal (2000)

Related

Delphi

Fortran

Lisp

Prolog

Java

  • Jython - Python implemented in Java
  • JPype - Allows Python to run java commands
  • Jepp - Java embedded Python
  • JCC - a C++ code generator for calling Java from C++/Python
  • Javabridge - a package for running and interacting with the JVM from CPython
  • py4j - Allows Python to run java commands.
  • voc - Part of BeeWare suite. Converts python code to Java bytecode.
  • p2j - Converts Python code to Java. No longer developed.

C#/.NET

  • Python for .NET is a near-seamless integration of the CPython runtime with the .NET Common Language Runtime (CLR).
  • IronPython is an implementation of Python for .net, which allows you to import .net class libraries seamlessly in Python.

Perl

For converting/porting Perl code to Python the tool 'Bridgekeeper' http://www.crazy-compilers.com/bridgekeeper/ may be handy.

PHP

R

Objective-C

Tcl

  • elmer - compile and run python code from Tcl, as if it was written in Tcl
  • TclPython - A package for Tcl that allows you to pass strings of Python code from a Tcl environment to a Python (Python 2.x or 3.x) interpreter.
  • Tcl and other languages - Tcl's equivalent of this page.

Lua

  • LunaticPython - a two-way bridge between Python and Lua.
  • Lupa - fast wrapper for LuaJIT2 written in Cython.
  • Lux - a mutant Lua emphasizing interoperation with Python, Perl, etc.

OCaml

  • Pycaml - write Python extension modules in OCaml (instead of C), and use Python code and native libraries from OCaml programs.

Eiffel and Haskell

Other (applications)

to name a few. There are much more...

Other (standards and protocols)

See also




I dalje ste zagrejani za Python programiranje ?

https://www.codecademy.com/learn/learn-python?composer_curriculum_redirect=python



Većina gotovih primera u robotici je uradjen upotrebom Python programskog jezika, pa se zato često koristi u Arduino baziranim rešenjima (to su jeftiniji elektronski kontroleri sa senzorima i aktuatorima, led panelima i slično, mnogo jeftiniji od Raspberry Pi IoT rešenja).

Od vizuelnih Arduino robotskih jezika imamo ArduBlock, Blockly, Scratch i LEGO Mindstorm Robotics kao najpoznatije (zna ih svaki mališan u osnovnoj školi i svaki student na FTN-u).

Od manje poznatih Arduino vizuelnih alata izdvajam Lazarus bazirani - VISUINO

Ovaj poslednji je kodiran u Lazarus IDE (Free Pascal Compiler) programskom jeziku.


Python je idealan za hakovanje, samo pogledajte Kali Linux i Python bazirane exploite i sve će Vam biti jasno.