Algorithms Data structures documentation is here
Patterns documentation is here
-
Caching - examples of decorator usage. Run
python caching.py
-
Class properties - example of accessing of class fields and adding new ones. Prints help info about object. Run
python class_properties.py
-
Context - exceptions handling. Run
python context.py
-
Converter - dummy converter of number to string of 'y'-character multiplied by this number. Run
python converter.py
-
Coroutines - coroutine implementation.
-
Cycle coding - Code a given binary vector using cycling coding algorithm and check for errors. Run
python cycle_coding
-
Distinct Dict - dictionary holding only unique key-value pairs. Run
python distinct_dict.py
-
Echo server - tiny server echoing as a response.
-
Folder - a tiny class with list. Run
python folder.py
-
Generators - usage of generators in python. Run
python generators.py
-
Indexer - multithreaded document indexer in directory.
-
Iterator - custom iterator Run
python iterator.py
-
Listing comprehension - sequences and enums usage. Run
python listing_comprehension.py
-
Meta programming - classes,metaclasses and inheritance.
-
Multiprocessing - create multiple separate os processes. Run
python multiprocessing.py
-
Parse - parse data from incoming file by regex and print slices of result.
-
Profile - get profiling data of cmd_profile script and save in stats.file. Run
python profile.py
-
Processing - processing queue usage.
-
Pystones - convert seconds to pystones. Run
python pystones.py
-
Slots - check if string exists in collection. Run
python slots.py
-
With - Read file using with operator and print contents Run
python with_example.py
- Python 2 is going to be deprecated soon.
- Demos without run mentioning can't be run due to missing libraries.