Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.7 Four magic letters: CRUD
- = 1.7 Four magic letters: CRUD == Entering a non-existing/malformed address We’ve reached the point in... ue:python-pcpp1:m4:pasted:20240119-023906.png }} Note – this is a four-letter acronym which makes it ... data is implemented by the DELETE HTTP method. Now we’re ready to carry out some simple but instruc... escribed by: * ''id'' – a unique item number; note – each item in the collection must have the pro
- 1.2 How to use sockets in Python
- server** we're going to connect to. In fact, it's not our problem. The user knows it better. Let's ask... e IP address** - the server you will reach may be not the server you intended to connect to. It may sound cynical - it's not our problem which of these two ways our users ch... are interested in transferring data byte by byte, not as fixed sized blocks (e.g., a terminal is a cha
- 1.6 Making life easier with the requests module
- amed ''json-server'', implemented on top of the ''Node.js'' environment. ''Node.js'' is – as Wikipedia claims – //an open-source, cross-platform JavaScrip... Okay. Let's start. First of all, we need to have Node.js installed on our computer. The steps you sho... 're a Windows user, point your browser to https://nodejs.org/en/download, download and run the Windows
- 1.3 JSON – our new friend
- a continuous struggle with acronyms? Well, you’re not alone. We share this opinion. An old anecdote sa... – look! – TLA is a TLA too. What a coincidence! Now it’s time to break this pattern. The acronym we'll present to you now is four letters long. What a nice change! Let u... eaning: * Java... * ...Script * Object * Notation As you can see, there’s a little riddle in
- 1.5 What is XML and why do we prefer to use JSON?
- e**. Anyway, this is what it thinks about itself. Note – it isn't a programming language, and although... XML seems to be bloated compared to JSON. We’re not going to teach you how to use XML in Python. We ... d by a very exclusive second-hand car store. It's not a regular store – it's a store with the most leg... **declares that the document contains XML text**. Note the very original “parentheses” in which the li
- 1.1 Python Professional Course Series: RESTful APIs
- EST Are we going to convince you to take a rest? Not at all. On the contrary, we want to encourage yo... very demanding and completely new. We'll show you not Python itself, but a very specific kind of machinery (do not take this literally) which drives lots of contem... , plain text. "It must be a joke," you may think now. "How is it possible to send and receive all kin
- 1.4 Talking to JSON in Python
- Python == Working with the JSON module in Python Now that we're familiar with JSON essentials, it's t... break down complex JSON lines into prime factors. Nothing could be further from the truth! We’re not in the habit of coming up with such crazy ideas, although, to be honest, it's not as complex as it may seem and we're convinced th
- 2.1 Python Professional Course Series: Lab & Assessment
- ents in the invocation line and the second one is not an integer number in the range 1..65535, the too... ython> import sys import socket if len(sys.argv) not in [2, 3]: print("Improper number of arguments: at least one is required" + "and not more than two are allowed:") print("- http s... ed)") print("- port number (defaults to 80 if not specified)") exit(1) addr = sys.argv[1] soc