100% found this document useful (4 votes)
989 views

Download Complete Mastering Python Network Automation Tim Peters PDF for All Chapters

Network

Uploaded by

radmalciftci
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
989 views

Download Complete Mastering Python Network Automation Tim Peters PDF for All Chapters

Network

Uploaded by

radmalciftci
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

Get ebook downloads in full at ebookmeta.

com

Mastering Python Network Automation Tim Peters

https://ebookmeta.com/product/mastering-python-network-
automation-tim-peters/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Mastering Python Networking Your one stop solution to


using Python for network automation programmability and
DevOps 3rd Edition Eric Chou
https://ebookmeta.com/product/mastering-python-networking-your-one-
stop-solution-to-using-python-for-network-automation-programmability-
and-devops-3rd-edition-eric-chou/
ebookmeta.com

Network Automation using Python 3: An Administrator's


Handbook 1st Edition Jithin Aby Alex

https://ebookmeta.com/product/network-automation-using-python-3-an-
administrators-handbook-1st-edition-jithin-aby-alex/

ebookmeta.com

Introduction to Ansible Network Automation: A Practical


Primer Brendan Choi

https://ebookmeta.com/product/introduction-to-ansible-network-
automation-a-practical-primer-brendan-choi/

ebookmeta.com

Studies in Chinese Literary Genres Cyril Birch (Editor)

https://ebookmeta.com/product/studies-in-chinese-literary-genres-
cyril-birch-editor/

ebookmeta.com
3D and Circuit Integration of MEMS 1st Edition Masayoshi
Esashi

https://ebookmeta.com/product/3d-and-circuit-integration-of-mems-1st-
edition-masayoshi-esashi/

ebookmeta.com

Star Wars Myths Fables George Mann

https://ebookmeta.com/product/star-wars-myths-fables-george-mann/

ebookmeta.com

A Course of Modern Analysis 5th Edition E. T. Whittaker

https://ebookmeta.com/product/a-course-of-modern-analysis-5th-edition-
e-t-whittaker/

ebookmeta.com

Hate Crime in Turkey Implications of Collective Action


Media Representation and Policy Making 1st Edition Deniz
Ünan Göktan
https://ebookmeta.com/product/hate-crime-in-turkey-implications-of-
collective-action-media-representation-and-policy-making-1st-edition-
deniz-unan-goktan/
ebookmeta.com

Beastly Bullies Loved By Three 7 1st Edition Evie Rae

https://ebookmeta.com/product/beastly-bullies-loved-by-three-7-1st-
edition-evie-rae/

ebookmeta.com
Export Control Law and Regulations Handbook A Practical
Guide to Military and Dual Use Goods Trade Restrictions
and Compliance 3rd edition Yann Aubin
https://ebookmeta.com/product/export-control-law-and-regulations-
handbook-a-practical-guide-to-military-and-dual-use-goods-trade-
restrictions-and-compliance-3rd-edition-yann-aubin/
ebookmeta.com
MASTERING PYTHON
NETWORK AUTOMATION
Automating Container Orchestration,
Configuration, and Networking with
Terraform, Calico, HAProxy, and Istio

