Cerca

Heus ací els resultats de la cerca.

1.7 Four magic letters: CRUD
39 Resultats, Darrera modificació:
in the collection must have the property of this name – this is how the server identifies each item and... r'' assumes that the data collection inherits its name from the source data file name. As we named the file cars, the server will publish the data as cars, too. You have to use the name in
1.4 Talking to JSON in Python
29 Resultats, Darrera modificació:
need to. Why? Because there’s a Python module – named **JSON** – which is able to perform all those dr... rry out such an operation, you may use a function named ''dumps()''. Note: the ''’s'' at the end of the function's name means string. There is a very similar function with the name deprived of this suffix which **writes the JSON s
1.2 How to use sockets in Python
25 Resultats, Darrera modificació:
't be surprised if we tell you that the module is named socket, will you? This is what we'll put at the... ode> === Obtaining user input We also need **the name of the HTTP server** we're going to connect to. I... two different forms: * it can be **the domain name of the server** (like //www.pythoninstitute.org /... our courses. The socket module provides a class named ''socket'' (what a coincidence!) which encapsula
1.5 What is XML and why do we prefer to use JSON?
25 Resultats, Darrera modificació:
> The first (header) line contains two attribute names: ''version'' and ''encoding''. We don’t think yo... story short, the DOCTYPE line contains: * the **name** of the XML document being defined (cars_for_sal... ormal Public Identifier – a string which uniquely names the DTD on the scale of the universe) and its lo... ded about it is its URI (which may be just a file name recognizable by the target server); * the **URI
1.6 Making life easier with the requests module
18 Resultats, Darrera modificació:
on. We’ve decided to use a free and open package named ''json-server'', implemented on top of the ''Nod... load and run the Windows installer (a file with a name that looks like ''node-vxx.yy.z-x86.msi'') from t... r successful installation you should see an entry named ''Node.js'' in the Windows® start menu; * ...i... tool for installing and updating components. Its name is the same under all the platforms covered, so w
1.3 JSON – our new friend
15 Resultats, Darrera modificació:
s you can see, there’s a little riddle inside the name. It may be a bit disturbing, too, and some sudden... the values of objects’ properties, but also their names. In JSON, it can be an unnamed value like a number, a string, a Boolean or… nothing , although this i... nt to transfer not only raw data but also all the names bound to it (like the way in which objects hold
1.1 Python Professional Course Series: RESTful APIs
8 Resultats, Darrera modificació:
lable in all modern programming languages. It was named BSD sockets - the name was borrowed from Berkeley Software Distribution, the name of a Unix-class operating system, where the socke... 7.98.239.87). There is also a newer IP standard, named **IP6**, using 128 bits for the same purpose. Du
2.1 Python Professional Course Series: Lab & Assessment
4 Resultats, Darrera modificació:
(obligatory) the address (IP or qualified domain name) of the server to be diagnosed (the diagnosis wil... ber of arguments, as argv[0] stores your script's name; this means that the first argument is at argv[1]... Assuming that the tool is placed in a source file name sitechecker.py, here are some real-use cases: {{ ... versation with the user and: - defines a class named **Vehicle**, whose objects can carry the vehicle