Python Universe
2.25K subscribers
103 photos
1 video
1 file
55 links
Everything you need to know about Python programming.

Admin: @haraisen
Feedback: @pythontg_feedbackbot
Download Telegram
How to create an algorithmic trading bot with Python πŸ’°

♦️In this series you will learn how to create your own trading bot with Python. This is a really cool project, but also definitely not for beginners. In order to complete this bot, you will need to create a complex application using the following Python modules:
β–ͺ️Pandas
β–ͺ️Flask
β–ͺ️Plotly

πŸ“šContents
1. Overview
2. Design
3. Getting financial data into Python
4. Open a trade using the MT5 API with Python
5. Close a trade with MT5 using Python
6. Creating an algotrader/trading bot with Python – Part 1
7. Creating an algotrader/trading bot with Python – Part 2
8. Creating an algotrader/trading bot with Python – Part 3
9. Creating a strategy for your algorithmic trading bot – Part 1
10. Creating a strategy for your algorithmic trading bot – Part 2
11. Dynamically calculate lot size for your algorithmic trading bot
12. Send messages from Python to Slack
13. Send an email from Python
14. Trade management for the algorithmic trading bot

#materials #trading
Make Exceptions Great Again

πŸ”ΈPretty-errors
is a Python module that basically the exception output to make it legible.

βš™οΈInstallation
pip install pretty-errors

If you want pretty_errors to be used whenever you run a python script you must add it to your python startup procedure. You can do so easily by running:
python -m pretty_errors
Or you can just simply import it:
import pretty_errors

πŸ”—GitHub

#prettyerrors
"Automate the Boring Stuff with Python Programming" FREE COURSE πŸ“š

This course is one of the best udemy courses (89,262 ratings 938,806 students) related to Python learning, and its free for the next few days with the following coupon: JUL2021FREE.

The course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.

❓How to Enroll
1. Go to the link: https://www.udemy.com/course/automate/
2. Enter coupon: JUL2021FREE
3. Click "Apply"
4. Happy learning!

❗️ATTENTION: The coupon is valid until 4 July.

#materials
Language Detection

πŸ”ΈLangdetect is a re-implementation of Google’s language-detection library from Java to Python, which allows you to determine the input language.

Simply pass your text to the detect() function and it will output the two-letter code of the language for which the model gave the highest confidence score. If you use detect_langs() instead, it will output a list of the top languages that the model has predicted, along with their probabilities.

βš™οΈInstallation
pip install langdetect

πŸ”—GitHub

#langdetect
Python Machine Learning Tutorials πŸ“Ί

Learn machine learning with Python. This series starts out teaching basic machine learning concepts like linear regression and k-nearest neighbors and moves into more advanced topics like neural networks and convolution neural networks.

1. Introduction [YouTube]
2. Linear Regression p.1 [YouTube]
3. Linear Regression p.2 [YouTube]
...
12. Implementing K-Means Clustering [YouTube]

πŸ”—Full Playlist

#materials #machinelearning
What is the output of the code given above?
Anonymous Quiz
12%
Hello, world
45%
Hello
4%
Meaning of Life
39%
Error
One line jokes for programmers πŸ€“

πŸ”ΈTrying to make your project more interesting or funny? Now, you can add jokes to your project with pyjokes.

There's basically two functions:
β–ͺ️get_joke(language='en', category='neutral')
β–ͺ️get_jokes(language='en', category='neutral')
The first one returns a single joke (string), while the second one returns a list of random jokes from a certain category and in a particular language.

Supported languages: English (en), German (de), Spanish (es), Galician (gl), Basque (eu), Italian (it).
Categories: neutral, chuck (yes, Chuck Norris jokes), all, twister (only for German language).

βš™οΈInstallation
pip install pyjokes

πŸ”—GitHub
πŸ”—[Tutorial] Python Script to create random jokes using pyjokes

#pyjokes #bullshit
What is the output of the code given above?
Anonymous Quiz
11%
19
46%
20
14%
5
20%
Infinite recursion
10%
Error
Web Scraping in Python

πŸ”ΈScrapy
is an open source and collaborative framework for extracting the data you need from websites.

It gives you all the tools you need to efficiently extract data from websites, process them as you want, and store them in your preferred structure and format. Unlike BeautifulSoup, which you may have heard of, Scrapy is a tool specifically created for downloading, cleaning and saving data from the web and will help you end-to-end; whereas BeautifulSoup is a smaller package which will only help you get information out of webpages.

βš™οΈInstallation
pip install scrapy

πŸ”—Homepage
πŸ”—GitHub
πŸ”—[Tutorial] Making Web Crawlers Using Scrapy for Python

#scrapy #web
What is the output of the code given above?
Anonymous Quiz
11%
1
11%
foo
6%
bar
26%
foobar
4%
0
41%
Error
What is the output of the code given above?
Anonymous Quiz
6%
1
27%
3
41%
None
26%
Error
What is the output of the code given above?
Anonymous Quiz
20%
None
16%
1
26%
2
15%
""
24%
Error
Practice your Python skills directly in Chrome Browser 🌐

PyQuickie is a chrome extension where you can practice your python coding skills easily and hassle free. No login required and with just one click you can improve your coding and problem solving skills while still being able to enjoy browsing through facebook and other web activities.

πŸš€Features
β–ͺ️Importing Python builtin Modules Work.
β–ͺ️Working python IDLE.
β–ͺ️Python keywords highlighting.
β–ͺ️Python Tabbing Feature in textarea.
β–ͺ️Questions are ranked by level of difficulty: easy, medium, and hard.

πŸ”—Chrome Extension

#materials #tools