Tim Peters
Content
Preface
Chapter 1: Python Essentials for Networks
Role of Python in Network Programming
Overview
Factors Benefitting Networking
Learn to use Data Types
Numeric Data Types
Boolean Data Type
Sequence Data Types
Mapping Data Types
Set Data Types
Binary Data Types
Exploring Loops
For Loops
While Loops
Working with Functions
Defining Functions
Calling Functions
Default Arguments
Variable-length Arguments
Lambda Functions
Recursion
Global and Local Variables
Function Arguments
Nested Functions
Summary
Chapter 2: File Handling and Modules in Python
File Handling
Opening and Closing Files
Reading from Files
Writing to Files
Appending to Files
With Statement
Exception Handling:
Utilizing Modules
Creating a Module
Importing a Module
Built-In Modules
Creating Packages
Standard Library Modules
My First Python Script
Summary
Chapter 3: Preparing Network Automation Lab
Components of Network Automation Process
Network Devices
Network Emulator
Python Environment
Automation Scripts
Putting It All Together
Benefits of Network Automation Lab
Install NS3 Network Simulator
System Requirements
Install Required Dependencies
Download NS-3
Install Python
Update System
Install Python
Install pip
Install paramiko, Netmiko and Nornir
Install Virtual Environment
Create Virtual Environment
Activate the Virtual Environment
Install Python Libraries in Virtual Environment
Deactivate the Virtual Environment
Install Visual Studio Code
Download and Install VS Code
Install Python Extension
Configure Python Interpreter
Create Python Project
Write Python Code
Run Python Code
Summary
Chapter 4: Configuring Libraries and Lab Components
Nornir
Architecture of Nornir
Significance of Nornir
Paramiko
Architecture of Paramiko
Significance of Paramiko
Netmiko
Architecture of Netmiko
Significance of Netmiko
PyEZ
Architecture of PyEZ
Significance of PyEZ
Configure nornir, paramiko, netmiko and pyEZ
Installing and Configuring Nornir
Installing and Configuring Paramiko
Installing and Configuring Netmiko
Installing and Configuring PyEZ
Configure Ports
Configuring Ports on Switches
Configuring Ports on Routers
Configure Hosts
Configuring Hosts on Windows
Configuring Hosts on Linux
Configure Servers
Installing Server Operating System
Configuring Network Settings
Installing and Configuring Server Software
Configure Network Encryption
SSL/TLS
IPsec
SSH
VPN
Testing the Network Automation Environment
Test Connectivity between Hosts
Test Port Connectivity
Test SSH Connectivity
Test Network Automation Libraries
Test NS3 Emulator
Test Network Encryption
Summary
Chapter 5: Code, Test & Validate Network Automation
Understanding Network Automation Scripts
Procedure of Network Automation Scripts
Define Variables for Automation Scripts
Install Required Libraries
Import Libraries
Define Variables
Connect to Device
Send Configuration Commands
Close Connection
Create Script to Use Variables
Run the Script
Write Codes using Python Tools
Install Required Libraries and Tools
Import Libraries
Define Inventory
Define Tasks
Define Playbook
Execute the Script
Test and Validate the Script
Testing Network Automation Scripts
Set Up a Test Environment
Create Test Cases
Run the Code
Document Test Results
Debug Errors
Identify the Error or Issue
Review the Code
Use Print Statements
Use a Debugger
Fix the Error or Issue
Validate Network Automation Scripts
Prepare the Production Environment
Deploy Code to Production Environment or Devices
Run the Code on Production Environment or Devices
Verify the Output
Summary
Chapter 6: Automation of Configuration Management
Why Configuration Management?
Need of Configuration Management
Role of Python in Configuration Management
Server Provisioning with Terraform
Set up AWS Credentials
Install Terraform
Define Terraform Configuration
Initialize Terraform
Apply Terraform Configuration
Connect to EC2 Instance
Creating Server
Testing Server
Using Python to Automate System Settings
Import Necessary Modules
Define Timezone
Execute Command to Change Timezone
Verify Setting the Timezone
Using Python to Modify Base Configurations
Using Terraform to Modify Base Configurations
Automating System Identification
Install Terraform Module
Python Script to Retrieve System Information
Using Python to Automate Patches and Updates
Install Necessary Libraries
Check for Available Updates
Upgrade the System
Reboot the System
Schedule Regular Updates
Using Terraform to Roll Patches and Updates
Create Configuration File
Applying Configuration File
Identify Unstable and Non-compliant Configurations
Establish Connection with Device
Retrieve Running Configuration
Search Non-compliant Interfaces
Fixing Non-compliant Configurations
Summary
Chapter 7: Managing Docker and Container Networks
Docker and Containers
Docker & Container Fundmentals
Benefits & Applications
Role of Python in Containerization
Install and Configure Docker
Install Docker
Install Docker Python Module
Create Dockerfile
Build Docker Image
Run Docker Container
Test Docker Container
Using Python to Build Docker Images
Create DockerFile
Install Dependencies
Define Command
Build Docker Image
Run Container
Running Containers
Automate Running of Containers
Install Docker SDK for Python
Import Docker SDK
Connect to Docker Daemon
Define Container Configuration
Create Container
Start the Container
Stop and Remove Containers
Container Network Management
Overview
Managing Container Networks with Docker SDK
Summary
Chapter 8: Orchestrating Container & Workloads
Container Scheduling and Workload Automation
Network Service Disocvery
Understanding etcd
Service Discovery using etcd
Install etcd
Start etcd
Register Services
Discover Services
Automate Service Discovery
Sample Program to Automate Service Discovery
Kubernetes Load Balancers
Exploring HAProxy
Manage Load Balancer Servers using HAProxy
Import Required Libraries
Define API Endpoint URLs
Define Function to Add or Remove Servers
Call Function
Sample Program to Manage Load Balancer Servers
Automate Add/Manage SSL Certificate
Using Cryptography Library to Automate SSL
Step-by-step Illustration of Sample Program
Manage Container Storage
Sample Program
Step-by-step Illustration of Sample Program
Necessity of Container Performance
Why Container Performance?
Container Performance KPIs
Setting Up Container Performance Monitoring
Install the Required Libraries
Import Required Libraries
Connect to Docker API
Get Container List
Pull Performance Metrics
Print Container Metrics
Automated Rolling of Updates
Get Current Deployment Object
Update Deployment Object
Check Status of Deployment Rollout
Clean Up Resources
Summary
Chapter 9: Pod Networking
Pods and Pod Networking
What are Pods?
Pods beyond Containers
Networking in Pods
Setting Up Pod Network
Choose a Pod Network Provider
Install Pod Network Provider
Configure Pod Network
Verify the Pod Network
Exploring Calico
Overview
Characteristics of Calico
Getting Started with Calico
Using Calico to Setup Pod Network
Routing Protocols
Border Gateway Protocol (BGP)
Open Shortest Path First (OSPF)
Intermediate System to Intermediate System (IS-IS)
Routing Information Protocol (RIP)
Exploring Cilium
Key Features of Cilium
Cilium Architecture
Install Cilium
Automation of Network Policies
Overview
Steps for Network Policies Automation
Using Calico to Automate Network Policies
Workload Routing
Need of Workload Routing
Istio
Linkerd
Consul
Summary
Chapter 10: Implementing Service Mesh
Service-to-Service Communication
Remote Procedure Calls (RPCs)
Message-based Communication
Need of Service-to-Service
Rise of Service Mesh
Exploring Istio
Overview
Istio’s Capabilities
Installing Istio
Cluster Traffic
NodePort
LoadBalancer
Ingress
Istio Control Plane
Using Istio to Route Traffic
Metrics, Logs and Traces
Metrics
Logs
Traces
Using Grafana to Collect Metrics
Steps to Collect Metrics
Summary
Preface
With "Mastering Python Network Automation," you can streamline
container orchestration, configuration management, and resilient
networking with Python and its libraries, allowing you to emerge as a
skilled network engineer or a strong DevOps professional.
From the ground up, this guide walks readers through setting up a
network automation lab using the NS3 network simulator and Python
programming. This includes the installation of NS3, as well as python
libraries like nornir, paramiko, netmiko, and PyEZ, as well as the
configuration of ports, hosts, and servers. This book will teach you
the skills to become a proficient automation developer who can test
and fix any bugs in automation scripts. This book examines the
emergence of the service mesh as a solution to the problems
associated with service-to-service communication over time.
This book walks you through automating various container-related
tasks in Python and its libraries, including container orchestration,
service discovery, load balancing, container storage management,
container performance monitoring, and rolling updates. Calico and
Istio are two well-known service mesh tools, and you'll find out how
to set them up and configure them to manage traffic routing,
security, and monitoring.
Additional topics covered in this book include the automation of
network policies, the routing of workloads, and the collection and
monitoring of metrics, logs, and traces. You'll also pick up some tips
and tricks for collecting and visualising Istio metrics with the help of
tools like Grafana.
In this book you will learn how to:
Use of Istio for cluster traffic management, traffic routing,
and service mesh implementation.
Utilizing Cilium and Calico to solve pod networking and
automate network policy and workload routing.
Monitoring and managing Kubernetes clusters with etcd
and HAProxy load balancers and container storage.
Other documents randomly have
different content
See 10a, 16, 17a, 50, 62, 64.

