Developing Web apps with Python

Source: Internet
Author: User
Tags mathematical functions
Pythonis a universal programming language and quickly becomes a necessity in every self-respecting programmer's treasury.

There are countless web frameworks in Python, from basic small architectures to complete architectures, with their own advantages. So you're going to use it to do some web development, but before we go into the details, let's start from the beginning.

Learn the basics of Python

Up to now, Python has two versions, 2.7.5 and 3.3 are currently stable versions of Python. It doesn't matter which study you choose, because the difference is very small-especially for beginners. But you should know that while Python 2 has a very, very large number of third-party support, Python 3 is a focus for developers of design languages, and many third-party support has not yet been ported to Python 3. This choice requires you to make a decision. However, learning any new language can be a daunting task, and finding the right place and people and learning from it is half the success. This is the use of this guide. Making Python simple, fun, and easy to learn is your blueprint.

for starters, the biggest difference between Python 2 and Python 3 is that Python 2 uses print without parentheses, while Python 3 needs it, but that's all.

1. Codecademy Python Course

Codecademy has done a great job of putting Python's lessons together, which is useful for beginners QuickStart python.

2. screencasts

For absolute beginners, there are some great screencast videos.

Some of the screenshots I learned when I studied Python were:

    • Showmedo ' s Python screencasts


    • Thenewboston ' s Python programming tutorials

Two tutorials are great, and you can even start writing scripts after you've finished learning these two series. It is highly recommended to watch those tutorials, which are free and very good resources for your future reference.

3. Python's official website

Of course, there is no better resource than the official python.org documentation. But it is not recommended for beginners because the concepts involved are deeper and more advanced, but it is still the best resource.

With this, you will have some Python knowledge and know how to handle things in Python.

Read some books

There are a plethora of free high quality ebooks to choose from. The following quick list lists some of the best books. You can download their electronic version for free, or if you want to support the author, you can also choose to buy paper books (or donate), I believe they will be very grateful for this way.

Think python:how to Think like a computer scientist

Think python involves a little more theoretical knowledge. This may be frustrating for beginners, but the book's knowledge of algorithmic principles and advanced concepts is well worth reading.

Invent with Python

If "Learn while doing" is your way, then building your own game will be a very rewarding experience! In this book, AI Sweigart assumes that there is no knowledge of Python and leads you through the process of building your own game.

Familiar with StackOverflow

StackOverflow is not just "newbie" errors and problems; some very smart and helpful people are using the site-learn from them!

For example, consider the problem of Python's hidden features.

Many of the tips and tricks you see here may not be covered by many formal tutorials, but they are useful for advanced Python users.

Go to web development

Now that you have completed Python ninja training and are ready to delve into Ptyhon web development, the problem is that there are many frameworks in which it is difficult to choose the best framework, but from a beginner's point of view, the Flask Basic web framework will be great for getting started with web development, Because you just need to know that Python can start, and you have learned a lot of knowledge.

After you finish learning the Flask framework, you will know that it is very easy to create a static page, which is the next question, is it appropriate to use it to create the next web2.0 application? The answer is Yes, you can use flask to create any application you want, but after a lot of effort, you will find that you have successfully re-built an existing wheel, but it gives you great flexibility and power, and at first you may feel unstoppable, And this is also a lot of beginners to choose Django, and then in six months or so changed the other framework.

You can read this and know which sites are driven by flask.

The largest site built with Flask

Although Django and pyramid are also good at web development, they are designed for advanced users, rather than just learning to write a few lines of Python for beginners. But if you want to study web development seriously, learning flask is a good entry frame because it doesn't abstract anything, and it doesn't have any magic.

Common libraries and tools

PyPy

If your job is computationally intensive, you'll find that Python performance is a bottleneck and you need to pypy. PyPy is a substitute for the Python interpreter that can speed up processing efficiently.

NumPy + SciPy

These two libraries are usually used together (scipy relies on numpy). If you need to do some complex numerical calculations or scientific research work, then these two libraries will be your desk friends. NumPy and scipy extend the function of Python's mathematical functions, which can greatly improve your productivity.

BeautifulSoup

Like its name, BeautifulSoup is indeed very elegant. If you need to parse an HTML page to get some information, you should know that this is a very annoying thing. BeautifulSoup's role is to do these things for you and save you time. It is highly recommended.

Python Image Library

The Python Image Library (PIL) is an extension library to handle almost any image operation. If you need to process an image, PiL can do a lot for you.

Once you understand this, you can embark on your own path to Python.

Some Web development libraries

SQLAlchemy

SQLAlchemy is a SQL and object-relational mapping (ORM) toolset for Python. It is powerful and flexible, making it easy for application developers to perform SQL operations.

Alembic

Alembic is a lightweight database integration tool that is primarily used in conjunction with SQLAlchemy.

Conclusion

Call it a day, and feel free to share your thoughts.

Original address: http://pypix.com/python/get-started-python-web-development/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.