Giter VIP home page Giter VIP logo

practice-python's Introduction

Practice Python ๐Ÿ‘ฉโ€๐Ÿ’ป

Contents

  • Python Concurrency and Parallelism Problems : good for understanding the concept of concurrency and parallelism
    • Concurrent Web Scraper link
    • Parallel File Processing link
    • Concurrent Producer-Consumer link
  • Concurrent Programming ( Details ) : basic concepts of concurrent programming
  • Datastructures ( Details ) : basic data structures and their implementations
  • Algorithms ( Details ): basic algorithms and their implementations
  • FAQs : frequently asked questions (not only Python)

Python Concurrency and Parallelism Problems

  • Objective: Implement a concurrent web scraper that retrieves data from multiple web pages simultaneously.
  • Requirements:
    • Use the requests library to fetch web pages.
    • Utilize the asyncio module to achieve concurrency.
    • Scrape data from a list of URLs concurrently.
    • Process and store the scraped data.
  • Extension: Implement rate limiting to avoid overloading the target website.
  • Objective: Develop a program that processes a large set of files concurrently.
  • Requirements:
    • Accept a directory path as input.
    • Use the multiprocessing module to process files concurrently.
    • Apply a specific operation to each file (e.g., compression, encryption, or analysis).
    • Display the progress and status of the file processing.
  • Extension: Implement error handling and logging for file processing failures.
  • Objective: Implement a concurrent producer-consumer system using threads.
  • Requirements:
    • Create a shared queue to store data items.
    • Implement producer threads that generate and add data items to the queue.
    • Implement consumer threads that retrieve and process data items from the queue.
    • Use synchronization primitives (e.g., locks or semaphores) to ensure thread safety.
    • Display the production and consumption of data items.
  • Extension: Implement a mechanism to gracefully terminate the producer and consumer threads.

Concurrent Programming ( Details )

index concurrent programming link
1 barriers link
2 fizzbuzz link
3 fizzbuzz_async link
4 fizzbuzz_multithreading link
5 future link
6 helloworld link
7 interface link
8 locks link
9 quickstart link
10 semaphores link
11 sharedresources link

Datastructures ( Details )

index datastructure link
1 Queue link
2 Hashtable link
3 Linked list link
4 Stack link
5 Tree link
6 Minheap link
7 trie link
8 merge sort link

Algorithms ( Details )

index algorithm link
1 BFS link
2 DFS link
3 Binary Search link
4 Quick Sort link

FAQs ( Details )

practice-python's People

Contributors

98yejin avatar

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.