Cerca

Heus ací els resultats de la cerca.

1.7 Four magic letters: CRUD
70 Resultats, Darrera modificació:
ls and glue all these pieces into one functional block. You already know how HTTP works, how it’ is mo... le file, or on the contrary, a huge, distributed cloud of cooperating servers; but the interface provided to the user (you) will always look the same. We can say that that's what REST was... ifferent programs written in very different technologies can utilize shared data through one, **univer
1.6 Making life easier with the requests module
51 Resultats, Darrera modificació:
d**. It's too choosy and too powerful. It exposes lots of details which aren't necessary available at ... faces when it tries to establish, maintain, and close internet connections. This is why we used it be... cations, but at the same time, the socket is too bloated and too heavy when you just want to have a **... ox** for us, and we don't want to persuade you to look inside it. Okay. Let's start. First of all, w
1.2 How to use sockets in Python
49 Resultats, Darrera modificació:
HTTP server**. Our program has to perform the following steps: - **create a new socket** able to h... n the requested root document of the site) - **close the socket** (end the connection) This is our road map. Let's follow the route. {{ :info:cursos:pue:python-pcpp1:m4:... Because** there can be more than one HTTP server located at the same IP address** - the server you wi
1.5 What is XML and why do we prefer to use JSON?
28 Resultats, Darrera modificació:
s flexible. We can even say that XML seems to be bloated compared to JSON. We’re not going to teach y... ere invented for nearly the same purpose. Take a look – it's a simple sample XML document: <code xml>... ry original “parentheses” in which the line is enclosed: <? and ?> . As you can see, XML uses **plain... . Note the two phrases built according to the following pattern: <code xml>attribute = value</code>
1.1 Python Professional Course Series: RESTful APIs
26 Resultats, Darrera modificació:
APIs == Some words about REST The word you see below may look a little enigmatic: REST Are we going to convince you to take a rest? Not at all. On the c... chinery (do not take this literally) which drives lots of contemporary computer systems, especially th... sentational * **S**tate * **T**ransfer Let's look at them separately. === Representational **RE
1.3 JSON – our new friend
22 Resultats, Darrera modificació:
tinuous struggle with acronyms? Well, you’re not alone. We share this opinion. An old anecdote says that computer technology development is in fact based on TLA. What is TLA? It's simple – it's a Three-Letter Acronym. Close your eyes, strain your mind and try to recall f
1.4 Talking to JSON in Python
21 Resultats, Darrera modificació:
etting over all these brackets, parentheses and colons, and to break down complex JSON lines into prim... python-pcpp1:m4:pasted:20240112-030457.png }} It looks simple and consistent. So where’s the trap? ... oder class''. It gives you the opportunity to overload the method defining a ''JSONEncoder'''s subclas... ring and to turn it into Python data** is named ''loads()'' – it takes a string (hence the s at the en
2.1 Python Professional Course Series: Lab & Assessment
5 Resultats, Darrera modificació:
equired" + "and not more than two are allowed:") print("- http server's address (require... tes(addr, "utf8") + \ b"\r\nConnection:close\r\n\r\n" sock.send(request) answer = sock.recv... ode("utf8") sock.shutdown(socket.SHUT_RDWR) sock.close() print(answer[:answer.find('\r')]) </code> == Lab 2 Take a look at these two screenshots. They present two diff