18. Findley, Sarah, “over 50.” She was mother to one of the house-
girls at Bethlehem, in the Santa Cruz Mountains, an old-time woman
and quite illiterate.

See 146.

19. Forbes, William, over 75. He came from Dry River and was one
of my best story-tellers. He had been song-leader and “Tea-meeting
chairman” for his district and was much respected for his intelligence
and sense of order. He came at several different times and sang or
told stories with equal ease and with a freshness and delight which
was contagious, never failing to bring a small gift from his garden
and never arguing over the pay. He had a very long-shaped head
and beaming eyes.

See 2a, 3, 7, 8, 11b, 24, 25b, 46, 70, 85b, 86a, 101, 140,
141, 142.

20. Ford, May, a young girl. She was of the better class, daughter of
the lodging-house keeper at Newmarket, in Westmoreland.

See 44.

21. Foster, Alexander, aged 40, one of the Maroon story-tellers.

See 88.

22. Gentle, Julia, over 70. She came to me twice at Bethlehem in the
Santa Cruz mountains and recited the stories with great rapidity as if
she knew them by heart in a fixed form, among them some English
ballads of second rate interest.

See 18, 60b, 61, 69b, 77, 112.


23. Hall, Matilda, aged 50, one of the women who came to me at
Harmony Hall, and a good singer and story-teller.

