# Secure-Python-Guide **Repository Path**: mirrors_levigross/Secure-Python-Guide ## Basic Information - **Project Name**: Secure-Python-Guide - **Description**: This is a guide on how to write Secure Python code - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Secure-Python-Guide =================== This is a guide on how to write Secure Python code. Proper use of Python Stdlib =========================== 1. Don't use `eval`. If you need `eval` functionality use `ast.literal_eval` (http://docs.python.org/library/ast.html#ast.literal_eval) 1. `os.mkdir` will `chmod 777` every directory it creates unless you provide an alternative 1. Use Hmac 1. If you need to serialize data use the safe alternatives `yaml.safe_loads` Insecure Examples of Stdlib ===========================