My Python Network Programming Notes: Difference between revisions

From GotOpinion
Jump to navigation Jump to search
initial page creation
 
m added new resource
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Resources ==
== Resources ==
Python [https://docs.python.org/3/library/random.html random] module implements pseudo-random number generators for various distributions.
Python [https://docs.python.org/3/library/timeit.html timeit] module used to measure execution time of small code snippets
https://realpython.com/python-sockets/


=== Books ===
=== Books ===
Line 5: Line 11:
[https://www.amazon.com/Foundations-Python-Network-Programming-Brandon/dp/1430258543/ Foundations of Python Network Programming 3rd ed. Edition] by Brandon Rhodes and associated [https://github.com/brandon-rhodes/fopnp/tree/m/py3 scripts and examples] on [https://github.com/ github]
[https://www.amazon.com/Foundations-Python-Network-Programming-Brandon/dp/1430258543/ Foundations of Python Network Programming 3rd ed. Edition] by Brandon Rhodes and associated [https://github.com/brandon-rhodes/fopnp/tree/m/py3 scripts and examples] on [https://github.com/ github]


<center>[[Python Programming|To Python Programming]]</center>
== Playground ==
 
Create some bytes to send over socket.
<pre>>> b = bytes('bearerModification'* 10, 'ascii')
>>>> b  
b'bearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModification'
>>></pre>
 
<center>[[Python programming|To Python programming]]</center>

Latest revision as of 12:32, 11 July 2019

Resources[edit | edit source]

Python random module implements pseudo-random number generators for various distributions.

Python timeit module used to measure execution time of small code snippets

https://realpython.com/python-sockets/

Books[edit | edit source]

Foundations of Python Network Programming 3rd ed. Edition by Brandon Rhodes and associated scripts and examples on github

Playground[edit | edit source]

Create some bytes to send over socket.

>> b = bytes('bearerModification'* 10, 'ascii')
>>>> b		  
b'bearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModification'
>>>
To Python programming