See 57c, 71a, 85b, 148. [293]

24. Harris, William, a young man. He came from a shop at Maggotty


and was scarcely able to speak from bashfulness.

See 73b.

25. Hendricks, Moses, over 60. He was a white man, but lived with
his negro family like one of the race; an excellent story-teller,
dictating some fifteen stories to me at three different visits to his
house.

See 13b, 15, 25a, 26, 29, 35, 48, 69a, 99, 138.

26. Hilton, Elizabeth, aged 41. She was care-taker at Harmony-Hall


and a fine intelligent type. In the evening when her work was done,
she recited to me some thirteen stories learned from her mother
who was brought up at Harmony Hall, and from an old school-
master at Retirement.

See 37a, 40b (1), 84b, 104, 105.

27. Hilton, Norman, aged 13, son to Elizabeth.

See 5.

28. Hilton, James Anderson, aged 33, one of the Maroon men.

See 149.

29. Iron, Adolphus, about 50. A reputed humorist from Golden Grove
near Claremont, but disappointing in frock coat at the lodging house.
See 20, 37b.

30. Johnson, Emanuel, about 40, from Orange Hill near Brownstown.

See 30c, 97a.

31. Jones, Stanley, aged 27, one of the Claremont group.

See 21c, 133.

32. Macfarlane, Joseph, aged 14. He was a natural clown, long and
loose-jointed. It was in the evening after work at Moneague and he
stood in the middle of the group and acted out the story he was
telling in rapid, unintelligible dialect, and with excellent mimicry of
both speech and gesture. Afterward he recited it to me more slowly,
possibly more in detail.

See 5a, 129.

33. Macfarlane, Rennie, aged 11. He was employed at the hotel in


Mandeville.

See 27b, 38a, 59.

34. Morgan, Richard, about 50. He was an entertainer in the Santa


Cruz district and came over to Falconer’s for two days to give me
these stories.

See 6, 17d, 19, 21a, 34, 45, 52, 54, 55, 57a, 85a (1), 87a, 89,
92b (3), 93, 98, 119, 120, 121, 122, 123, 124, 136, 137.

35. Morris, Margaret, aged 85. Her memory wandered unless


prompted by her son-in-law, at that time captain of the Maroons.

See 74.
36. Morrison, Vincent, aged 20. He was a Mandeville lad and claimed
to “compose” his stories.

See 94.

37. Parkes, George, over 40. This blind man had lived in different
parts of the island and been over-seas in Africa. He had picked up
stories wherever he went, and he took great pleasure in reciting
them to me. He gave me fifteen at different visits, all very full and
accurate. He was an indifferent singer and made no attempt to act
out the story.

See 1a, 2b, 4, 21b, 22, 23, 30a, 31, 32a, 33, 38b, 65, 87b,
91, 92a, 95.

38. Pottinger, Henry, over 70. We were gathered one evening in his
son’s cottage near Claremont for story-telling when the old man
made his [294]appearance chanting a nonsense line as he came. It
seemed to be a kind of formal prelude to the occasion, but I could
not get the words.

See 103.

39. Pottinger, Richard, over 40. He was son to Henry, with a great
local reputation. A group gathered in his house two evenings after
work and told stories in turn as seemed to be the custom.

