Cerca

Heus ací els resultats de la cerca.

1.6 Making life easier with the requests module
36 Resultats, Darrera modificació:
b **service** (sorry for all these serv..., we weren't able to avoid them) and we also need a tool sim... too powerful. It exposes lots of details which aren't necessary available at the higher levels of software design. The socket module is perfect when you want to understand network issues at the TCP ... evel and to learn which challenges the OS faces when it tries to establish, maintain, and close intern
1.2 How to use sockets in Python
19 Resultats, Darrera modificació:
* the program **outputs the document** to the screen; * the program **uses TCP to connect to the HTT... **connect the socket to the HTTP server** of a given address; - **send a request to the server** (th... all the tools we need to deal with sockets. We aren't going to present all its capabilities - as we mentioned before, we aren't and won't be focusing on network programming. W
1.3 JSON – our new friend
16 Resultats, Darrera modificació:
me. It may be a bit disturbing, too, and some sudden questions may have appeared in your mind just now... , e.g., “Java? Do you want me to learn Java? Or even JavaScript?” No, we don't. Fortunately, the nota... It doesn't matter what programming language has been used to implement a certain solution – JSON is a kind of universal bridge able to move data between seemingly incompatible parties. JSON is the answ
1.7 Four magic letters: CRUD
11 Resultats, Darrera modificació:
d for. Thanks to it, very different programs written in very different technologies can utilize shared... eans Update You update data inside a collection when you modify the contents of the selected item with... complete, we need D for Delete. Deletion occurs when you remove your post from the blog, purge a pictu... server'', will be a collection of retro cars written down in the cars.json file (Download ''cars.json'
1.5 What is XML and why do we prefer to use JSON?
9 Resultats, Darrera modificació:
oreover, it's heavier and less flexible. We can even say that XML seems to be bloated compared to JSON... uilt and what the most important differences between XML and JSON are. It can be intriguing how differ... st informs you which **version of the XML** has been used to encode the document (in fact, there are t... y></empty></code> (note: there is no content between the tags!) you may want to use the shorter form:
1.1 Python Professional Course Series: RESTful APIs
8 Resultats, Darrera modificació:
ing the whole object's state. Such a change is often called a **transition**. Now imagine that the ob... end-point and use it to interchange messages between itself and another program working somewhere far ... he words everything is a file. A socket may be often treated as very specific kind of file. Writing to... unately, you're not able to feel the difference when programming in Python. Python hides them very tho
1.4 Talking to JSON in Python
6 Resultats, Darrera modificació:
function does what it promises – it takes data (even somewhat complicated data) and produces a string ... de> As you can see, all JSON requirements have been met. Now’s a good moment to introduce a **list**... e want to ask you a question here – what will happen if we use a tuple instead of a list? The answer i... ctable – nothing. As JSON cannot distinguish between lists and tuples, both of these are converted int
2.1 Python Professional Course Series: Lab & Assessment
3 Resultats, Darrera modificació:
the tool checks if it is invoked properly, and when the invocation lacks any arguments, the tool prin... ution <code python> import sys import socket if len(sys.argv) not in [2, 3]: print("Improper numb... et.socket(socket.AF_INET, socket.SOCK_STREAM) if len(sys.argv) == 3: try: port = int(sys.a