GithubHelp home page GithubHelp logo

python_code_recipes's Introduction

Python Code Recipes

This is a site dedicated to my notes on the Python language. Here I try to collect part of my experience of the day with the use of this language.

Contents Practical Workshop - Introduction to Python Fundamentals (07/2023)

Study material, practical exercises shared during the workshop held at the Agricultural University of Athens (AUA) in July-August 2023.

Package Description
Study materials Slides for the workshop.
Learning activities Source code for download.
Practical exercises Proposed exercises and solutions.
Videos Tools - help in video format
Table 1. Contents Practical Workshop - Introduction to Python Fundamentals

Useful information

Interesting links

Package Description
Beginner’s Guide to Python Another good resource for beginners. It contains references to courses, examples, cheat sheets.
Official site for Python language The main site for information on the Python language.
The Python Standard Library While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python.
The Python tutorial A good tutorial to start Python.
PEP 8 – Style Guide for Python Code Style guide, useful for writing clean code in Python.
Rosetta Code Is a site with general information about programing languages, it is included Python.
Data Science Rosetta Stone Site focused in the use of Python for data science tasks.
W3 Schools Good site for reference
Python Cheat Sheet for Beginners Good for language reference.
Python Crash Course - Cheat Sheets Good for language reference.
Table 2. Interesting links

Advanced topics (WORKING)

This folder contains examples about advanced topics using Python.

Topic Description
Datetime and time python_datetime_main.py. Script with examples using time and datetime to manage time data. Date, UTC Date, time.
Directories, filenames, paths python_directories_main.py. Script with examples about managing paths and directories.
Environment and system variables python_environment_main.py. Implements functions to detect the operating system family (Windows or Linux) in order to display the values of the operating system environment variables.
Executing Shell commands python_execute_shell_cmd.py. Script to run a shell command detecting Windows or Linux operating systems.
Logging data python_logging_main.py. Script to show logging in files, using info, warning and debug messages.
Threads and jobs Examples on the use of threads and parallelism.
Multi language examples - automatic translation using internationalization (i18n) python_language_i18n.py. Example using the GNU gettext module, included with the Python official standard library, to get internationalization (i18n) and localization (l10n). Internationalization (i18n) refers to the operation by which a program becomes aware of multiple languages.
Processing parameters from command line .
Reading and writing configuration files using "configparser" python_load_config_from_files.py.
Webcam - Accessing data from web cam .
TkInter GUI app based + Packaging example (pip, .EXE) An example using the TkInter GUI, applying packaging techniques to get PIP packages (for Pypi.org) and .EXE executables.
Testing in Python Examples of test cases and test suit
Table 3. Advanced topics

MOOC courses (Massive Open Online Course)

Topic Description
Python for beginners Get started with Python! Learn how to create programs and projects in Python. Work with strings, lists, loops, dictionaries, and functions.
PCAP: Programming Essentials in Python Learn programming from scratch and master Python. By Cisco Networking Academy in collaboration with OpenEDG Python Institute.
IBM: Python Basics for Data Science The objectives of this course is to get you started with Python as the programming language and give you a taste of how to start working with data in Python.
. .
Table 4. Courses and EMOOCS

Books

Topic Description
A Beginners Guide to Python 3 Programming Includes an introduction to Python as well as advanced topics such as generators and coroutines. Offers extensive coverage of Object Orientation and the features in Python 3 supporting classes, inheritance and protocols. Presents Functional Programming as well as how concepts such as closures, currying and higher order functions work in Python. Includes all code examples (and exercise solutions) on line in a GitHub repository.
Advanced Guide to Python 3 Programming Takes each subject from an introduction to an advanced level. Provides coverage of a wide range of graphic related topics including computer art, Graphical User Interfaces and games. Presents an extensive coverage of concurrency and parallelism in Python including AsyncIO and Reactive programming. All code examples and exercise solutions are provided in a GitHub repository.
Python Crash Course - Resources for Python Crash Course (1st edition), from No Starch Press. .
An Introduction to Statistical Learning with applications in Python An Introduction to Statistical Learning provides a broad and less technical treatment of key topics in statistical learning. This book is appropriate for anyone who wishes to use contemporary tools for data analysis.
. .
Table 5. Books

Notes to organise

Creating environments

Creation of Python environments on Linux systems

Installing dependencies for Linux operating systems

sudo apt-get install python3-dev
sudo apt-get install python3
sudo apt-get install python3-pip

Creating environment.

python3 -m venv ./python_code_recipes_venv
source ./python_code_recipes_venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Creation of Python environments on Windows systems

"%LocalAppData%\Programs\Python\Python38\python.exe" -m venv python_code_recipes_venv
\python_code_recipes_venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt

Managing Python environments

To check Python version installed.

python --version

To freeze libraries in virtual environment

pip freeze
pip freeze > requirements.txt

python_code_recipes's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.