In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.