Cerca

Heus ací els resultats de la cerca.

1.7 Four magic letters: CRUD
53 Resultats, Darrera modificació:
k and how the HTTP server is able to do much more for us than just store and publish fancy images and f... ed and heavy databases or other services designed for storing and processing information. Moreover, the... e. We can say that that's what REST was invented for. Thanks to it, very different programs written in... reate”, you can add new items to data collection, for example, write a new blog post, add a new picture
1.5 What is XML and why do we prefer to use JSON?
43 Resultats, Darrera modificació:
ore and transfer documents of virtually any type. For example, the document format produced by MS Office applications (the newer one with file extensions en... ey are, although both the solutions were invented for nearly the same purpose. Take a look – it's a si... l - List of cars ready to sell --> <!DOCTYPE cars_for_sale SYSTEM "cars.dtd"> <cars_for_sale> <car>
1.2 How to use sockets in Python
28 Resultats, Darrera modificació:
network sockets. Of course, we'll harness Python for this purpose. Here are our goals: * we want t... /code> The user input may can take two different forms: * it can be **the domain name of the server... IP works and how it is able to act as **a carrier for REST**. We can say that TCP/IP is interesting for us only to the extent that it is able to transport
1.1 Python Professional Course Series: RESTful APIs
21 Resultats, Darrera modificació:
separately. === Representational **RE** stands for //Representational//. It means that our machinery... next part of the acronym. === State **S** stands for State. The word state is key to understanding what REST is and what it could be used for. We think that your knowledge of classes and obj... t part of the acronym. === Transfer **T** stands for Transfer. The network (not only the Internet) is
1.6 Making life easier with the requests module
17 Resultats, Darrera modificació:
eed a **server serving** a web **service** (sorry for all these serv..., we weren't able to avoid them)... our own, private HTTP server which will work only for us and successfully play the role of a RESTFul AP... ncounter JavaScript again, but we aren't going to force you to write any code in it. It’ll act as a **black box** for us, and we don't want to persuade you to look ins
1.3 JSON – our new friend
9 Resultats, Darrera modificació:
o learn Java? Or even JavaScript?” No, we don't. Fortunately, the notation we want to tell you about, ... * – this means that no machine/platform-dependent formats are used; it also means that the data JSON ca... ans; * it uses a simple and not very expanded **format** (we can call it syntax, or even grammar) to ... if the letters are upper- or lower-case). Don't forget that JSON strings **cannot be split over multi
1.4 Talking to JSON in Python
7 Resultats, Darrera modificació:
that you’d be able to cope with such a challenge. Fortunately, you don't need to. Why? Because there’... * – which is able to perform all those drudgeries for you. How do we start a new adventure? It's obvio... ffix which **writes the JSON string to the file** for file-like streams. The function does what it pro... e string invalid and ''loads()'' will not like it for sure. The code outputs: <code ; output> <class '
2.1 Python Professional Course Series: Lab & Assessment
4 Resultats, Darrera modificació:
stered the material, and check if you're prepared for the certification exam (available soon). Complet... t 80) * use the HEAD method instead of GET — it forces the server to send the full response header bu... erly; the rest of the request remains the same as for GET. We also assume that: * the tool checks if ... nt is at argv[1] and the second at argv[2]; don't forget that the command line arguments are always str