See 40a, 78c, 115.

40. Ramtalli, (Mrs.) about 30. She was of the better educated class,
from St. Mary’s parish, and wife of the East Indian school-master at
Maggotty.

See 39, 90.


41. Roach, David. He was at Lacovia with a company of strolling
players at Christmas-time, but he came from Savannah-la-mar.

See 43a, 79.

42. Robinson, Howard, from Retirement.

See 97b.

43. Roden, Mary Jane, over 80. She was bedridden. The cottage had
one room and the floor was partly broken through. Her daughter
was ironing, the little grandchild danced to the songs she crooned.

See 143, 144, 145.

44. Roe, Charles, aged 50, one of the Maroons.

See 28, 125.

45. Roe, Martha, aged 74, also a Maroon.

See 81, 82b.

46. Roe, Richard, aged 55, another Maroon.

See 139.

47. Samuels, Etheline, aged 14, from Claremont.

See 63.

48. Saunders, William, a lad employed at the hotel in Mandeville.

See 17b.
49. Smith, James. He belonged to the group who gathered at
Pottinger’s near Claremont, a younger, better educated man, who
claimed to be a “composer.”

See 113, 127b.

50. Spence, Henry, “over 50.” He was song-leader for the workmen
on the Bog estate in Westmoreland and recited some twenty stories
at two different interviews, all briefly and with wit.

See 10b, 12b, 41, 42, 43b, 47b, 92b (2), 118, 128.

51. Tathum, Clarence, aged 20, from Mandeville.

See 114, 116.

52. Thompson, Charles, aged 18, a Maroon.

See 32c.

53. Tomlinson, Florence, aged 54. She was formerly house-servant


on the Cornwall estate and was accustomed to entertain with stories
and dancing.

See 78b, 87c, 126.

54. Townsend, Alexander, over 65. He was father of the penman at


the Flamstead ranch and was invited up to the house on Christmas
afternoon to sing and tell stories.

See 100.

55. Tulloch, aged 22. He was from Higginstown and acted as


chauffeur at the hotel at St. Ann’s Bay.

See 17c. [295]


56. Vassel, Sarah, a girl employed on the Bog estate.

See 49, 131.

57. Watkins, Susan, aged 23, from Claremont.

See 13a, 147.

56. Watson, Ethel, aged 32. She told stories one morning while
tending her sick child at Roseberry Bush, in the Santa Cruz
Mountains.

See 13c.

59. White, Thomas, about 40. On my first visit to Maroon Town in


the cock-pit country, he was selected as the leading Maroon story-
teller to recite stories for me in the church vestry, where half the
town gathered as audience. Others he gave me at Harmony Hall.
The music he dictated to Miss Roberts at a later visit. He was one of
my best informants, though an adroit padder with an eye to
compensation.

See 5c, 66, 67, 68, 78a, 80, 82a, 83, 87a (note), 93, 96.

60. Williams, Alfred, his friend. He was the Maroon song-leader and,
with White, led the games and sports. A good singer, but an
indifferent story-teller.

See 40b (2), 60a, 72, 73a.

61. Williams, Ezekiel, aged 43. At the time of my first visit to


Harmony Hall, he was head-man on the estate. He was brought up
at Retirement, a big man, very black, timid through superstition, but
full of genuine delight in acting and music.
See 30b.

62. Williams, Thomas, about 70. He was a good entertainer, a man


of the old type, living near Harmony Hall.

See 56, 58, 107.

63. Witter, Oliver, a lad. He was a school-boy at Bethlehem, and


wrote out for me the text of six stories.

See 71b.

64. Wright, Charles, aged 44. He was one of the group at Harmony
Hall, but not a Maroon.

See 9.

65. Wright, Eliza, aged 30. From Maroon Town.

See 57b (1).

66. Wright, Samuel, aged 28, a Maroon.

See 53.
Colophon

Availability

This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.org ↗️.

This eBook is produced by the Online Distributed Proofreading Team


at www.pgdp.net ↗️.

The MP3 and MusicXML versions of the music in this book were
produced by Jude Eylander and other volunteers at PGDP.

Metadata

Title: Jamaica Anansi


