Skip to content

Instantly share code, notes, and snippets.

@bmoregeo
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmoregeo/6fc7549569a40ce0c72d to your computer and use it in GitHub Desktop.
Save bmoregeo/6fc7549569a40ce0c72d to your computer and use it in GitHub Desktop.
Python Config Files with ConfigObj
# Set values using the '='.
# Text will default to strings url = http://testing/arcgis/rest/awesometest/MapServer
# Unless it looks like an integer threads = 1
# or a floating point value = 510.128
# If you put brackets around something, that makes it
# a section. The text inside the bracket is the section header [data]
# To create a sub-section, just add another bracket.
# I like to tab these suckers out to make it legible.
name = "example"
bool = False
double = 1.1112
integer = 4
list = 'item one','item two','item three'
declare_list = 'only one item'
[[server]]
threads = 4
value = 10
[[features]]
polygons = http://testing/arcgis/rest/parcels/FeatureServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment