List of Example Files

Text

sample.txt

a one-line text file

sample1.txt/sample2.txt/sample3.txt

a one-line text file containing the text “Sample file [n]”

medium.txt (lorem_2.txt)

a 17-line 2-paragraph lorem text file

large.txt (lorem_5.txt)

a 42-line 5-paragraph lorem text file

multiply_doctests.txt

a text file containing doctests for multiply.py

Python

sample.py (hello.py)

a one-line python script

small.py (greet.py)

a five-line python script that defines and calls a function

medium.py (bank_account.py)

a 12-line python script that demonstrates how to create and use a class

multiply.py

a script with a function that contains doctests

CSV

sample.csv

a CSV file with two entries, each with two items

sample_num.csv

a CSV file with 4 numerical entries

fruits.csv (medium.csv)

a CSV file with a header and two entries

large.csv (iris.csv)

a classic dataset of iris flower measurements, with headers

Image

sample1.jpg

a 400x200 image

sample2.jpg

a 400x200 image

sample3.jpg

a 400x200 image

sample4.jpg

a 400x200 image of a black to white horizontal gradient

sample5.jpg

a 400x200 image with two 200x200 grey blocks

sample1.png

a 400x200 image

sample2.png

a 400x200 image

sample3.png

a 400x200 image

sample4.png

a 400x200 image of a black to white horizontal gradient

sample5.png

a 400x200 image with two 200x200 grey blocks

grid.png

a 400x200 grid image

e.png

a 300x300 image of a sans-serif letter 'e'

animation.gif

a 300x300 animated gif with 7 frames

Font

Helvetica.ttf

TrueType Helvetica sans-serif font

HTML

sample.html (hello.html)

a one-line HTML file

small.html (example.html)

a nine-line indented HTML file

kite.html

a nine-line indented HTML file with a link

medium.html

a 30-line HTML file containing various tags and attributes (created for use with BS4)

CSS

sample.css

a css file containing Meyer's css reset

XML

small.xml (sample.xml)

a 4-line XML file

medium.xml (fruits.xml)

a 10-line XML file of fruits

large.xml (books.xml)

a sample XML book catalog

JSON

sample.json

a sample JSON file with two entries

Sqlite

users.db

contains a users table that has 100 randomly generated users

points.db

an empty database of columns id and value, where value has a custom type point

Config

sample.conf

a simple config file with font settings, used for Python's ConfigParser

Shelve

test.dir, test.dat

a simple key-value pair Python shelve database

reStructuredText

sample.rst

a sample reStructuredText file with some example markups

Excel

sample1.xls

a sample excel file with a header row and 2 data rows.

Django

django_minimal/

a minimal Django project (directory)

django_blog/

a Django project with one minimal "blog" app (directory)

django_models/

a Django project with models (directory)

django_models_relationships/

a Django project with models and relationships (directory)