Python/Bug-Out: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
Python for the zombie apocalypse? Maybe a bit overdramatic. But anyway, useful for those first few days after a move when you don't have internet and you need to get your server set up and you forgot to install the header libraries for OpenSSL, and so... you're screwed. | Python for the zombie apocalypse? Maybe a bit overdramatic. But anyway, useful for those first few days after a move when you don't have internet and you need to get your server set up and you forgot to install the header libraries for OpenSSL, and so... you're screwed. | ||
=Documentation= | |||
==Example== | |||
If I need to understand a script that uses the sockets library, or the threading library, or the struct library, I just pick out some documentation online: | |||
* socket - https://docs.python.org/2/library/socket.html | |||
* threading - https://docs.python.org/2/library/threading.html | |||
* struct - https://docs.python.org/2/library/struct.html | |||
* netaddr - https://pythonhosted.org/netaddr/ | |||
* ctypes - https://docs.python.org/2/library/ctypes.html | |||
Now how do I produce that documentation if I have a copy of that library installed? | |||
[[Category:Python]] | [[Category:Python]] | ||
Revision as of 02:27, 24 July 2016
Bug-out Python:
What happens if you can't access a network? For a long period of time? And you need to have any and all manner of tools available at your disposal, and the means by which to make documentation for all of them so that you can RTFM until the cows come home if you need to.
Python for the zombie apocalypse? Maybe a bit overdramatic. But anyway, useful for those first few days after a move when you don't have internet and you need to get your server set up and you forgot to install the header libraries for OpenSSL, and so... you're screwed.
Documentation
Example
If I need to understand a script that uses the sockets library, or the threading library, or the struct library, I just pick out some documentation online:
- socket - https://docs.python.org/2/library/socket.html
- threading - https://docs.python.org/2/library/threading.html
- struct - https://docs.python.org/2/library/struct.html
- netaddr - https://pythonhosted.org/netaddr/
- ctypes - https://docs.python.org/2/library/ctypes.html
Now how do I produce that documentation if I have a copy of that library installed?