Found a good reference link to understand Python & django high level Advanced concepts.
https://github.com/hamedasgari20/Python-and-Django-advanced-topics
Found a good reference link to understand Python & django high level Advanced concepts.
https://github.com/hamedasgari20/Python-and-Django-advanced-topics
Found an interesting and useful book on Django tests, It covers Integration, unit and functional testing.
Variable names – It is always advisable to have Variable names as descriptive rather than single char.
Ex: t = 300 , total_time_elapsed = 300 (Right one)
Spacing between methods and functions – It is always advisable to have one space between each method inside the class, and two spaces between functions
Module names – It is better to have all small cases in the module name.
Ex: Session.py, session.py (Right one)
Dedicated py file all Globals – It is better to keep all common variables or constants in a single py file.
Comments and doc-string – It would be nice to have comments (shorter) and doc-string (for functions) for each block of code.
Grouping modules – It would be nice if you group all standard module one and other third-party modules one.
Having utility module – Having a separate module for utilities like windows file paths, Linux paths, and system-related stuff.
Star in imports – It is always recommended not to use “*” in from imports, until and unless really required.
Ex: from mymodule import *, from mymodule import specific (Right one)
Script execution entrypoint – It is advisable to have script execution entry point (if __name__ == ‘__main__’).
Interesting YouTube video on Django code structure for scale and longevity.
Found a nice Article on Python request module advanced usage.
https://findwork.dev/blog/advanced-usage-python-requests-timeouts-retries-hooks/
Found an interesting and useful link for having book on Practical Python Projects. This book was written by Yasoob Khalid.
https://www.feldroy.com/blogs/news/we-have-a-new-python-book
Found interesting article on Optimizing Django ORM Queries.
http://schegel.net/posts/optimizing-django-orm-queries/
• Write a program to execute command on remote machine and get the out of command
• Best way to read bigger size files > 10GB
• Explain Python Global interpreter lock
• Validate file copy by calculating its hash (hashlib module)
• Write a program to find URLs in a text file and verify if the URL is valid
• Write a Python program to check if the input python module/package is already installed, upgrade the module/package if already present, install the module if not present (using pip)
• Find the maximum nested depth of curly braces
Wrongly ordered braces should return -1
Example:
Input: {a+b} * {b+c}. Output: 1
Input: {a + {c + {e / 9} – d} * 4} Output: 3
Input: {a – c *{s} Output: -1
Please find the below Python wrapper/module for interacting with terraform and it is an alternative to CLI.
https://pypi.org/project/python-terraform/
https://github.com/beelit94/python-terraform/blob/master/README.md
Example:
from python_terraform import Terraform tf = Terraform() tf.init(reconfigure=True) tf.apply(skip_plan=True) tf.apply()
Python based Behavior-driven development (BDD) Automation framework (behave).
Details below :
https://behave.readthedocs.io/en/latest/
The latest news on WordPress.com and the WordPress community.
A humble programming blog for newbies, mostly about Python. # <3
The usage of the Python programming language in scientific endeavors
A Dedicated Blog For Python Programming New aspirants