Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vigeng/python-snippets

common python programming snippets.
https://github.com/vigeng/python-snippets

Last synced: about 1 month ago
JSON representation

common python programming snippets.

Awesome Lists containing this project

README

        

# Python Programming Snippets

- [x] [Inter-process communication](inter-process-comm/producer_consumer.py)
* Producer-consumer problem
* using `multiprocessing` queue
* on different processes on the same machine on different CPUs
* ![CPU Utilization rate](./assets/readme/ipc.png)
- [x] [multi thread and routines](./concurrency/routines.py)
* using `threading` and event loop
* server-client communication
* ![running log](./assets/readme/routines.png)
- [x] multi-process: server and client: [multi-process](./network/multiproc.py), [multi-process and IPC](./network/multiproc-sep-worker.py)
* using `multiprocessing` and `websockets`
* server-client communication
* ![two processes are running on different cores](./assets/readme/multi-process.png)
## TODO
- [ ] Network
- [ ] webrtc