<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>python programming Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/python-programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 03 Oct 2020 16:09:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install FLASK in Windows 10</title>
		<link>https://www.osradar.com/how-to-install-flask-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-flask-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 02 Oct 2020 21:37:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[plask]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23977</guid>

					<description><![CDATA[<p>Today we will see how to install FLASK in Windows 10. This is a framework written in Python designed to create web applications. Also, it offers to do it quickly and without having to enter and edit many lines of code. It is based on the WSGI specification by Werkzeug and the Jinja2 template engine. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-flask-in-windows-10/">How to install FLASK in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we will see how to install FLASK in Windows 10. This is a framework written in Python designed to create web applications. Also, it offers to do it quickly and without having to enter and edit many lines of code. It is based on the WSGI specification by Werkzeug and the Jinja2 template engine. On the other hand, it has a BSD license. Some of its features are the following:</p>



<ul><li>It is based on Unicode</li><li>WSGI compliant</li><li>Allows the execution of individual tests</li><li>It has development servers and debugging features</li><li>Use Jinja2 template styles</li><li>Allows the creation of secure cookies for sites</li></ul>



<h2>Prerequisite</h2>



<p>As mentioned, this is an application written in Python. Consequently, it is essential to have this language installed. To know how to do it, see our <a href="https://www.osradar.com/how-to-install-python-3-in-windows-10/" target="_blank" rel="noreferrer noopener">tutorial.</a></p>



<h2>How to download and install Flask in Windows 10. Step by step.</h2>



<p>In the first place, it is necessary to create a folder where you will save the configuration of the app. With this in mind, we will create it inside <em>Documents</em> and call it <em>my_flask.</em></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask-1024x787.png" alt="" class="wp-image-23978" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then open a CMD as an administrator from the folder location and run the following command:</p>



<pre class="wp-block-preformatted">py -m venv env</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask2-1024x787.png" alt="" class="wp-image-23979" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask2-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask2.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>With this command we have created the virtual environment of Flask. In effect, all you have to do is go to the folder and look at the content.</p>



<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask3-1024x787.png" alt="" data-id="23980" data-full-url="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask3.png" data-link="https://www.osradar.com/?attachment_id=23980" class="wp-image-23980" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask3-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask3.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask4-1024x787.png" alt="" data-id="23981" data-full-url="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask4.png" data-link="https://www.osradar.com/?attachment_id=23981" class="wp-image-23981" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask4-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask4.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li></ul></figure>



<p>Back to the terminal, please run the following command to activate the environment:</p>



<pre class="wp-block-preformatted">env\Scripts\activate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask5-1024x787.png" alt="" class="wp-image-23982" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask5-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask5.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, install Flask with the following command:</p>



<pre class="wp-block-preformatted">pip install flask</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask6-1024x787.png" alt="Installing Flask on Windows 10" class="wp-image-23983" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask6-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask6.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Installing Flask on Windows 10</figcaption></figure>



<p>Once Flask is downloaded and installed, the wizard recommends updating the pip. With this in mind, run the following command:</p>



<pre class="wp-block-preformatted">python.exe -m pip install --upgrade pip</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="215" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask7-1024x215.png" alt="Updating the PIP version" class="wp-image-23985" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask7-1024x215.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-768x161.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-696x146.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-1068x224.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask7.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Updating the PIP version</figcaption></figure>



<h2>Creating the configuration file.</h2>



<p>Now it&#8217;s time to create an <em>app.py</em> file. Consequently, some advanced text editor like <a href="https://notepad-plus-plus.org/#main" target="_blank" rel="noreferrer noopener">Notepad++</a> is recommended. Finally, save it in the newly created folder.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask8-1024x787.png" alt="Creating the app.py file" class="wp-image-23988" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask8-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask8.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the app.py file</figcaption></figure>



<p>Then, please establish the application with the following order:</p>



<pre class="wp-block-preformatted">set FLASK_APP=app.py</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="78" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask9-1024x78.png" alt="" class="wp-image-23990" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask9-1024x78.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-300x23.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-768x58.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-696x53.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-1068x81.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then open the <em>app.py </em>file and add the following lines:</p>



<pre class="wp-block-preformatted">from flask import Flask
app = Flask(<strong>name</strong>)
@app.route('/')
def index():
return '&lt;h1>Hello&lt;/h1>'</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask10-1-1024x787.png" alt="Editing the configuration file" class="wp-image-23992" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption><em>Editing the configuration file</em></figcaption></figure>



<p>To run this environment go to the terminal and there run:</p>



<pre class="wp-block-preformatted">flask run</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="135" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask11-1024x135.png" alt="" class="wp-image-23993" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask11-1024x135.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-300x40.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-768x101.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-696x92.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-1068x141.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask11.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, select the assigned IP address in the terminal. Then open it in any browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask12-1024x787.png" alt="Flask application running successfully in a browser" class="wp-image-23995" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask12-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask12.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Flask application running successfully in a browser</figcaption></figure>



<p>Ultimately we have seen how you install Flask on Windows 10. Besides, it is written in python so it has a great support. See you later!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-flask-in-windows-10/">How to install FLASK in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-flask-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Programming Losing Popularity</title>
		<link>https://www.osradar.com/python-programming-losing-popularity/</link>
					<comments>https://www.osradar.com/python-programming-losing-popularity/#comments</comments>
		
		<dc:creator><![CDATA[Mel K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2018 12:06:06 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python code]]></category>
		<category><![CDATA[python programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=990</guid>

					<description><![CDATA[<p>Programming is one of the most important parts of operating a computer. A programmer tells the computer how to perform certain tasks using the hardware. The workflow is encoded with programs, aka software. In this modern age, software is basically the heart of everything. There’re numerous programming languages that can be used to create such [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/python-programming-losing-popularity/">Python Programming Losing Popularity</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Programming is one of the most important parts of operating a computer. A programmer tells the computer how to perform certain tasks using the hardware. The workflow is encoded with programs, aka software. In this modern age, software is basically the heart of everything. There’re numerous programming languages that can be used to create such software. Python is one of the major and most popular programming languages of all time. However, Python programming seems to keep losing its popularity. Check out <a href="https://www.osradar.com/top-used-programming-and-scripting-languages/">top used programming and scripting languages</a>.</p>
<p><figure id="attachment_996" aria-describedby="caption-attachment-996" style="width: 680px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-996" src="https://www.osradar.com/wp-content/uploads/2018/01/python-programming-1-300x113.png" alt="python programming" width="680" height="256" srcset="https://www.osradar.com/wp-content/uploads/2018/01/python-programming-1-300x113.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/python-programming-1-768x288.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/python-programming-1-696x261.png 696w, https://www.osradar.com/wp-content/uploads/2018/01/python-programming-1.png 800w" sizes="(max-width: 680px) 100vw, 680px" /><figcaption id="caption-attachment-996" class="wp-caption-text">python programming</figcaption></figure></p>
<p>Python is one of the easiest languages and the most popular introductory language to teach programming in the U.S. universities. It’s versatile, strong, simple, fast, open-source and cross-platform.  Moreover, Python is stable and going strong with newer and better releases regularly. Why Python losing popularity?</p>
<h2>Python programming drawbacks</h2>
<p>There’re several downsides of Python programming. Those are really good reasons for losing the popularity.</p>
<ol>
<li>Difficulty in using other languages: Python works relatively different than others. Python programmers find it hard to shift to other powerful languages from their base. It’s a major disadvantage to move towards more productive languages.</li>
<li>Mobile computing: Python is available only on desktop and server platforms. However, it’s not widely available on the mobile platform. While mobile is the future, python still hasn’t figured out its way. Instead, Java (for Android) and Objective-C (for iOS) are more rewarding.</li>
<li>Runtime speed: Python is fast, but not fast enough for huge implementation. Python is executed using an interpreter runtime program. As an interpreted language, Python lacks the robust performance of most other compiled languages like C, C++ etc. Python is only fast with enough hardware power and only on web applications. As it uses a pre-installed runtime, that’s another major factor in speed.</li>
<li>Runtime error: Python is dynamically typed, having many design restrictions reported by some Python devs. Python requires more testing time than other languages as error show up one by one when run. For enterprise level, this isn’t promising at all.</li>
<li>Database access layers: Python seems to lack the power of database access layers. Compared to the more popular techs like JDBC or ODBC, Python database access layer is underdeveloped and relatively primitive. The database is an important part of an enterprise. Without the proper facilities, Python isn’t suitable there.</li>
<li>Security: According to a Python legend, Stephen Deibel, Python isn’t secured to use on the browsers. There’s still no good sandbox/jail for Python. Absence from web browsers is another important cause for Python to lose popularity.</li>
<li>Shift towards newer versions: Python has 2 mainstream versions – v2.x and v3.x. The jump from 2.x to 3.x is relatively big. The changes were huge and noteworthy. However, most of the previous developers didn’t like the newer system. That’s why it lost a certain number of audiences.</li>
</ol>
<h2>Python and other languages</h2>
<p>Python basics are relatively easy to learn, so it’s used in teaching programming. Moreover, Python tutorial is easily available. However, with so many drawbacks and limitations of this language, enterprise level implementation is still far away. On the other hand, languages like Java, C, C++, C#, PHP, JavaScript etc. offer more productivity in their respective fields.</p>
<p>If you’re a Python lover, there’s nothing to be sorry for. Programmers widely love Python, but not widely used for these limitations. A Python code can do a lot of work. If you intend to build a career on Python programming, focus learning the server tactics. Django, Google App Engine, Zope, Pyramid etc. all use Python in their core.</p>
<p>Python basics teach a newbie the heart of programming with the easier python codes. Unless you work on a server, it’s better not to learn Python heart and soul. Unless it overcomes the issues, it’s better to leave Python temporarily.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/python-programming-losing-popularity/">Python Programming Losing Popularity</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/python-programming-losing-popularity/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
