Cerca

Heus ací els resultats de la cerca.

1.2 How to use sockets in Python
11 Resultats, Darrera modificació:
Python == How to fetch a document from a server using Python We are going to write our first program m... ress of a WWW site** (e.g., pythoninstitute.org) using the standard ''input()'' function and **fetches ... s we mentioned before, we aren't and won't be focusing on network programming. We want to show you how ... networks, you may need to continue your reading using another of our courses. The socket module provi
1.1 Python Professional Course Series: RESTful APIs
10 Resultats, Darrera modificació:
t possible to send and receive all kinds of data using plain text?" It's a very good question. Probabl... Of course, you can access the server's resources using the network, but you can't just get the object a... ble. You can't do it directly. But you can do it using REST. How? We'll show you very soon. Let's now t... n different computer systems, connected together using a TCP/IP network (note: this doesn't preclude th
1.6 Making life easier with the requests module
8 Resultats, Darrera modificació:
know enough to communicate with the web service using JSON as an information carrier. Unfortunately, o... ystem needs, and these packages can be installed using the built-in package manager, while others requi... us_code) </code> The HTTP protocol operates by using **methods**. We can say that the **HTTP method**... **service port number** – just like we did while using the browser’s address line. Note: the port numbe
1.7 Four magic letters: CRUD
8 Resultats, Darrera modificació:
or other services designed for storing and processing information. Moreover, the structure of the data... may be a simple relational database residing in a single file, or on the contrary, a huge, distributed ... vers may use different means – it's none of our business when we are the clients. We'll start our jour... *. The ''json-server'' is able to sort the items using any of the properties as a sort key (by default,
1.5 What is XML and why do we prefer to use JSON?
7 Resultats, Darrera modificació:
Thanks to this line, a program responsible for parsing a file’s content is calm about the future. It kn... ere: it can be placed beforehand at the target parsing server, or it may be put in any Internet locatio... a **pair of tags**: an **opening** tag and a **closing** tag. Both tags look nearly identical, but the closing tag's name starts with /. Tags can be easily ide
1.3 JSON – our new friend
6 Resultats, Darrera modificació:
fferent types, including other objects) or even a single value in a way that can survive network transf... r-platform conversions. JSON solves the problem using two simple tricks: * it uses **UTF-8 coded te... that **JSON knows nothing about numbers written using radices different to 10**, so literals like thes... rated by commas**. One important (and very surprising) thing should be stated here. There are no restr
1.4 Talking to JSON in Python
5 Resultats, Darrera modificació:
self.age = age def encode_who(w): if isinstance(w, Who): return w.__dict__ else... der'''s subclass and to pass it into ''dumps()'' using the keyword argument named ''cls'' – just like i... ONEncoder): def default(self, w): if isinstance(w, Who): return w.__dict__ ... self.age = age def encode_who(w): if isinstance(w, Who): return w.__dict__ else