Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.7 Four magic letters: CRUD
- complicated and heavy databases or other services designed for storing and processing information. Mor... hod. == To make our set complete, we need D for Delete. Deletion occurs when you remove your post from the blog, purge a picture from the gallery or cancel a customer’s account. At REST level, deleting existing data is implemented by the DELETE
- 1.4 Talking to JSON in Python
- g. There is a very similar function with the name deprived of this suffix which **writes the JSON stri... here: <code python> import json class Who: def __init__(self, name, age): self.name = n... more. <code python> import json class Who: def __init__(self, name, age): self.name = name self.age = age def encode_who(w): if isinstance(w, Who):
- 1.6 Making life easier with the requests module
- s too choosy and 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 t... little chat** with a web service. Which of these demands (server or tool) should be satisfied earlier... play the role of a RESTFul API foundation. We’ve decided to use a free and open package named ''json-
- 1.2 How to use sockets in Python
- socket'' module contains all the tools we need to deal with sockets. We aren't going to present all it... an see, the constructor takes two arguments, both declared within the module. Let us tell you about th... fy a high-level socket able to act as a character device** - a device that can handle single characters, as we are interested in transferring data byte by
- 1.5 What is XML and why do we prefer to use JSON?
- 0" encoding = "utf-8"?></code> First of all, it **declares that the document contains XML text**. Note... ilt in two ways: * **the document content isn't defined at all** – we may say that this kind of document is **self-defining**; it's easy but it lacks one very importan... onal document (or rather a meta-document) which **describes the desired document content**, which reme
- 1.3 JSON – our new friend
- on. An old anecdote says that computer technology development is in fact based on TLA. What is TLA? It... oded text** – this means that no machine/platform-dependent formats are used; it also means that the d... l it syntax, or even grammar) to represent mutual dependencies and relations between different parts o... question – can we use Python's syntax to code and decode network messages in ''REST''? Yes, we can, b
- 2.1 Python Professional Course Series: Lab & Assessment
- P server availability checker; * a Vehicle data decoder/encoder; * a Stock Exchange viewer; * a ... ely simple, we just want to know if the server is dead or alive) * (optional) the server's port numb... 's address (required)") print("- port number (defaults to 80 if not specified)") exit(1) addr... out: print("The server" + addr + "seems to be dead - sorry.") exit(3) except socket.gaierror:
- 1.1 Python Professional Course Series: RESTful APIs
- ou to start the next part of our adventure - very demanding and completely new. We'll show you not Pyt... ix-class operating system, where the sockets were deployed for the very first time. After some amendm... ement BSD sockets in a more or less accurate way. Despite their differences, the general idea remains ... ? === Socket domains Initially, BSD sockets were designed to organize communication in two different