Cerca

Heus ací els resultats de la cerca.

1.2 How to use sockets in Python
17 Resultats, Darrera modificació:
use sockets in Python == How to fetch a document from a server using Python We are going to write our f... e server** (the server wants to know what we want from it) - **receive the server's response** (it wil... ocket. How do we obtain a socket? Can we order it from an Internet store? Is it free? Yes, it's free. A... thing goes smoothly. Yes, we know. The awakening from this dream can be painful. The connection is rea
1.1 Python Professional Course Series: RESTful APIs
11 Resultats, Darrera modificació:
isn't actually a word - it's an acronym. It comes from three words of equal importance: * **RE**prese... ng you to transmit states' representations to and from the server**. Note: not the object, but its stat... a long road ahead of us. Let's start our journey from the very first step - from a story about how the network works and how it is possible to send and recei
1.5 What is XML and why do we prefer to use JSON?
11 Resultats, Darrera modificació:
e **production year**, which is an integer number from a quite predictable range; * the **price**, which is (in general) a floating-point number from a completely unpredictable range. Note: there is ... an absolute value. We can say that most customers from all over the world when told that the car was bui... ribute named **currency**. Its value can be taken from an international standard named ISO4217, which ca
1.6 Making life easier with the requests module
9 Resultats, Darrera modificació:
a name that looks like ''node-vxx.yy.z-x86.msi'') from the LTS //(Long Time Support//) branch; accept al... ng actions: * download the JSON file cars.json from here: Download {{ :info:cursos:pue:python-pcpp1:m... ssible that the server resides somewhere far away from our desk, for example, in the other hemisphere. T... property contains bare text taken as-is directly from the data stream, hence it is just a string. No co
1.7 Four magic letters: CRUD
9 Resultats, Darrera modificació:
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 exi... identifies each item and differentiates the items from each other; * ''brand'' – a string; * ''m... its original version (you can always download it from our site) and start the server again. We’re read
1.4 Talking to JSON in Python
4 Resultats, Darrera modificació:
ines into prime factors. Nothing could be further from the truth! We’re not in the habit of coming up wi... small set of simple rules to build JSON messages from its native data. Here it is: {{ :info:cursos:pue:... coder)) </code> As you can see, we are released from the obligation to raise any exceptions. Nice, isn... It seems that we know enough about how to travel from Python land to JSON world, but still know anythin
1.3 JSON – our new friend
3 Resultats, Darrera modificació:
anguages and play a role similar to the one known from Python nesting – they mark the boundaries of data... , that they appear in JSON, as JavaScript derives from the C-language too. The similarity to Python dict... **any order** using commas to separate the items from each other. As JSON ignores white spaces (includi
2.1 Python Professional Course Series: Lab & Assessment
3 Resultats, Darrera modificació:
ess command line arguments, use the argv variable from the sys module; its length is always one more tha... ve (the structure of the class should be deducted from the above dialog — call it "reverse engineering" ... y checks should be done, too. We're sure you're careful enough to protect your code from reckless users.