stories
Author: Martha Warren Info
Beckwith https://viaf.org/viaf/24768395/
(1871–1959)
Contributor: Helen Heffron Info
Roberts (1888– https://viaf.org/viaf/17466936/
1985)
File generation 2024-01-16
date: 18:31:34 UTC
Language: English
Original 1924
publication
date:

Encoding
To help navigation of this text, links have been added between the
stories and the corresponding notes at the end of the work.

Internal references to the stories have been linked.

The words in the musical scores have been transcribed, and added
below the scores, to enable search and reading them through text-to-
speech processors.

Revision History

2023-11-02 Started.

Corrections

The following corrections have been applied to the text:

Page Source Correction Edit


distance
N.A. PUBLISHD PUBLISHED 1
xi,
199,
219,
219,
220,
228,
228,
228,
230,
243,
258,
266,
285,
293 [Not in source] . 1
xii cummunicating communicating 1
4 ’ ‘ 1
4, 40 [Not in source] ’ 1
6 Si-layna Si-lay-na 1
10 do do’ 1
14 whe who 1
15 Babbit Rabbit 1
16 runing running 1
17 him her 2
17 [Not in source] ‘ 1
19 Ramgoat Ram-goat 1
28 yellou yellow 1
33,
125,
134 ” [Deleted] 1
39, 39 BrudderHawk Brudder Hawk 1
49,
135,
181,
288,
288 [Not in source] “ 1
50,
104 is it 1
56 annodder anodder 1
56 repelition repetition 1
60 Saviour Savior 1
64,
142 an an’ 1
64 it’ it 1
64,
83,
96,
136,
137,
179 [Not in source] ” 1
69,
148,
180,
182 traveling travelling 1
72, 73 you you’ 1
72 , [Deleted] 1
73 Timon Simon 1
77 The Then 1
88 go’ go 1
91 fisch fish 1
96 jus ’as jus’ as 2
97 An An’ 1
107 ’ , 1
107 “ ” 1
111 heiferborn heifer born 1
112 comming coming 1
114 “ [Deleted] 1
118 poeple people 2
119 Agumme Agumma 1
122 t’-ay t’-day 1
124 comence commence 1
126 Grass-quitt Grass-quit 1
130 Bull-of all-the- Bull-of-all-the-
Land Land 1
131 se she 1
136 und and 1
136 exept except 1
138 trough through 1
138 chimmey chimney 1
142 evert’ing everyt’ing 1
143 ane and 1
151 th’ree t’ree 1
157 traveled travelled 1
169,
169,
169,
172,
196,
220 [Not in source] , 1
170 beats beasts 1
177 ’ [Deleted] 1
185,
189,
194 Seidl Seidel 1
186 Querries Queries 1
194,
201,
202,
211,
215 Welsh-Gipsy Welsh-Gypsy 1
196 tief t’ief 1
198 Welsh-gipsy Welsh-Gypsy 2
206 dogs dog’s 1
207 where were 1
209 kould could 1
210 .” ”. 2
211,
211 : . 1
212 canot cannot 1
213,
226 , . 1
224 Noth North 1
224,
224 Réné René 1/0
224 . , 1
225 Slave-Coast Slave Coast 1
225 and y 3
229 South-Carolina South Carolina 1
231,
235 : ; 1
231 New-Orleans New Orleans 1
233 of or 1
234 ) [Deleted] 1
234 dicussed discussed 1
237 , ; 1
239 beeing being 1
240 victem victim 1
240 ot of 1
241,
266,
279 Dennet Dennett 1
243 dis covers discovers 1
249 , : 1
256 ; , 1
262 — 1
264 88, 87 87 , 88 2
271 [Not in source] ; 1
273 gir’s girl’s 1
274 girls escape girl escapes 2
283 Crytal Crystal 1
292 85c 85b 1
*** END OF THE PROJECT GUTENBERG EBOOK JAMAICA ANANSI
STORIES ***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the


United States and most other parts of the world at no
cost and with almost no restrictions whatsoever. You may
copy it, give it away or re-use it under the terms of the
Project Gutenberg License included with this eBook or
online at www.gutenberg.org. If you are not located in
the United States, you will have to check the laws of the
country where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

1.F.4. Except for the limited right of replacement or refund set


forth in paragraph 1.F.3, this work is provided to you ‘AS-IS’,
WITH NO OTHER WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you
do or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.

You might also like