Create an Executable File from Python File using Pyintaller library

I learned how to create from `.py` files `.exe` files to make applications, using `pyinstaller` library and `auto-py-to-exe` library. `auto-py-to-exe` library also uses `pyinstaller` in the background but has a helpful interface. Additionally, I learned: o How to analyze error log files like warn-main.txt. o Where to find hooks and libraries that are recognized by default by pyinstaller. o What to do if something goes wrong during the creation of `.exe` file like: • in case of pyinstaller cannot find some libraries use `--hidden-import=module_name` flag • in case of pyintaller cannot find some path to outside image files use a. `--additional-hooks-dir=file_name.jpg` flag b. create relative path function that will find the path to the file • in case of pyinstaller cannot recognize the relative path to import the module from another Python file use `--paths "path_to_the_file" flag o Finally, I learned how to make my executable file ready for sharing with others via email. I used NSIS tool that creates a single file that bundles up all the dependencies under one file.

Certificate of Completion - The Ultimate Python Unit Testing Course

I earned a Certificate of Completion that verifies that I successfully completed the beginners-level course “The Ultimate Python Unit Testing Course” on 29/07/2022 as taught by instructor Mohammad Mahjoub at Udemy Academy. The certificate indicates the entire course was completed as validated by the student. The course duration represents the total video hours of the course at the time of most recent completion. Length 8.5 total hours. In this course I learned about: • How, why, and when should you test your project? • How to test functions, classes, efficiency, and console print output? • How to organize your test files and test cases? • What, when, why, and how to use the test-driven development method? • Testing Classes • Markers / Fixtures • Using Unittest in the command line • Grouping tests • Before production checklist • Time Management tips • Running tests continuously and generating test cases o Capstone Project: Create Polynomial Multiplier and test it in unittest and coverage mode. Created multiplication function. Also, I learned how to multiply using two other ways by using: 1) numpy.polynomial.Polynomial 2) numpy.polynomial.polynomial.polymul and sympy.abc.x Finally, made an executable file from the main project file. You can find this course at https://www.udemy.com/course/python-unit-testing/

Certificate of Completion - Python 3: Deep Dive (Part 3 – Hash Maps)

I earned a Certificate of Completion that verifies that I successfully completed the intermediate to advance “Python 3: Deep Dive (Part 3 – Hash Maps)” course on 27/05/2022 as taught by instructor Fred Baptiste at Udemy Academy. Fred Baptiste is a Professional Developer and Mathematician. The certificate indicates the entire course was completed as validated by the student. The course duration represents the total video hours of the course at the time of most recent completion. Length 22.0 total hours. This course is an in-depth look at Python dictionaries. Dictionaries are ubiquitous in Python. Classes are essentially dictionaries, modules are dictionaries, namespaces are dictionaries, sets are dictionaries, and many more. In this course I learned about: • Associative arrays and how they can be implemented using hash maps • Hash functions and how we can leverage them for our own custom classes • Python dictionaries and sets and the various operations we can perform with them • Specialized dictionary structures such as OrderedDict, DefaultDict and how it relates to the built-in Python3.6+ dict • Python's implementation of multi-sets, the Counter class • The MappingProxy Type • The ChainMap class • How to create custom dictionaries by inheriting from the UserDict class • How to serialize and deserialize dictionaries to JSON • The use of schemas in custom JSON deserialization • A brief introduction to some useful libraries such as JSONSchema, Marshmallow, PyYaml, and Serpy o Capstone Project: Validate one dictionary structure against a template dictionary. A typical example of this might be working with JSON data inputs in an API. You are trying to validate this received JSON against some kind of template to make sure the received JSON conforms to that template (i.e. all the keys and structure are identical - value types being important, but not the value itself - so just the structure, and the data type of the values). The dictionary structure will have nested dictionaries, int, and str. First, do validation manually and then use JSON Schema and Marshmellow modules to do the same. You can find this course at https://www.udemy.com/course/python-3-deep-dive-part-3/

Using datetime, zoneinfo, pytz, and dateutil to Work with Dates, Times and Timezones

In a Deep Dive course Part III by Fred Baptiste I was introduced to the timezone module. However, I wanted to get a deeper understanding of the subject. Therefore, I took an additional tutorial on this subject. I completed the tutorial “Python Tutorial: Datetime Module - How to work with Dates, Times, Timedeltas, and Timezones” by Corey Schafer on YouTube. The length of the tutorial is 0:27 total video hours. In this tutorial, I learned: • Difference between naive and aware datetimes usage • How to use timedelta • Naive working with datetime.date, datetime.time, and datetime.datetime • Naive working with 3 alternative constructors: datetime.today(), datetime.now(), datetime.utcnow() • Converting naive to aware datetimes timezone • Several different ways to display day and time: 1. strftime() and strptime() Behavior 2. use dateutil module to convert data string to datetime You can find this tutorial at https://www.youtube.com/watch?v=eirjjyP2qcQ&ab_channel=CoreySchafer

Introduction to Python's Dataclasses Module

I took two tutorials on the dataclass module offered by ArjanCodes. o The first tutorial “If you're not using Python DATA CLASSES yet, you should”. The length of the tutorial is 00:11 total video hours. o The second tutorial “This Is Why Python Data Classes Are Awesome”. The length of the tutorial is 00:22 total video hours. Data classes are suitable to model classes that represent data, and as such, they offer easy mechanisms to initialize, print, order, sort, and compare data. In these tutorials, the instructor also showed new capabilities that have been added in Python 3.10. From these tutorials, I learned how to generate simple dataclasses being able • to provide default values using a default factory like a list or supply a function to provide a default value • Excluding some information from what I print • Use `__post_init__()` to augment object with extra generated after it has been initialized • use `frozen` and `__post_init__()` to make sure that default date is not changed • use `sort_index` and `__post_init__()` to sort by specific attribute • use `serach_string` and `__post_init__()` to generate a value from other instance variables • customize representation by using `__str__` • keyword only argument that I can pass to a dataclass decorator You can find these tutorials at · https://www.youtube.com/watch?v=vRVVyl9uaZc&t=12s&ab_channel=ArjanCodes · https://www.youtube.com/watch?v=CvQ7e6yUtnw&t=4s&ab_channel=ArjanCodes

1 ... 6 7 8 ... 13

Our Sidebar

You can put any information here you'd like.

  • Latest Posts
  • Announcements
  • Calendars
  • etc