25th June 2021
Projects⚑
-
New: Add bruty to the dormant plant projects.
bruty is a Python program to bruteforce dynamic web applications with Selenium.
Coding⚑
Python⚑
-
Improvement: Add textual as interesting library to explore.
textual: Textual is a TUI (Text User Interface) framework for Python using Rich as a renderer.
Click⚑
- Improvement: Explain how to change the command line help description.
FastAPI⚑
- New: Explain how to make redirections with fastapi.
- New: Explain how to run a FastAPI server in the background for testing purposes.
Pytest⚑
-
New: Explain how to set a timeout for your tests.
Using pytest-timeout.
-
New: Explain how to rerun tests that fail sometimes.
With pytest-rerunfailures that is a plugin for pytest that re-runs tests to eliminate intermittent failures. Using this plugin is generally a bad idea, it would be best to solve the reason why your code is not reliable. It's useful when you rely on non robust third party software in a way that you can't solve, or if the error is not in your code but in the testing code, and again you are not able to fix it.
feat(python_snippets#Create combination of elements in groups of two): Explain how to create combination of elements in groups of two
>>> list(itertools.combinations('ABC', 2)) [('A', 'B'), ('A', 'C'), ('B', 'C')]
Selenium⚑
- New: Explain how to use selenium with python.
-
New: Explain how to Set timeout of a response.
driver.set_page_load_timeout(30)
-
New: Explain how to fix when Chromedriver hangs up unexpectedly.
os.environ["DBUS_SESSION_BUS_ADDRESS"] = "/dev/null"
Operative Systems⚑
Linux⚑
Linux Snippets⚑
-
New: Explain how to split a file into many with equal number of lines.
split -l 200000 filename
-
New: Explain how to identify what a string or file contains.
Using pywhat