The original address: medium. Mybridge. Co/python – open…
The month of May has just passed, and the Mybridge AI blog has just published another article about the top Python Github open source projects in May. Also select the top ten most popular Python open source projects out of nearly 230.
The ten selected projects include Debug tools, Delete Facebook articles, unlimited cloud storage, AI water army, concurrent computing tools, quantitative trading systems, and more.
Take a look at these 10 items!
First place: PySnooper
This is a tool for debugging code that eliminates the need for print to locate where and why errors occur. Currently there are 11,000 + stars.
PySnooper allows you to see the health of the function in detail, including which line to run, local variable changes, and so on, by adding a decorator to the target function without carefully selecting which lines to print.
The installation is simple and can be done using either PIP or Anaconda:
$ pip install pysnooperor$ conda install -c conda-forge pysnooper
Copy the code
An example would be to import pysnooper and then add @pysnooper.snoop() to number_to_bits().
import pysnooper
@pysnooper.snoop()
def number_to_bits(number):
if number:
bits = []
while number:
number, remainder = divmod(number, 2)
bits.insert(0, remainder)
return bits
else:
return [0]
number_to_bits(6)
Copy the code
The resulting output:
Starting var:.. number = 6
15:29:11.327032 call 4 def number_to_bits(number):
15:29:11.327032 line 5 if number:
15:29:11.327032 line 6 bits = []
New var:....... bits = []
15:29:11.327032 line 7 while number:
15:29:11.327032 line 8 number, remainder = divmod(number, 2)
New var:....... remainder = 0
Modified var:.. number = 3
15:29:11.327032 line 9 bits.insert(0, remainder)
Modified var:.. bits = [0]
15:29:11.327032 line 7 while number:
15:29:11.327032 line 8 number, remainder = divmod(number, 2)
Modified var:.. number = 1
Modified var:.. remainder = 1
15:29:11.327032 line 9 bits.insert(0, remainder)
Modified var:.. bits = [1.0]
15:29:11.327032 line 7 while number:
15:29:11.327032 line 8 number, remainder = divmod(number, 2)
Modified var:.. number = 0
15:29:11.327032 line 9 bits.insert(0, remainder)
Modified var:.. bits = [1.1.0]
15:29:11.327032 line 7 while number:
15:29:11.327032 line 10 return bits
15:29:11.327032 return 10 return bits
Return value:.. [1.1.0]
Copy the code
Of course, it can also monitor only a portion of the code in a function, and other uses can be found on Github.
Links:
Github.com/cool-RR/pys…
Second place: DeleteFB
A tool for deleting Facebook articles currently has 2224 stars.
The tool is implemented based on Selenium, so the authors believe it is more reliable than some third-party apps and less likely to be blocked by Facebook.
Several installation methods:
# 1.Install from PyPI
pip install --user delete-facebook-posts
# 2.Clone repo and run
pip install --user .
# or
pip install --user git+https://github.com/weskerfoot/DeleteFB.git
# 3.Set up a Python virtualenv, activate it, and run
pip install -r requirements.txt
Copy the code
See the Github project for additional details.
Links:
Github.com/weskerfoot/…
No. 3 UDS: Unlimited Drive Storage
Third place is a tool for uploading files to Google cloud disk without taking up space, currently 3232 stars.
According to its introduction, this function is mainly achieved by splitting binary files into base64 format, which implements the following functions:
- Upload files to Google’s cloud without taking up storage space;
- Download any stored files to your local computer
The specific implementation logic is:
- Google Docs doesn’t take up space in Google cloud
- The binary file is adopted
base64
The code file is decomposed into Google Docs - The encoded file size will always be larger than the source file, while after
Base64
The ratio of the encoded binary data to the source file is approximately4:3
- A single Google Document can store about one million bytes, which is about 710 KB in size
base64
Coded data - Tried to upload files using multiple threads, but did not significantly improve the speed
See Github for details on how to configure and use it.
Links:
Github.com/stewartmcgo…
Fourth:eht-imaging
Imaging, analysis and simulation software for radio interferometry applications. There are currently 5,000 + stars.
Specifically, a Python module that simulates and manipulates VLBI data and generates images using regularized maximum likelihood methods.
Links:
Github.com/achael/eht-…
Official documentation link:
Achael. Making. IO/eht – imaging…
Fifth:YouTubeCommenter
Youtube, which uses AI technology to generate reviews based on video titles, currently has 159 stars.
The authors also say that the project is only a reference, not a real application.
It feels like if the technology really matures, it’s an AI army and can quickly control the comments on certain videos.
In addition, there is also a video introduction and demonstration by the author, which requires scientific Internet access and good English listening skills. The video lasts about 9 minutes.
youtu.be/tY6SvZEic9k
Links:
Github.com/HackerPoet/…
Sixth:stackprinter
This is also a debugging tool and currently has 900+ stars.
One result of its use, as shown in the figure below, prints the contents of the failed code and the values of the variables surrounding the code, which is very much in line with a friendly and interactive debugger: the location of the failed code, the values of the variables nearby, and the reason for the function calling these parameters.
The installation method is simple:
pip install stackprinter
Copy the code
A more detailed description can be found on Github.
Links:
Github.com/cknd/stackp…
No.7 Pykka
Pykka is the Python implementation of the Actor Model for concurrent operations. Pykka currently has 763 stars.
See the official documentation for details and examples:
www.pykka.org/en/latest/
Installation method is as follows:
pip install pykka
Copy the code
Links:
Github.com/jodal/pykka…
Eighth:QTSSTM4
A quantitative trading system for digital currency. It currently has 244 stars.
The structure of the whole system is shown in the figure below:
This system can be complicated for beginners, so the authors suggest looking at the following three sources:
- BakTst_Org
- BakTst_Trd
- scripts
See Github for details.
Links:
Github.com/xiaoyao1533…
# 9 Maildown
A simple command line interface for sending mail, currently 521 stars.
Maildown is based on Amazon’s SES service, which delivers 62,000 emails a month for free, which is good enough for most people.
Therefore, before using Maildown, you need to have an Amazon AWS account with the registered address:
aws.amazon.com/
Then you also need to have an SES account:
Docs.aws.amazon.com/ses/latest/…
Installation method directly used
pip install maildown
Copy the code
Check out Github for more details.
Links:
Github.com/chris104957…
The first ten:modDetective
This is a tool to sort files by modification time, currently has 119 stars.
At present, this tool is still being improved and optimized. According to the author, the current search speed is still linear and needs to be optimized.
Github has a video of a simple demonstration.
Links:
Github.com/itsKindred/…
These are the top 10 Python projects on Github in May, as well as other Python, machine learning, and other popular projects in the past:
Github.com/Mybridge/py…
Or website:
medium.mybridge.co/
The original address: medium. Mybridge. Co/python – open…
Welcome to follow my wechat official account — the growth of algorithmic ape, or scan the QR code below, we can communicate, learn and progress together!
Past wonderful recommendation
Machine learning series
- Beginners of machine learning actual combat tutorial!
- Model evaluation, over-fitting, under-fitting and hyperparameter tuning methods
- Summary and Comparison of Commonly used Machine Learning Algorithms
- Summary and Comparison of Common Machine Learning Algorithms (PART 1)
- How to Build a Complete Machine Learning Project
- Data Preprocessing for feature Engineering (PART 1)
60 minutes introduction to Pytorch
- Quick start Pytorch(1)- Installation, tensors and gradients
- Quick Start PyTorch(2)- How to Build a Neural Network
- Quick start PyTorch(3)- Train a picture classifier and multiple GPUs
Github projects & Resource tutorials recommended
- [Github Project recommends] a better site for reading and finding papers
- TensorFlow is now available in Chinese
- Must-read AI and Deep learning blog
- An easy-to-understand TensorFlow tutorial
- Recommend some Python books and tutorials, both beginner and advanced!
- [Github project recommendation] Machine learning & Python
- [Github Project Recommendations] Here are three tools to help you get the most out of Github