Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the third library of Python?

Shulou Source: shulou.com Published: 2022-06-02 12:17:47 11月13日 Update

This article mainly explains "what is the third library of Python". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn what the third library of Python has.

1. BeautifulSoup

Beautiful Soup is a Python library that can extract files from HTML,XML. After we use crawlers to grab data, we often need to parse the data.

Use it to make you happy to extract the crawling data inside.

2. Arrow

Students who have used the datetime standard library know that this library requires import to format various time modules every time, which is very unfriendly. Arrow directly accepts various time (datetime,date,timestamp) types into Arrow types, and then carries out various formatting operations, which is very convenient. It is very humanized, and it is a necessary medicine for home travel.

3. Requests

The picture is requests's logo, which is so widely used that Python developers should know it.

Requests is the most frequently used daily network library, whether for formal or testing, it fully meets the needs of the daily network, very user-friendly, simple and easy to use.

Requests currently has 36 + star in github. In addition to being powerful, the source code is also very good. Five-star recommendation

4. Fabric

For a small number of servers, daily automatic release configuration, interaction with the server only need to configure a fabfile.py automation script, very simple and convenient. If you need to configure more operations and maintenance can use ansible, this later I will discuss with you alone.

5. Statsd

As a developer, server API performance, time-consuming monitoring is a very important data, we need to collect it for real-time analysis.

Statsd is a network daemon. Through the Python client, we can statistically listen for API data to be sent to the server, such as ES,influxdb,promethues, and display the data with Grafana.

6. Gevent

Gevent is a Python network library based on cooperative programs. The use of cooperative programs through gevent becomes very simple. When you encounter congestion, you do not need to display and switch, and the program will schedule automatically. It is widely used, and gevent is often added to the deployment of flask,celery to improve service performance.

7. Supervisor

As mentioned in the previous article, supervisor can greatly facilitate process management, start, restart, stop, view logs, and so on.

8. Voluptuous

It is estimated that many students do not know that data verification is mainly carried out when writing API. When there are too many parameters passed by the current API, this library can verify the data logic in advance by means of a decorator, which greatly reduces the coupling of your code logic verification data. It is highly recommended for backend students to use it.

9. Raven

The name alone may not be so sensitive, but sentry must be known.

This library is the SDK package for the sentry service. For daily mail alarms, we can collect all kinds of email alarms by installing this package with sentry back-end service.

In addition, by setting the log level, we can easily trigger the alarm through logger.

This package is suitable for multiple languages, not just under the Python language.

10. UWSGI

UWSGI is a web server, which implements WSGI protocol, uwsgi, http and other protocols. As mentioned in the daily deployment article of Python, we mainly use Nginx + uWSGI to pull our application services (such as Django) to improve service throughput.

Thank you for your reading, these are the contents of "what does the third library of Python have?" after the study of this article, I believe you have a deeper understanding of what the third library of Python has, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Service data classmate server network that is articles learning alarm configuration human nature content performance log time time more format type language Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker Microsoft Shulou Information NVidia