Cerca

Heus ací els resultats de la cerca.

1.2 How to use sockets in Python
52 Resultats, Darrera modificació:
Python == How to fetch a document from a server using Python We are going to write our first program ... rite **a program which reads the address of a WWW site** (e.g., pythoninstitute.org) using the standard ''input()'' function and **fetches the root document** (the main HTML document of the WWW site) of the specified site; * the program **outpu
1.5 What is XML and why do we prefer to use JSON?
46 Resultats, Darrera modificació:
n't a programming language, and although it is possible to build a real programming language on top of... Office applications (the newer one with file extensions ending with x like docx) utilizes XML to creat... or nearly the same purpose. Take a look – it's a simple sample XML document: <code xml><?xml version = "1.0" encoding = "utf-8"?> <!-- cars.xml - List of
1.6 Making life easier with the requests module
40 Resultats, Darrera modificació:
= 1.6 Making life easier with the requests module We have reached the point where we can start the fin... know enough to communicate with the web service using JSON as an information carrier. Unfortunately, ... ren't able to avoid them) and we also need a tool simpler than the ''socket'' module to talk with the ... sary available at the higher levels of software design. The socket module is perfect when you want to
1.1 Python Professional Course Series: RESTful APIs
36 Resultats, Darrera modificació:
= 1.1 Python Professional Course Series: RESTful APIs == Some words about REST The word you see below ... the way in which **data or states are retained inside the system and presented to the users** (humans... must be a joke," you may think now. "How is it possible to send and receive all kinds of data using plain text?" It's a very good question. Probably the
1.7 Four magic letters: CRUD
33 Resultats, Darrera modificació:
mplicated and heavy databases or other services designed for storing and processing information. Moreover, the structure of the database (or the service) may vary, e.g., it may be a simple relational database residing in a single file, or on the contrary, a huge, distributed cloud of c
1.3 JSON – our new friend
31 Resultats, Darrera modificació:
opment is in fact based on TLA. What is TLA? It's simple – it's a Three-Letter Acronym. Close your eye... tation As you can see, there’s a little riddle inside the name. It may be a bit disturbing, too, and ... patible parties. JSON is the answer to quite a basic need – the need to transfer data that is the con... fferent types, including other objects) or even a single value in a way that can survive network trans
1.4 Talking to JSON in Python
17 Resultats, Darrera modificació:
the function's name means string. There is a very similar function with the name deprived of this suff... so don't expect miracles. Let’s start with some simple snippets. The first of our samples takes a n... arrays. Let’s check a **dictionary**. Here’s a simple test: <code python> import json my_dict = {'... null} </code> Now we’re ready to draw some conclusions. As you can see, Python uses a small set of s
2.1 Python Professional Course Series: Lab & Assessment
6 Resultats, Darrera modificació:
= 2.1 Python Professional Course Series: Lab & Assessment == Working with RESTful APIs: Lab & Assessme... . Are you ready? == Lab 1 We want you to write a simple CLI (Command Line Interface) tool which can b... in name) of the server to be diagnosed (the diagnosis will be extremely simple, we just want to know if the server is dead or alive) * (optional) the se