Index
A
- abductive reasoning / Leveraging Python's duck typing
- Abstract Base Classes (ABCs)
- about / How it works...
- set / How it works...
- sequence / How it works...
- mapping / How it works...
- abstract class / There's more...
- abstract data type / Getting ready
- ACID properties
- atomicity / There's more...
- consistency / There's more...
- isolation / There's more...
- durability / There's more...
- ActiveState / Getting ready
- advanced graph manipulation
- reference / See also
- aggregation / How to do it...
- Algorithm Design Manual
- reference / See also
- append() method
- used, for building list / Building a list with the append() method
- application processing
- decomposing / There's more...
- applications
- testing, that involve date or time / Testing things that involve dates or times, Getting ready, How it works..., There's more...
- testing, that involve randomness / Testing things that involve randomness, Getting ready, How it works...
- two applications, combining / Combining two applications into one, Getting ready, How to do it..., How it works...
- multiple applications, combining with command design pattern / Combining many applications using the Command design pattern, How to do it...
- approaches, of function designing with optional parameters
- General to Particular / How to do it..., General to Particular design
- Particular to General / How to do it..., Particular to General Design
- architectural features, composite applications
- refactoring / There's more..., Refactoring
- concurrency / There's more..., Concurrency
- logging / There's more..., Logging
- argparse
- used, for obtaining command-line input / Using argparse to get command-line input, Getting ready, How to do it..., How it works...
- arguments
- managing, in composite applications / Managing arguments and configuration in composite applications, How to do it..., How it works...
- argument styles / There's more...
- arithmetic operators / There's more...
- arrays / There's more...
- ASCII characters
- aspects, processing
- inputs / How it works...
- outputs / How it works...
- process / How it works...
- assertions, TestCase class
- assertEqual() / Some other assertions
- assertNotEqual() / Some other assertions
- assertFalse() / Some other assertions
- assertTrue() / Some other assertions
- assertIs() / Some other assertions
- assertIsNot() / Some other assertions
- assertIsNone() / Some other assertions
- assertIsNotNone() / Some other assertions
- assertIsInstance() / Some other assertions
- assertNotIsInstance() / Some other assertions
- assertAlmostEquals() / Some other assertions
- assertNotAlmostEquals() / Some other assertions
- assertNotRegex() / Some other assertions
- assertRegex() / Some other assertions
- assertCountEqual() / Some other assertions
- assignment / How to do it...
- associative store / Removing from dictionaries – the pop() method and the del statement
- audit output
- logging, using for / Using logging for control and audit output, Getting ready, How to do it..., How it works...
- authentication
- about / There's more...
- implementing, for web services / Implementing authentication for web services
- authorization / Implementing authentication for web services
B
- backslash
- used, for breaking long statement into logical lines / Using backslash to break a long statement into logical lines
- bash / How it works...
- bash shell / Getting ready
- BBEdit
- reference / Getting ready
- Beautiful Soup
- reference / How to do it..
- Tag objects / There's more...
- binary operators / There's more...
- bisect module / Getting ready
- block files / Introduction
- body element, RST parser
- paragraphs of text / How it works...
- literal blocks / How it works...
- lists / How it works...
- tables / How it works...
- block quotes / How it works...
- substitution definitions / How it works...
- hyperlink targets / How it works...
- RST comments / How it works...
- bootstrapping / Getting ready
- break statements
- potential problems, avoiding with / Avoiding a potential problem with break statements, How to do it...
- built-in collections, in collections module
- namedtuple / How it works...
- deque / How it works..., Getting ready
- defaultdict / How it works..., Getting ready
- Counter / How it works..., Getting ready
- OrderedDict / How it works..., Getting ready
- ChainMap / How it works..., Getting ready
- bytes
- versus string / How it works...
- decoding / Decoding bytes – how to get proper characters from some bytes, Getting ready, How to do it.., How it works...
C
- C3
- reference / How it works...
- calculations / Calculation
- Cascading Style Sheet (CSS) / Getting ready
- Certificate Authority (CA) / Implementing authentication for web services
- certificates / Implementing authentication for web services
- character codes
- reference / See also
- character files / Introduction
- chunking / There's more...
- ckdate command / See also
- ckgid command / See also
- ckint command / See also
- ckitem command / See also
- ckkeywd command / See also
- ckpath command / See also
- ckrange command / See also
- ckstr command / See also
- cktime command / See also
- ckuid command / See also
- ckyorn command / See also
- class
- about / Choosing names wisely
- used, for encapsulating data / Using a class to encapsulate data and processing, Getting ready, How to do it..., How it works...
- used, for data processing / Using a class to encapsulate data and processing, Getting ready, How to do it..., How it works...
- designing, with lot of processing / Designing classes with lots of processing, Getting ready, How to do it..., How it works...
- designing, with unique processing / Designing classes with little unique processing, Getting ready, Stateless objects, How it works...
- designing, techniques / There's more...
- creating, that has orderable objects / Creating a class that has orderable objects, Getting ready, How it works...
- class-as-namespace
- using, for configuration / Using class-as-namespace for configuration, How to do it...
- class-level static variable / Class-level static variable
- class definition
- using / There's more...
- clear documentation strings
- writing, with RST markup / Writing clear documentation strings with RST markup, Getting ready, How to do it...
- CLI applications
- wrapping / Wrapping and combining CLI applications, How to do it...
- combining / Wrapping and combining CLI applications, How to do it...
- client class
- creating, for database access / Client class for database access, How to do it...
- Cmd class / There's more...
- cmd module
- used, for building interactive interface / Interaction via the cmd module
- used, for creating command-line applications / Using cmd for creating command-line applications, Getting ready, How to do it..., How it works...
- collaborators / How to do it...
- collection
- collection of objects
- extending / Extending - inheritance
- collections modules
- built-in collections / Getting ready
- command-line applications
- creating, cmd module used / Using cmd for creating command-line applications, Getting ready, How to do it...
- command-line input
- obtaining, argparse used / Using argparse to get command-line input, Getting ready, How to do it..., How it works...
- Command design pattern / The Command design pattern
- common doctest issues
- handling / Handling common doctest issues, Getting ready
- Common Gateway Interface (CGI) / How it works...
- comparison directives, for individual tests
- +ELLIPSIS / There's more...
- +IGNORE_EXCEPTION_DETAIL / There's more...
- +NORMALIZE_WHITESPACE / There's more...
- +SKIP / There's more...
- +DONT_ACCEPT_TRUE_FOR_1 / There's more...
- +DONT_ACCEPT_BLANKLINE / There's more...
- complex data structure
- serializing / Serializing a complex data structure
- deserializing / Deserializing a complex data structure
- complex files
- operations / There's more...
- complex formats
- reading, regular expressions used / Reading complex formats using regular expressions, Getting ready
- complex if...elif chains
- designing / Designing complex if...elif chains, How to do it...
- complex numbers / There's more...
- complex object
- mocking / Mocking a complex object
- complex sequences
- controlling, of steps / Controlling complex sequences of steps, How to do it..., How it works...
- complex strings
- building / Building complex strings with "template".format(), How to do it..., How it works...
- building, from lists of characters / Building complex strings from lists of characters, How to do it...
- composite applications
- arguments, managing in / Managing arguments and configuration in composite applications, How to do it..., How it works...
- configuration, managing in / Managing arguments and configuration in composite applications, How to do it..., How it works...
- composition
- about / How to do it...
- scripts, designing for / Designing scripts for composition, How it works...
- comprehension / Writing a list comprehension
- concerns
- separating, via multiple inheritance / Separating concerns via multiple inheritance, How to do it..., How it works...
- types / There's more...
- conditional processing
- building / Building conditional processing
- configuration
- class-as-namespace, using for / Using class-as-namespace for configuration, How it works...
- managing, in composite applications / Managing arguments and configuration in composite applications, How to do it..., How it works...
- configuration files
- finding / Finding configuration files, Getting ready, How to do it...
- YAML, using for / Using YAML for configuration files, How it works...
- Python, using for / Using Python for configuration files, How it works...
- configuration representation / Configuration representation
- context
- managing, with statement used / Managing a context using the with statement, Getting ready, How it works...
- context managers
- about / How it works...
- files, reading with / Getting ready, How to do it...
- files, writing with / Getting ready, How to do it...
- working / How it works...
- creating / Creating a context manager
- control
- logging, using for / Using logging for control and audit output, Getting ready, How to do it..., How it works...
- copy of list
- reversing / Reversing a copy of a list, Getting ready, How to do it..., How it works...
- Counter class
- extending / Getting ready
- Counter object
- wrapping / Getting ready
- updating / There's more...
- Coupon Collector's Test / Using set methods and operators, Getting ready
- CRUD operations / Removing from dictionaries – the pop() method and the del statement, There's more...
- CSV
- upgrading, from DictReader to namedtuple reader / Upgrading CSV from DictReader to namedtuple reader, How to do it..., How it works...
- upgrading, from DictReader to namespace reader / Upgrading CSV from a DictReader to a namespace reader, Getting ready, How to do it...
- CSV (comma-separated value) format / Getting ready, Introduction
- csv module
- used, for reading delimited files / Reading delimited files with the CSV module, Getting ready, How to do it..., How it works...
- currency / Getting ready
- currency calculations
- performing / Doing currency calculations
D
- dangling else
- reference / See also
- data
- processing, class used / Using a class to encapsulate data and processing, Getting ready, How to do it..., How it works...
- encapsulating, class used / Using a class to encapsulate data and processing, Getting ready, How to do it..., How it works...
- database access
- client class, creating for / Client class for database access, How to do it...
- data processing, from files
- physical format of data / Introduction
- logical layout of data / Introduction
- data structure
- selecting / Choosing a data structure, How to do it..., How it works...
- reference / There's more...
- debugging tools / Debugging with "format".format_map(vars()), How to do it...
- deck slicing / Deck slicing
- deep copy of objects
- delimited files
- reading, with csv module / Reading delimited files with the CSV module, Getting ready, How to do it..., How it works...
- DeMorgan's Law / Avoiding a potential problem with break statements
- Dependency Inversion Principle / There's more...
- descriptions
- including / Including descriptions and documentation, How to do it...
- descriptive names / There's more...
- dice() function / There's more...
- dictionary
- creating / Creating dictionaries – inserting and updating, Getting ready, How it works...
- setdefault() method, using of / There's more...
- items, removing from / Removing from dictionaries – the pop() method and the del statement, How to do it..., How it works...
- handling, in doctest examples / Handling dictionaries and sets in doctest examples, How it works...
- dictionary keys
- working with / How it works...
- dict objects / There's more...
- DictReader, to namedtuple reader
- CSV, upgrading from / Upgrading CSV from DictReader to namedtuple reader, How to do it..., How it works...
- DictReader, to namespace reader
- CSV, upgrading from / Upgrading CSV from a DictReader to a namespace reader, Getting ready, How it works...
- directives
- about / There's more...
- using / Using directives
- directory
- creating / Creating a directory and a number of files
- distinct names
- number of sibling output files, making with / Making a number of sibling output files with distinct names
- div-mod pair / Getting ready
- division operators / Choosing between true division and floor division, How it works...
- docstring
- about / How to do it...
- writing, for scripts / Writing docstrings for scripts
- writing, for library modules / Writing docstrings for library modules
- RST markup, writing in / Writing better RST markup in docstrings, How to do it..., How it works...
- using, for testing / Using docstrings for testing, How to do it...
- docstring, for script
- example / Writing docstrings for scripts
- doctest examples
- dictionary, handling in / Handling dictionaries and sets in doctest examples, How it works...
- set, handling in / Handling dictionaries and sets in doctest examples, How it works...
- writing, for mapping values / Writing doctest examples for mapping or set values
- writing, for setting values / Writing doctest examples for mapping or set values
- writing, for floating-point values / Writing doctest examples for floating-point values
- doctest parser / How it works...
- documentation
- including / Including descriptions and documentation, How to do it...
- document object model (DOM) / How it works...
- Document Type Definition (DTD) / Getting ready
- docutils package
- reference / How it works...
- docutils tools
- reference / See also
- Don't Repeat Yourself (DRY) principle / How it works...
- dynamic content / Introduction
E
- eager attributes
- updating, settable properties used / Using settable properties to update eager attributes, Getting ready, How to do it..., How it works...
- eager loading / Getting ready
- eager processing / Using properties for lazy attributes
- edge cases / There's more...
- Elastic
- reference / Getting ready
- emergent behavior / Getting ready
- encodings
- reference / See also
- entry documents
- creating, in entrylog collection / Creating an entry document in the entrylog collection
- except clause
- potential problems, avoiding with / Avoiding a potential problem with an except: clause, How it works...
- exception matching rules
- exceptions
- chaining, with raise from statement / Chaining exceptions with the raise from statement, How it works...
- explicit line joining / How it works...
- explicit types
- writing, on function parameters / Writing explicit types on function parameters, How to do it..., How it works...
- exponent / How it works...
- expressions / There's more...
- extension
- versus inheritance / Choosing between inheritance and extension – the is-a question, Getting ready, How to do it...
- external resources
- mocking / Mocking external resources, Getting ready
F
- features
- using, of print() function / Using features of the print() function, Getting ready, How to do it..., How it works...
- Fibonacci problem
- recursions / There's more...
- file dates
- comparing / Comparing file dates to see which is newer
- files
- about / Introduction
- OS files / Introduction
- creating / Creating a directory and a number of files
- removing / Removing a file
- finding, that match / Finding all files that match a given pattern
- reading, with context managers / Reading and writing files with context managers, Getting ready, How to do it...
- writing, with context managers / Reading and writing files with context managers, Getting ready, How to do it...
- replacing, while preserving previous version / Replacing a file while preserving the previous version, Getting ready, How it works...
- reading, multiple contexts used / Using multiple contexts for reading and writing files, How to do it...
- writing, multiple contexts used / Using multiple contexts for reading and writing files, How it works...
- filter() function
- using / The filter() function
- First-In-First-Out (FIFO) / How to do it...
- First Normal Form (1NF) / Getting ready
- Flask framework
- using, for RESTful APIs / Using the Flask framework for RESTful APIs, How to do it..., How it works..., There's more...
- references / See also
- Flask view function decorator / Flask view function decorator
- floating-point
- need for / How it works...
- floating-point approximations / Floating-point approximations
- floor division
- performing / Doing floor division
- fraction calculations / Fraction calculations
- fractions / Getting ready
- full pathname
- elements / Using pathlib to work with filenames
- function definitions / Introduction
- function parameters
- explicit types, writing on / Writing explicit types on function parameters, Getting ready, How to do it..., How it works...
- mutable default values, avoiding for / Avoiding mutable default values for function parameters, Getting ready, How to do it...
- functions
- designing, with optional parameters / Designing functions with optional parameters
- wrapping / Wrapping a function, There's more...
- testing, that arise exceptions / Testing functions that raise exceptions, How it works...
G
- general domain validation / How it works...
- generator expression
- list function, using on / Using the list function on a generator expression
- getpass()
- using, for user input / Using input() and getpass() for user input, How to do it..., How it works...
- GIVEN-WHEN-THEN style, of test case naming / Introduction
- global objects
- managing / Managing global and singleton objects, How to do it...
- global singleton variables
- sharing / How it works...
- graphs / There's more...
H
- half-open interval / How it works...
- happy path / Creating separate test modules and packages
- hard links / Getting ready
- has-a relationship / Choosing between inheritance and extension – the is-a question
- hashes / There's more...
- heapq module / Getting ready
- heap queue / How to do it...
- hints / How it works...
- HTML documents
- reading / Reading HTML documents, Getting ready, How it works...
- HTTP
- about / Introduction
- use case / Introduction
- HTTP basic authentication / Getting ready
- HTTP digest authentication / Getting ready
- HTTP headers / How it works...
- HTTP request / Getting ready
- HTTP response / Getting ready
- Hungarian Notation /
- Hypertext Transfer Protocol (HTTP) / Getting ready
I
- IEEE floating point
- reference / See also
- if-break pattern / How to do it...
- immutable string
- rewriting / Rewriting an immutable string, Getting ready
- implicit line joining / How it works...
- indexing / There's more...
- inheritance
- versus extension / Choosing between inheritance and extension – the is-a question, Getting ready, How to do it...
- inline markup
- using / Using inline markup
- input()
- using, for user input / Using input() and getpass() for user input, How to do it..., How it works...
- instance
- initializing, with values / Initialization
- integer processing
- reference / See also
- integration testing / Introduction
- Interface Segregation Principle / There's more...
- intermediate results
- assigning, for separating variables / Assigning intermediate results to separate variables
- invariant / How to do it...
- Inverse Power Law of Reuse / How it works...
- irrational numbers / Getting ready
- is-a or inheritance / How to do it...
- is-a relationship / Choosing between inheritance and extension – the is-a question
- ISO11179
- reference / See also
- items
- tuples, using of / Using tuples of items
- extracting, from tuples / Extracting items from a tuple
- deleting, from list / Deleting items from a list, How it works...
- removing, remove() method used / The remove() method
- removing, pop() method used / The pop() method
- adding, to set / There's more...
- removing, from set / Removing items from a set – remove(), pop(), and difference, How to do it..., There's more...
- removing, from dictionary / Removing from dictionaries – the pop() method and the del statement, How to do it..., How it works...
J
- Java Developer Kit (JDK) / Getting ready
- joining
- explicit line joining / How it works...
- implicit line joining / How it works...
- JSON
- reference / Reading JSON documents
- complex data structure, serializing / Serializing a complex data structure
- complex data structure, deserializing / Deserializing a complex data structure
- JSON documents
- reading / Reading JSON documents, How to do it..., How it works...
- JSON request
- parsing / Parsing a JSON request
- Swagger specification / Swagger specification
- server / Server
- client module / Client
- JSON schema specification
- reference / Introduction
K
- key-and-count algorithm / There's more...
- keyword-only arguments
- forcing, with * separator / Forcing keyword-only arguments with the * separator, Getting ready
- keyword parameters
- partial function, creating with / Creating a partial function with keyword parameters, Creating a partial function with positional parameters
- Komodo Edit / Getting ready
- Komodo IDE
- about / Getting ready
- reference / Getting ready
- ksh / How it works...
L
- large integers
- working with / Working with large and small integers, How it works...
- Last-In-First-Out (LIFO) / How to do it...
- Law of the Excluded Middle / Designing complex if...elif chains
- lazy attributes
- properties, using for / Using properties for lazy attributes, Getting ready..., How it works...
- lazy loading / Getting ready
- lazy processing / Using properties for lazy attributes
- library modules
- about / Getting ready
- docstrings, writing for / Writing docstrings for library modules
- line joining / How it works...
- Liskov Substitution Principle (LSP) / There's more..., How it works...
- list comprehension
- writing / Writing a list comprehension
- working / How it works...
- list function
- using, on generator expression / Using the list function on a generator expression
- list objects
- creating, ways / Getting ready
- list of mappings
- deleting from / Deleting from a list of mappings, Getting ready, How it works...
- lists
- about / There's more...
- building / Building lists – literals, appending, and comprehensions
- building, with append() method / Building a list with the append() method
- extending / Other ways to extend a list
- slicing / Slicing and dicing a list, How to do it...
- dicing / Slicing and dicing a list, How to do it...
- deleting from / Deleting from a list – deleting, removing, popping, and filtering, Getting ready
- items, deleting from / Deleting items from a list
- literal blocks / There's more...
- load_tests protocol
- using / Using the load_tests protocol
- logging
- using, for control / Using logging for control and audit output, Getting ready, How to do it..., How it works...
- using, for audit output / Using logging for control and audit output, Getting ready, How to do it..., How it works...
- logging package
- security levels / Getting ready
- long lines of code
- writing / Writing long lines of code, Getting ready
- long statement
- breaking, backslash used / Using backslash to break a long statement into logical lines
- breaking, () characters used / Using the () characters to break a long statement into sensible pieces
M
- man page
- about / How it works...
- reference / See also
- mantissa / How it works...
- mapping
- mutable mapping / How it works...
- immutable mapping / How it works...
- maps of lists
- Mastering Python Regular Expressions book
- reference / There's more...
- math module, Python / There's more...
- meaningful names
- memoization / There's more...
- memory leaks / Managing a context using the with statement
- Method Resolution Order (MRO) / How it works..., Configuration representation
- methods
- finding, Python mechanism used / How it works...
- microservice / Introduction
- mixed content model / Getting ready
- mixin / Introduction
- modeline / There's more...
- module files / Choosing names wisely
- module global variable / Module global variable
- multiple contexts
- used, for reading files / Using multiple contexts for reading and writing files, How to do it...
- used, for writing files / Using multiple contexts for reading and writing files, How it works...
- multiple inheritance
- concerns, separating via / Separating concerns via multiple inheritance, How to do it..., How it works...
- Multipurpose Internet Mail Extensions (MIME) / Getting ready
- mutable default values
- avoiding, for function parameters / Avoiding mutable default values for function parameters, Getting ready, How to do it..., There's more...
- mypy
- reference / How it works..., See also
N
- names
- selecting / Choosing names wisely
- assigning, to objects /
- no echo input / Using input() and getpass() for user input
- Notepad++
- reference / Getting ready
- null hypothesis / How to do it...
- numbered lists / There's more...
- number of sibling output files
- making, with distinct names / Making a number of sibling output files with distinct names
- numbers
- converting, from one type to another / Converting numbers from one type to another
O
- object / Getting ready
- object-oriented programming / Getting ready
- Object-Relational Management (ORM) / Getting ready
- objects
- about / Choosing names wisely
- names, assigning to /
- OData specifications
- reference / There's more...
- ontology / Getting ready
- Open/Closed Principle / There's more...
- OpenAPI (Swagger) authentication / The OpenAPI (Swagger) specification
- OpenID
- reference / Implementing authentication for web services
- operators
- optional parameters
- functions, designing with / Designing functions with optional parameters
- int (str) / Designing functions with optional parameters
- int (str, base) / Designing functions with optional parameters
- ordered collection
- order for parameters
- picking, based on partial functions / Picking an order for parameters based on partial functions, Getting ready, How to do it...
- order of dict keys
- controlling / Controlling the order of dict keys
- ordinary input / Using input() and getpass() for user input
- OS environment settings
- OS files
- about / Introduction
- block files / Introduction
- character files / Introduction
- output filename
- making, by changing input suffix / Making the output filename by changing the input suffix
- output files
- directory, creating based on timestamps / There's more...
P
- packages
- paragraphs of text / There's more...
- parse function
- defining / Defining the parse function
- using / Using the parse function
- partial function
- creating, with keyword parameters / Creating a partial function with keyword parameters, Creating a partial function with positional parameters
- creating, with positional parameters / Creating a partial function with positional parameters
- Path class
- operations, example / How it works...
- pathlib module
- used, for working with filenames / Using pathlib to work with filenames, Getting ready
- about / There's more...
- PEP 3333
- reference / See also
- performance testing / Introduction
- piton / There's more...
- pop() method
- used, for removing items / The pop() method
- positional parameters
- partial function, creating with / Creating a partial function with positional parameters
- predicate transformer semantics
- reference / See also
- print() function
- features, using of / Using features of the print() function, Getting ready, How to do it..., How it works...
- priority queue / How to do it...
- program
- program output
- properties
- using, for lazy attributes / Using properties for lazy attributes, Getting ready..., How it works...
- pure paths, for specific operating system
- cases / There's more...
- pymongo
- reference / There's more...
- Python
- operators / How it works...
- using, for configuration files / Using Python for configuration files, How it works...
- Python's duck typing
- leveraging / Leveraging Python's duck typing, How it works...
- Python collections
- reference / See also
- Python Enhancement Proposal 484
- reference / There's more...
- Python Enhancement Proposal number 8 (PEP-8) / See also
- Python Language Reference document
- reference / There's more...
- Python Package Index (PyPI) / Reading HTML documents
- Python script
- Python standard library
- reference / See also
- Python Standard Library documents / There's more...
Q
- query string
- parsing, in request / Parsing the query string in a request, Getting ready, How it works...
- syntax rules / There's more...
- queue / How to do it...
R
- raise from statement
- exceptions, chaining with / Chaining exceptions with the raise from statement, How it works...
- random walk technique / Getting ready
- Rate-Time-Distance (RTD) / Getting ready
- rational fraction calculations / Rational fraction calculations
- rational fraction value / Getting ready
- rational numbers / Getting ready
- read-eval-print loop (REPL) / Introduction, Getting ready
- recursive functions
- designing, around Python's stack limits / Designing recursive functions around Python's stack limits, How to do it...
- reduction / How to do it...
- references / Understanding variables, references, and assignment
- regular expressions
- used, for reading complex formats / Reading complex formats using regular expressions, Getting ready
- remaining numbers / How to do it...
- remove() method
- used, for removing items / The remove() method
- Representational State Transfer (REST) / Getting ready, Introduction
- request
- query string, parsing in / Parsing the query string in a request, Getting ready, How it works...
- RESTful APIs
- Flask framework, using for / Using the Flask framework for RESTful APIs, How to do it..., How it works..., There's more...
- REST requests
- making, with urllib / Making REST requests with urllib, Getting ready, How to do it..., How it works...
- ReStructuredText (RST) markup / Writing docstrings for scripts
- reusable scripts
- writing, with script library switch / Writing reusable scripts with the script library switch, How it works...
- RST markup
- writing, in docstrings / Writing better RST markup in docstrings, How to do it..., How it works...
- clear documentation strings, writing with / Writing clear documentation strings with RST markup, Getting ready, How to do it...
- RST syntax / There's more...
S
- script library switch
- reusable scripts, writing with / Writing reusable scripts with the script library switch, How it works...
- scripts
- about / Choosing names wisely, Getting ready
- docstrings, writing for / Writing docstrings for scripts
- designing, for composition / Designing scripts for composition, How it works...
- Secure Socket Layer (SSL) / Creating an entry document in the entrylog collection, There's more..., Implementing authentication for web services
- security levels, logging package
- DEBUG / Getting ready
- INFO / Getting ready
- WARNING / Getting ready
- ERROR / Getting ready
- CRITICAL / Getting ready
- sequence
- mutable sequence / How it works...
- immutable sequence / How it works...
- server
- Swagger, adding to / Adding Swagger to the server
- set
- mutable set / How it works...
- immutable set / How it works...
- items, adding to / There's more...
- items, removing from / Removing items from a set – remove(), pop(), and difference, Getting ready, How to do it..., There's more...
- handling, in doctest examples / Handling dictionaries and sets in doctest examples, How it works...
- set methods
- settable properties
- used, for updating eager attributes / Using settable properties to update eager attributes, Getting ready, How to do it..., How it works...
- shallow copy / There's more...
- shallow copy of objects
- share global state / There's more...
- signature / Designing functions with optional parameters
- Single Responsibility Principle / There's more...
- singleton objects
- managing / Managing global and singleton objects, How to do it...
- slice / How it works...
- slice notation / How it works...
- slice operator
- forms / How it works...
- small integers
- working with / Working with large and small integers, How it works...
- small objects
- optimizing, with __slots__ / Optimizing small objects with __slots__, How to do it..., How it works...
- soft links / Getting ready
- SOLID principle
- about / There's more...
- Single Responsibility Principle / There's more...
- Open/Close Principle / There's more...
- Liskov Substitution Principle / There's more...
- Interface Segregation Principle / There's more...
- Dependency Inversion Principle / There's more...
- solid state drives (SSD) / Introduction
- sophisticated collections
- Sphinx
- reference / See also
- Sphinx Python Documentation Generator
- reference / How it works..., See also
- spike solution / There's more...
- SQLAlchemy / Getting ready
- SSL
- configuring / Configuring SSL
- stack / How to do it...
- stateful class / Getting ready
- stateful objects
- examples, writing for / Writing examples for stateful objects
- stateless class / Getting ready
- stateless functions
- examples, writing for / Writing examples for stateless functions
- stateless objects
- about / Stateless objects
- defining, with new class / Stateful objects with a new class
- defining, existing class used / Stateful objects using an existing class
- static content / Introduction
- string
- piece of string, slicing / Slicing a piece of a string
- updating, with replacement / Updating a string with a replacement
- changing, to lowercase / Making a string all lowercase
- extra punctuation marks, removing / Removing extra punctuation marks
- parsing / How it works...
- encoding / Encoding strings – creating ASCII and UTF-8 bytes, How it works...
- versus byte / How it works...
- string literal concatenation
- string parsing
- with regular expressions / String parsing with regular expressions, How to do it...
- inputting / Input string parsing
- string patterns / How it works...
- subdomain validation / How it works...
- super flexible keyword parameters
- Swagger
- reference / Introduction
- about / The OpenAPI (Swagger) specification
- adding, to server / Adding Swagger to the server
- swagger-spec-validator project
- reference / Introduction
- Swagger specification
- providing / Providing a Swagger specification
- using / Using a Swagger specification
- symbolic links / Getting ready
- sys module / There's more...
- system testing / Introduction
T
- tail recursion / Getting ready
- TestCase class
- assertions / Some other assertions
- testing
- about / Introduction
- unit testing / Introduction
- integration testing / Introduction
- system testing / Introduction
- performance testing / Introduction
- docstrings, using for / Using docstrings for testing, How to do it...
- test modules
- tests directory / Separate tests directory
- text role / Using inline markup
- trees / There's more...
- true division
- performing / Doing true division
- true division operator / How it works...
- true value / Getting ready
- truncated division operator / How it works...
- tuples
- using, of items / Using tuples of items
- creating / Creating tuples
- items, extracting from / Extracting items from a tuple
- working / How it works...
- type hints
- reference / See also
- type inferencing / There's more...
- typical response
- viewing / Seeing a typical response
U
- UDEF and NIEM Naming and Design Rules standards
- reference / See also
- Unicode characters
- using / Using the Unicode characters that aren't on our keyboards, Getting ready
- reference / Getting ready
- Unicode encodings
- reference / See also
- unit test / Unit test
- unittest, and doctest tests
- combining / Combining unittest and doctest tests, Getting ready, How to do it...
- unit testing / Introduction
- unittest module / Creating separate test modules and packages
- working / How it works...
- unlinking / Removing a file
- urllib
- REST requests, making with / Making REST requests with urllib, Getting ready, How to do it..., How it works...
- URL path
- parsing / Parsing the URL path, Server
- User class
- defining / Defining the User class
- user input
- input(), using for / Using input() and getpass() for user input, How to do it..., How it works...
- getpass(), using for / Using input() and getpass() for user input, How to do it..., How it works...
- UTF-8 bytes
- UTF-8 encoding
- reference / See also
V
- variables
- vars() function / There's more...
- view decorator
- defining / Defining a view decorator
W
- web application
- client / Making REST requests with urllib
- server / Making REST requests with urllib
- web log file
- searching, for particular sequence of events / There's more...
- web page content
- static content / Introduction
- dynamic content / Introduction
- web services
- implementing, with WSGI / Implementing web services with WSGI, Getting ready, How to do it...
- authentication, implementing for / Implementing authentication for web services
- Werkzeug project
- reference / See also
- while statement
- with context
- reference / There's more...
- with statement
- used, for managing context / Managing a context using the with statement, Getting ready, How it works...
- reference / See also
- wrapper / There's more...
- wrapping / Wrapping – aggregation and composition
- WSGI
- web services, implementing with / Implementing web services with WSGI, Getting ready, How to do it...
- WSGI server context
- wsgi.input / How it works...
- wsgi.errors / How it works...
- WSGI standard
- methods / Getting ready
- request headers / Getting ready
- attached content / Getting ready
- environment dictionary / How it works...
X
- XML
- reference / Reading XML documents
- XML documents
- reading / Reading XML documents, Getting ready, How to do it...
- XML Path Language (XPath) / There's more...
Y
- YAML
- using, for configuration files / Using YAML for configuration files, How it works...
- reference / How it works...
- additional features / There's more...