├── setup.cfg ├── .gitignore ├── Pipfile ├── docs ├── conf.py ├── Makefile └── index.md ├── README.md ├── .github └── workflows │ ├── docs.yml │ └── continuous-deployment.yml ├── setup.py ├── test.py ├── googlegeocoder └── __init__.py ├── Pipfile.lock └── LICENSE /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 121 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | *.egg-info 3 | .coverage 4 | MANIFEST 5 | build/ 6 | dist/ 7 | .tox/ 8 | *.pyc 9 | 10 | .idea/* 11 | -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | url = "https://pypi.org/simple" 3 | verify_ssl = true 4 | name = "pypi" 5 | 6 | [packages] 7 | 8 | [dev-packages] 9 | twine = "*" 10 | setuptools-scm = "*" 11 | flake8 = "*" 12 | sphinx = "*" 13 | sphinx-palewire-theme = "*" 14 | myst-parser = "*" 15 | 16 | [requires] 17 | python_version = "3.11" 18 | -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- 1 | """Configure Sphinx configuration.""" 2 | import os 3 | import sys 4 | from datetime import datetime 5 | 6 | # Insert the parent directory into the path 7 | sys.path.insert(0, os.path.abspath("..")) 8 | 9 | extensions = [ 10 | "myst_parser", 11 | ] 12 | source_suffix = ".md" 13 | master_doc = "index" 14 | 15 | project = "python-googlegeocoder" 16 | year = datetime.now().year 17 | copyright = f"{year} palewire" 18 | 19 | exclude_patterns = ["_build"] 20 | 21 | html_theme = "palewire" 22 | html_sidebars = {} 23 | html_theme_options = { 24 | "canonical_url": f"https://palewi.re/docs/{project}/", 25 | "nosidebar": True, 26 | } 27 | pygments_style = "sphinx" 28 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | 22 | livehtml: 23 | sphinx-autobuild -b html $(SOURCEDIR) $(BUILDDIR)/html 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Features 2 | 3 | * Submit an address and have it geocoded 4 | * Submit a lat/lng pair and have it reverse-geocoded 5 | * Results include all data returned by Google, including formatted address, location, viewport, bounds, address type and address components 6 | * Bias results to a bounding box you provide 7 | * Bias results to a region you specify by country code 8 | * Specify a language code 9 | * Results automatically converted to WKT format 10 | 11 | ## Other resources 12 | 13 | * Docs: [palewi.re/docs/python-googlegeocoder/](https://palewi.re/docs/python-googlegeocoder/) 14 | * Issues: [github.com/datadesk/python-googlegeocoder/issues](https://github.com/datadesk/python-googlegeocoder/issues) 15 | * Packaging: [pypi.python.org/pypi/python-googlegeocoder](https://pypi.python.org/pypi/python-googlegeocoder) 16 | * Testing: [travis-ci.org/datadesk/python-googlegeocoder](https://travis-ci.org/datadesk/python-googlegeocoder) 17 | * Coverage: [coveralls.io/r/datadesk/python-googlegeocoder](https://coveralls.io/r/datadesk/python-googlegeocoder) 18 | -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- 1 | name: Documentation 2 | 3 | on: 4 | push: 5 | workflow_dispatch: 6 | 7 | concurrency: 8 | group: ${{ github.workflow }}-${{ github.ref }} 9 | cancel-in-progress: true 10 | 11 | jobs: 12 | build: 13 | name: Build 14 | runs-on: ubuntu-latest 15 | steps: 16 | - id: checkout 17 | name: Checkout 18 | uses: actions/checkout@v4 19 | 20 | - id: setup-python 21 | name: Setup Python 22 | uses: actions/setup-python@v5 23 | with: 24 | python-version: '3.11' 25 | cache: 'pipenv' 26 | 27 | - id: install-pipenv 28 | name: Install pipenv 29 | run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python 30 | shell: bash 31 | 32 | - id: install-python-dependencies 33 | name: Install Python dependencies 34 | run: pipenv sync --dev 35 | shell: bash 36 | 37 | - id: build-sphinx-documentation 38 | name: Build Sphinx documentation 39 | run: pipenv run make html 40 | shell: bash 41 | working-directory: docs 42 | 43 | - id: upload-release-candidate 44 | name: Upload release candidate 45 | uses: actions/upload-artifact@v4 46 | with: 47 | name: release-candidate 48 | path: ./docs/_build/html/ 49 | 50 | deploy: 51 | name: Deploy 52 | runs-on: ubuntu-latest 53 | needs: build 54 | if: ${{ github.ref_name == 'main' }} 55 | steps: 56 | - name: Download release candidate 57 | uses: actions/download-artifact@v4 58 | with: 59 | name: release-candidate 60 | path: ./docs/ 61 | 62 | - id: configure-aws 63 | name: Configure AWS Credentials 64 | uses: aws-actions/configure-aws-credentials@v4 65 | with: 66 | aws-access-key-id: ${{ secrets.PALEWIRE_DOCS_AWS_ACCESS_KEY_ID }} 67 | aws-secret-access-key: ${{ secrets.PALEWIRE_DOCS_AWS_SECRET_ACCESS_KEY }} 68 | aws-region: us-east-1 69 | 70 | - id: upload-to-s3 71 | name: Upload documentation to Amazon S3 72 | uses: datadesk/delivery-deploy-action@v1 73 | with: 74 | bucket: ${{ secrets.PALEWIRE_DOCS_AWS_BUCKET }} 75 | base-path: python-googlegeocoder/ 76 | dir: ./docs/ 77 | should-cache: false 78 | use-accelerate-endpoint: false 79 | public: true 80 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | """Package and release the module.""" 2 | import os 3 | 4 | from setuptools import setup 5 | 6 | 7 | def read(file_name): 8 | """Read the provided file.""" 9 | this_dir = os.path.dirname(__file__) 10 | file_path = os.path.join(this_dir, file_name) 11 | with open(file_path) as f: 12 | return f.read() 13 | 14 | 15 | def version_scheme(version): 16 | """Version scheme hack for setuptools_scm. 17 | 18 | Appears to be necessary to due to the bug documented here: https://github.com/pypa/setuptools_scm/issues/342 19 | If that issue is resolved, this method can be removed. 20 | """ 21 | import time 22 | 23 | from setuptools_scm.version import guess_next_version 24 | 25 | if version.exact: 26 | return version.format_with("{tag}") 27 | else: 28 | _super_value = version.format_next_version(guess_next_version) 29 | now = int(time.time()) 30 | return _super_value + str(now) 31 | 32 | 33 | def local_version(version): 34 | """Local version scheme hack for setuptools_scm. 35 | 36 | Appears to be necessary to due to the bug documented here: https://github.com/pypa/setuptools_scm/issues/342 37 | If that issue is resolved, this method can be removed. 38 | """ 39 | return "" 40 | 41 | 42 | setup( 43 | name='python-googlegeocoder', 44 | description="A simple Python wrapper for Google’s geocoder API", 45 | long_description=read("README.md"), 46 | long_description_content_type="text/markdown", 47 | author='Ben Welsh', 48 | author_email='b@palewi.re', 49 | url='http://palewi.re/docs/python-googlegeocoder', 50 | license="GPL", 51 | packages=( 52 | "googlegeocoder", 53 | ), 54 | classifiers=[ 55 | "Development Status :: 5 - Production/Stable", 56 | "Programming Language :: Python", 57 | "Programming Language :: Python :: 3", 58 | "Programming Language :: Python :: 3.9", 59 | "Programming Language :: Python :: 3.10", 60 | "Programming Language :: Python :: 3.11", 61 | "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", 62 | ], 63 | setup_requires=["setuptools_scm"], 64 | use_scm_version={"version_scheme": version_scheme, "local_scheme": local_version}, 65 | project_urls={ 66 | "Documentation": "http://palewi.re/docs/python-googlegeocoder", 67 | "Source": "https://github.com/palewire/python-googlegeocoder", 68 | "Tracker": "https://github.com/palewire/python-googlegeocoder/issues", 69 | }, 70 | ) 71 | -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | import unittest 4 | from googlegeocoder import * 5 | 6 | 7 | class BaseTest(unittest.TestCase): 8 | 9 | def setUp(self): 10 | self.geocoder = GoogleGeocoder() 11 | 12 | class GoogleTest(BaseTest): 13 | 14 | def test_address(self): 15 | result = self.geocoder.get("Winnetka") 16 | self.assertEqual(type(result[0]), GeocoderResult) 17 | 18 | def test_latlng(self): 19 | result = self.geocoder.get((34.236144,-118.500938)) 20 | self.assertEqual(len(result), 10) 21 | self.assertRaises( 22 | ValueError, 23 | self.geocoder.get, 24 | (('a','b','c')) 25 | ) 26 | 27 | def test_result_attributes(self): 28 | result = self.geocoder.get("Winnetka")[0] 29 | self.assertEqual(type(result.address_components), type([])) 30 | [self.assertEqual(type(i), AddressComponent) for i in result.address_components] 31 | [self.assertEqual(type(i.long_name), type(u"")) for i in result.address_components] 32 | [self.assertEqual(type(i.short_name), type(u"")) for i in result.address_components] 33 | [self.assertEqual(type(i.types), type([])) for i in result.address_components] 34 | self.assertEqual(type(result.formatted_address), type(u"")) 35 | self.assertEqual(type(result.types), type([])) 36 | self.assertEqual(type(result.geometry), Geometry) 37 | self.assertEqual(type(result.geometry.location), Coordinates) 38 | self.assertEqual(type(result.geometry.location_type), type(u"")) 39 | self.assertEqual(type(result.geometry.viewport), Bounds) 40 | self.assertEqual(type(result.geometry.bounds), Bounds) 41 | self.assertTrue(isinstance(result.geometry.partial_match, bool)) 42 | self.assertEqual(type(result.geometry.partial_match), type(True)) 43 | self.assertTrue(result.geometry.location.wkt.startswith('POINT(-87')) 44 | result.__str__() 45 | result.__repr__() 46 | result.__unicode__() 47 | result.address_components[0].__unicode__() 48 | result.geometry.__str__() 49 | result.geometry.__repr__() 50 | result.geometry.__unicode__() 51 | result.geometry.bounds.__str__() 52 | result.geometry.bounds.__repr__() 53 | result.geometry.bounds.__unicode__() 54 | 55 | def test_viewport_bias(self): 56 | result = self.geocoder.get("Winnetka", 57 | bounding_box=((34.172684,-118.604794), (34.236144,-118.500938))) 58 | self.assertEqual(result[0].formatted_address, 59 | u'Winnetka, Los Angeles, CA, USA') 60 | self.assertRaises( 61 | ValueError, 62 | self.geocoder.get, 63 | "Winnetka", 64 | bounding_box=(1,2,3) 65 | ) 66 | 67 | def test_region_bias(self): 68 | result = self.geocoder.get("Toledo", region='ES') 69 | self.assertEqual(result[0].formatted_address, u'Toledo, Spain') 70 | 71 | def test_language(self): 72 | result = self.geocoder.get('Moscow', language='ru') 73 | self.assertEqual(result[0].formatted_address, u'Москва, Россия') 74 | 75 | 76 | if __name__ == '__main__': 77 | unittest.main() 78 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | # python-googlegeocoder 2 | 3 | A simple Python wrapper for Google’s geocoder API 4 | 5 | ## Features 6 | 7 | * Submit an address and have it geocoded 8 | * Submit a lat/lng pair and have it reverse-geocoded 9 | * Results include all data returned by Google, including formatted address, location, viewport, bounds, address type and address components 10 | * Bias results to a bounding box you provide 11 | * Bias results to a region you specify by country code 12 | * Specify a language code 13 | * Results automatically converted to WKT format 14 | 15 | ## Getting started 16 | 17 | Installation 18 | 19 | ```bash 20 | pip install python-googlegeocoder 21 | ``` 22 | 23 | Geocoding an address 24 | 25 | ```python 26 | from googlegeocoder import GoogleGeocoder 27 | geocoder = GoogleGeocoder("") 28 | search = geocoder.get("Watts Towers") 29 | search 30 | [] 31 | search[0].geometry.location 32 | 33 | print (search[0].geometry.location.lat, search[0].geometry.location.lng) 34 | (33.9395164, -118.2414404) 35 | ``` 36 | 37 | Reverse geocoding coordinates 38 | 39 | ```python 40 | reverse = geocoder.get((33.9395164, -118.2414404)) 41 | reverse 42 | [, , , , , , , , ] 43 | ``` 44 | 45 | Viewport biasing 46 | 47 | ```python 48 | before = geocoder.get("Winnetka") 49 | before[0] 50 | 51 | after = geocoder.get("Winnetka", bounding_box=((34.172684,-118.604794), (34.236144,-118.500938))) 52 | after[0] 53 | 54 | ``` 55 | 56 | Region biasing 57 | 58 | ```python 59 | before = geocoder.get("Toledo") 60 | before[0] 61 | 62 | after = geocoder.get("Toledo", region="ES") 63 | after[0] 64 | 65 | ``` 66 | 67 | Loop through a list of addresses and print out latitude, longitude and location type of the first result. 68 | 69 | ```python 70 | from googlegeocoder import GoogleGeocoder 71 | geocoder = GoogleGeocoder() 72 | list_of_addresses = [ 73 | '1727 E 107th St, Los Angeles, CA', 74 | '317 Broadway, Los Angeles, CA' 75 | ] 76 | for address in list_of_addresses: 77 | try: 78 | search = geocoder.get(address) 79 | except ValueError: 80 | continue 81 | first_result = search[0] 82 | output = [ 83 | first_result.formatted_address, 84 | first_result.geometry.location.lat, 85 | first_result.geometry.location.lng, 86 | first_result.geometry.location_type 87 | ] 88 | print map(str, output) 89 | ``` 90 | 91 | ## Other resources 92 | 93 | * Repo: [https://github.com/datadesk/python-googlegeocoder](https://github.com/datadesk/python-googlegeocoder) 94 | * Issues: [https://github.com/datadesk/python-googlegeocoder/issues](https://github.com/datadesk/python-googlegeocoder/issues) 95 | * Packaging: [https://pypi.python.org/pypi/python-googlegeocoder](https://pypi.python.org/pypi/python-googlegeocoder) 96 | * [Google's official documentation](http://code.google.com/apis/maps/documentation/geocoding/) 97 | -------------------------------------------------------------------------------- /.github/workflows/continuous-deployment.yml: -------------------------------------------------------------------------------- 1 | name: Continuous Deployment 2 | 3 | on: 4 | push: 5 | pull_request: 6 | workflow_dispatch: 7 | 8 | env: 9 | GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }} 10 | 11 | jobs: 12 | lint-python: 13 | name: Lint Python code 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout 17 | uses: actions/checkout@v4 18 | 19 | - uses: actions/setup-python@v5 20 | with: 21 | python-version: '3.11' 22 | cache: 'pipenv' 23 | 24 | - name: Install pipenv 25 | run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python 26 | 27 | - id: pipenv-install 28 | name: Install Python dependencies 29 | run: pipenv sync --dev 30 | 31 | - id: lint 32 | name: Lint 33 | run: pipenv run flake8 ./googlegeocoder 34 | 35 | test-python: 36 | strategy: 37 | matrix: 38 | python: ['3.9', '3.10', '3.11'] 39 | name: Test 40 | runs-on: ubuntu-latest 41 | steps: 42 | - name: Checkout 43 | uses: actions/checkout@v4 44 | 45 | - uses: actions/setup-python@v5 46 | with: 47 | python-version: ${{ matrix.python }} 48 | cache: 'pipenv' 49 | 50 | - name: Install pipenv 51 | run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python 52 | 53 | - id: pipenv-install 54 | name: Install Python dependencies 55 | run: pipenv install --dev --python `which python` 56 | 57 | - id: run 58 | name: Run tests 59 | run: pipenv run python test.py 60 | shell: bash 61 | 62 | test-build: 63 | name: Build Python package 64 | runs-on: ubuntu-latest 65 | needs: [test-python] 66 | steps: 67 | - name: Checkout 68 | uses: actions/checkout@v4 69 | 70 | - uses: actions/setup-python@v5 71 | with: 72 | python-version: '3.11' 73 | cache: 'pipenv' 74 | 75 | - name: Install pipenv 76 | run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python 77 | 78 | - id: pipenv-install 79 | name: Install Python dependencies 80 | run: pipenv sync --dev 81 | 82 | - id: build 83 | name: Build release 84 | run: | 85 | pipenv run python setup.py sdist 86 | pipenv run python setup.py bdist_wheel 87 | 88 | - id: check 89 | name: Check release 90 | run: pipenv run twine check dist/* 91 | 92 | - id: save 93 | name: Save artifact 94 | uses: actions/upload-artifact@v4 95 | with: 96 | name: test-release-${{ github.run_number }} 97 | path: ./dist 98 | if-no-files-found: error 99 | 100 | tag-release: 101 | name: Tagged PyPI release 102 | runs-on: ubuntu-latest 103 | needs: [test-build] 104 | if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') 105 | steps: 106 | - id: fetch 107 | name: Fetch artifact 108 | uses: actions/download-artifact@v4 109 | with: 110 | name: test-release-${{ github.run_number }} 111 | path: ./dist 112 | 113 | - id: publish 114 | name: Publish release 115 | uses: pypa/gh-action-pypi-publish@release/v1 116 | with: 117 | user: __token__ 118 | password: ${{ secrets.PYPI_API_TOKEN }} 119 | verbose: true 120 | verify_metadata: false 121 | -------------------------------------------------------------------------------- /googlegeocoder/__init__.py: -------------------------------------------------------------------------------- 1 | """A simple Python wrapper on version 3 of Google's geocoder API.""" 2 | import os 3 | import json 4 | import urllib.parse 5 | import urllib.request 6 | 7 | 8 | class GoogleGeocoder(object): 9 | """A simple wrapper on version 3 of Google's geocoder API.""" 10 | BASE_URI = 'https://maps.googleapis.com/maps/api/geocode/json' 11 | 12 | def __init__(self, key=None): 13 | key = key or os.getenv("GOOGLE_MAPS_API_KEY") 14 | if not key: 15 | raise Exception("An API key is required by Google.") 16 | self.key = key 17 | 18 | def _fetch_json(self, params): 19 | """Configure a HTTP request, fire it off and return the response.""" 20 | params = urllib.parse.urlencode(params, doseq=True) 21 | request = urllib.request.Request(self.BASE_URI + "?" + params) 22 | response = urllib.request.urlopen(request) 23 | return json.loads(response.read().decode("utf-8")) 24 | 25 | def get(self, submission, sensor='false', bounding_box=None, region=None, 26 | language=None): 27 | params = { 28 | 'sensor': sensor, 29 | 'key': self.key 30 | } 31 | if isinstance(submission, str): 32 | params['address'] = submission 33 | elif len(submission) == 2: 34 | params['latlng'] = ",".join(map(str, submission)) 35 | else: 36 | raise ValueError("Your submission could not be parsed.") 37 | if bounding_box: 38 | if len(bounding_box) != 2: 39 | raise ValueError("You have submitted a bad bounding box.") 40 | # ... then tack it on the end. 41 | params['bounds'] = "%s,%s|%s,%s" % ( 42 | bounding_box[0][0], bounding_box[0][1], 43 | bounding_box[1][0], bounding_box[1][1] 44 | ) 45 | if region: 46 | params['region'] = region 47 | if language: 48 | params['language'] = language 49 | data = self._fetch_json(params) 50 | if data['status'] != "OK": 51 | raise ValueError(data["status"]) 52 | return [GeocoderResult(i) for i in data.get("results")] 53 | 54 | 55 | class UnicodeMixin(object): 56 | """Mixin class to handle defining the proper __str__/__unicode__ methods in Python 2 or 3.""" 57 | def __str__(self): 58 | return self.__unicode__() 59 | 60 | 61 | class BaseAPIObject(UnicodeMixin): 62 | """A generic object to be returned by the API.""" 63 | def __init__(self, d): 64 | self.__dict__ = d 65 | 66 | def __repr__(self): 67 | return '<%s: %s>' % (self.__class__.__name__, self.__str__()) 68 | 69 | 70 | class GeocoderResult(BaseAPIObject): 71 | """A results objects returned by the API. 72 | 73 | Contains the following attributes: 74 | 75 | formatted_address: A string containing the human-readable address of 76 | this location. Often this address is equivalent to the 77 | "postal address," which sometimes differs from country to country 78 | 79 | types: A list that indicates the type of the returned result. This 80 | array contains a set of one or more tags identifying the type of 81 | feature returned in the result. For example, a geocode of "Chicago" 82 | returns "locality" which indicates that "Chicago" is a city, and 83 | also returns "political" which indicates it is a political entity. 84 | 85 | address_components: A list of the different parts of the address 86 | as AddressComponent class objects 87 | 88 | geometry: A collection of geometric data about the result, packaged 89 | as a Geoometry class object 90 | """ 91 | def __init__(self, d): 92 | self.__dict__ = d 93 | self.address_components = [ 94 | AddressComponent(i) for i in self.address_components 95 | ] 96 | self.geometry = Geometry(self.geometry) 97 | 98 | def __unicode__(self): 99 | return u'%s' % self.formatted_address 100 | 101 | 102 | class AddressComponent(BaseAPIObject): 103 | """A piece of an address returned by the API 104 | 105 | Contains the following attributes: 106 | 107 | long_name: The full text description or name of the address component 108 | as returned by the Geocoder. 109 | 110 | short_name: is an abbreviated textual name for the address component, 111 | if available. For example, an address component for the state of 112 | Alaska may have a long_name of "Alaska" and a short_name of "AK" 113 | using the 2-letter postal abbreviation 114 | 115 | type: A list indicating the type(s) of the address component. 116 | """ 117 | def __unicode__(self): 118 | return u'%s' % self.long_name 119 | 120 | 121 | class Geometry(BaseAPIObject): 122 | """A collection of geometric data about a geocoder result. 123 | 124 | Contains the following attributes: 125 | 126 | location: The geocoded latitude and longitude as a Coordinate object. 127 | 128 | location_type: Additional meta data about the location, could be: 129 | "ROOFTOP", "RANGE_INTERPOLATED", "GEOMETRIC_CENTER", "APPROXIMATE" 130 | 131 | viewport: The recommended viewport for the returned result, returned as 132 | a Bounds class object. 133 | 134 | bounds: The bounding box that fully contains the result 135 | but may be bigger than the recommended viewport. 136 | 137 | partial_match: Indicates that the geocoder did not return an exact 138 | match for the original request, though it did match part of the 139 | requested address 140 | """ 141 | def __init__(self, d): 142 | self.__dict__ = d 143 | if hasattr(self, "bounds"): 144 | self.bounds = Bounds(self.bounds) 145 | else: 146 | self.bounds = None 147 | self.viewport = Bounds(self.viewport) 148 | self.location = Coordinates(self.location) 149 | self.partial_match = hasattr(self, "partial_match") 150 | 151 | def __repr__(self): 152 | return '<%s>' % (self.__class__.__name__) 153 | 154 | def __unicode__(self): 155 | return u'Geometry' 156 | 157 | 158 | class Bounds(BaseAPIObject): 159 | """A bounding box that contains the `southwest` and `northeast` corners as lnt/lng pairs.""" 160 | def __init__(self, d): 161 | self.__dict__ = d 162 | self.southwest = Coordinates(self.southwest) 163 | self.northeast = Coordinates(self.northeast) 164 | 165 | def __unicode__(self): 166 | return u'(%s, %s)' % (self.southwest, self.northeast) 167 | 168 | 169 | class Coordinates(BaseAPIObject): 170 | """A lat/lng pair.""" 171 | def __unicode__(self): 172 | return u'(%s, %s)' % (self.lat, self.lng) 173 | 174 | @property 175 | def wkt(self): 176 | return 'POINT(%s %s)' % (self.lng, self.lat) 177 | -------------------------------------------------------------------------------- /Pipfile.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_meta": { 3 | "hash": { 4 | "sha256": "3a0e7d1f0250bfac283087791b0a2e5cfff64038574d5e67d1a2fae5eed2104b" 5 | }, 6 | "pipfile-spec": 6, 7 | "requires": { 8 | "python_version": "3.11" 9 | }, 10 | "sources": [ 11 | { 12 | "name": "pypi", 13 | "url": "https://pypi.org/simple", 14 | "verify_ssl": true 15 | } 16 | ] 17 | }, 18 | "default": {}, 19 | "develop": { 20 | "alabaster": { 21 | "hashes": [ 22 | "sha256:1ee19aca801bbabb5ba3f5f258e4422dfa86f82f3e9cefb0859b283cdd7f62a3", 23 | "sha256:a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2" 24 | ], 25 | "markers": "python_version >= '3.6'", 26 | "version": "==0.7.13" 27 | }, 28 | "babel": { 29 | "hashes": [ 30 | "sha256:6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363", 31 | "sha256:efb1a25b7118e67ce3a259bed20545c29cb68be8ad2c784c83689981b7a57287" 32 | ], 33 | "markers": "python_version >= '3.7'", 34 | "version": "==2.14.0" 35 | }, 36 | "certifi": { 37 | "hashes": [ 38 | "sha256:9b469f3a900bf28dc19b8cfbf8019bf47f7fdd1a65a1d4ffb98fc14166beb4d1", 39 | "sha256:e036ab49d5b79556f99cfc2d9320b34cfbe5be05c5871b51de9329f0603b0474" 40 | ], 41 | "markers": "python_version >= '3.6'", 42 | "version": "==2023.11.17" 43 | }, 44 | "charset-normalizer": { 45 | "hashes": [ 46 | "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027", 47 | "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087", 48 | "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786", 49 | "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8", 50 | "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09", 51 | "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185", 52 | "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574", 53 | "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e", 54 | "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519", 55 | "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898", 56 | "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269", 57 | "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3", 58 | "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f", 59 | "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6", 60 | "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8", 61 | "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a", 62 | "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73", 63 | "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc", 64 | "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714", 65 | "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2", 66 | "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc", 67 | "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce", 68 | "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d", 69 | "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e", 70 | "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6", 71 | "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269", 72 | "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96", 73 | "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d", 74 | "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a", 75 | "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4", 76 | "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77", 77 | "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d", 78 | "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0", 79 | "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed", 80 | "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068", 81 | "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac", 82 | "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25", 83 | "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8", 84 | "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab", 85 | "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26", 86 | "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2", 87 | "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db", 88 | "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f", 89 | "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5", 90 | "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99", 91 | "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c", 92 | "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d", 93 | "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811", 94 | "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa", 95 | "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a", 96 | "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03", 97 | "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b", 98 | "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04", 99 | "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c", 100 | "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001", 101 | "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458", 102 | "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389", 103 | "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99", 104 | "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985", 105 | "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537", 106 | "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238", 107 | "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f", 108 | "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d", 109 | "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796", 110 | "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a", 111 | "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143", 112 | "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8", 113 | "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c", 114 | "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5", 115 | "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5", 116 | "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711", 117 | "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4", 118 | "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6", 119 | "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c", 120 | "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7", 121 | "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4", 122 | "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b", 123 | "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae", 124 | "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12", 125 | "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c", 126 | "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae", 127 | "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8", 128 | "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887", 129 | "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b", 130 | "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4", 131 | "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f", 132 | "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5", 133 | "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33", 134 | "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519", 135 | "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561" 136 | ], 137 | "markers": "python_full_version >= '3.7.0'", 138 | "version": "==3.3.2" 139 | }, 140 | "docutils": { 141 | "hashes": [ 142 | "sha256:96f387a2c5562db4476f09f13bbab2192e764cac08ebbf3a34a95d9b1e4a59d6", 143 | "sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b" 144 | ], 145 | "markers": "python_version >= '3.7'", 146 | "version": "==0.20.1" 147 | }, 148 | "flake8": { 149 | "hashes": [ 150 | "sha256:33f96621059e65eec474169085dc92bf26e7b2d47366b70be2f67ab80dc25132", 151 | "sha256:a6dfbb75e03252917f2473ea9653f7cd799c3064e54d4c8140044c5c065f53c3" 152 | ], 153 | "index": "pypi", 154 | "markers": "python_full_version >= '3.8.1'", 155 | "version": "==7.0.0" 156 | }, 157 | "idna": { 158 | "hashes": [ 159 | "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca", 160 | "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f" 161 | ], 162 | "markers": "python_version >= '3.5'", 163 | "version": "==3.6" 164 | }, 165 | "imagesize": { 166 | "hashes": [ 167 | "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b", 168 | "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a" 169 | ], 170 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", 171 | "version": "==1.4.1" 172 | }, 173 | "importlib-metadata": { 174 | "hashes": [ 175 | "sha256:4805911c3a4ec7c3966410053e9ec6a1fecd629117df5adee56dfc9432a1081e", 176 | "sha256:f238736bb06590ae52ac1fab06a3a9ef1d8dce2b7a35b5ab329371d6c8f5d2cc" 177 | ], 178 | "markers": "python_version >= '3.8'", 179 | "version": "==7.0.1" 180 | }, 181 | "jaraco.classes": { 182 | "hashes": [ 183 | "sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb", 184 | "sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621" 185 | ], 186 | "markers": "python_version >= '3.8'", 187 | "version": "==3.3.0" 188 | }, 189 | "jinja2": { 190 | "hashes": [ 191 | "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852", 192 | "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61" 193 | ], 194 | "markers": "python_version >= '3.7'", 195 | "version": "==3.1.2" 196 | }, 197 | "keyring": { 198 | "hashes": [ 199 | "sha256:4446d35d636e6a10b8bce7caa66913dd9eca5fd222ca03a3d42c38608ac30836", 200 | "sha256:e730ecffd309658a08ee82535a3b5ec4b4c8669a9be11efb66249d8e0aeb9a25" 201 | ], 202 | "markers": "python_version >= '3.8'", 203 | "version": "==24.3.0" 204 | }, 205 | "markdown-it-py": { 206 | "hashes": [ 207 | "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", 208 | "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb" 209 | ], 210 | "markers": "python_version >= '3.8'", 211 | "version": "==3.0.0" 212 | }, 213 | "markupsafe": { 214 | "hashes": [ 215 | "sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e", 216 | "sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e", 217 | "sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431", 218 | "sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686", 219 | "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c", 220 | "sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559", 221 | "sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc", 222 | "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb", 223 | "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939", 224 | "sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c", 225 | "sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0", 226 | "sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4", 227 | "sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9", 228 | "sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575", 229 | "sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba", 230 | "sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d", 231 | "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd", 232 | "sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3", 233 | "sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00", 234 | "sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155", 235 | "sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac", 236 | "sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52", 237 | "sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f", 238 | "sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8", 239 | "sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b", 240 | "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007", 241 | "sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24", 242 | "sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea", 243 | "sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198", 244 | "sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0", 245 | "sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee", 246 | "sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be", 247 | "sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2", 248 | "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1", 249 | "sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707", 250 | "sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6", 251 | "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c", 252 | "sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58", 253 | "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823", 254 | "sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779", 255 | "sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636", 256 | "sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c", 257 | "sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad", 258 | "sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee", 259 | "sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc", 260 | "sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2", 261 | "sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48", 262 | "sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7", 263 | "sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e", 264 | "sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b", 265 | "sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa", 266 | "sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5", 267 | "sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e", 268 | "sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb", 269 | "sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9", 270 | "sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57", 271 | "sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc", 272 | "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc", 273 | "sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2", 274 | "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11" 275 | ], 276 | "markers": "python_version >= '3.7'", 277 | "version": "==2.1.3" 278 | }, 279 | "mccabe": { 280 | "hashes": [ 281 | "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325", 282 | "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e" 283 | ], 284 | "markers": "python_version >= '3.6'", 285 | "version": "==0.7.0" 286 | }, 287 | "mdit-py-plugins": { 288 | "hashes": [ 289 | "sha256:b51b3bb70691f57f974e257e367107857a93b36f322a9e6d44ca5bf28ec2def9", 290 | "sha256:d8ab27e9aed6c38aa716819fedfde15ca275715955f8a185a8e1cf90fb1d2c1b" 291 | ], 292 | "markers": "python_version >= '3.8'", 293 | "version": "==0.4.0" 294 | }, 295 | "mdurl": { 296 | "hashes": [ 297 | "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", 298 | "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba" 299 | ], 300 | "markers": "python_version >= '3.7'", 301 | "version": "==0.1.2" 302 | }, 303 | "more-itertools": { 304 | "hashes": [ 305 | "sha256:626c369fa0eb37bac0291bce8259b332fd59ac792fa5497b59837309cd5b114a", 306 | "sha256:64e0735fcfdc6f3464ea133afe8ea4483b1c5fe3a3d69852e6503b43a0b222e6" 307 | ], 308 | "markers": "python_version >= '3.8'", 309 | "version": "==10.1.0" 310 | }, 311 | "myst-parser": { 312 | "hashes": [ 313 | "sha256:7c36344ae39c8e740dad7fdabf5aa6fc4897a813083c6cc9990044eb93656b14", 314 | "sha256:ea929a67a6a0b1683cdbe19b8d2e724cd7643f8aa3e7bb18dd65beac3483bead" 315 | ], 316 | "index": "pypi", 317 | "markers": "python_version >= '3.8'", 318 | "version": "==2.0.0" 319 | }, 320 | "nh3": { 321 | "hashes": [ 322 | "sha256:0d02d0ff79dfd8208ed25a39c12cbda092388fff7f1662466e27d97ad011b770", 323 | "sha256:3277481293b868b2715907310c7be0f1b9d10491d5adf9fce11756a97e97eddf", 324 | "sha256:3b803a5875e7234907f7d64777dfde2b93db992376f3d6d7af7f3bc347deb305", 325 | "sha256:427fecbb1031db085eaac9931362adf4a796428ef0163070c484b5a768e71601", 326 | "sha256:5f0d77272ce6d34db6c87b4f894f037d55183d9518f948bba236fe81e2bb4e28", 327 | "sha256:60684857cfa8fdbb74daa867e5cad3f0c9789415aba660614fe16cd66cbb9ec7", 328 | "sha256:6f42f99f0cf6312e470b6c09e04da31f9abaadcd3eb591d7d1a88ea931dca7f3", 329 | "sha256:86e447a63ca0b16318deb62498db4f76fc60699ce0a1231262880b38b6cff911", 330 | "sha256:8d595df02413aa38586c24811237e95937ef18304e108b7e92c890a06793e3bf", 331 | "sha256:9c0d415f6b7f2338f93035bba5c0d8c1b464e538bfbb1d598acd47d7969284f0", 332 | "sha256:a5167a6403d19c515217b6bcaaa9be420974a6ac30e0da9e84d4fc67a5d474c5", 333 | "sha256:ac19c0d68cd42ecd7ead91a3a032fdfff23d29302dbb1311e641a130dfefba97", 334 | "sha256:b1e97221cedaf15a54f5243f2c5894bb12ca951ae4ddfd02a9d4ea9df9e1a29d", 335 | "sha256:bc2d086fb540d0fa52ce35afaded4ea526b8fc4d3339f783db55c95de40ef02e", 336 | "sha256:d1e30ff2d8d58fb2a14961f7aac1bbb1c51f9bdd7da727be35c63826060b0bf3", 337 | "sha256:f3b53ba93bb7725acab1e030bc2ecd012a817040fd7851b332f86e2f9bb98dc6" 338 | ], 339 | "version": "==0.2.15" 340 | }, 341 | "packaging": { 342 | "hashes": [ 343 | "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5", 344 | "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7" 345 | ], 346 | "markers": "python_version >= '3.7'", 347 | "version": "==23.2" 348 | }, 349 | "pkginfo": { 350 | "hashes": [ 351 | "sha256:4b7a555a6d5a22169fcc9cf7bfd78d296b0361adad412a346c1226849af5e546", 352 | "sha256:8fd5896e8718a4372f0ea9cc9d96f6417c9b986e23a4d116dda26b62cc29d046" 353 | ], 354 | "markers": "python_version >= '3.6'", 355 | "version": "==1.9.6" 356 | }, 357 | "pycodestyle": { 358 | "hashes": [ 359 | "sha256:41ba0e7afc9752dfb53ced5489e89f8186be00e599e712660695b7a75ff2663f", 360 | "sha256:44fe31000b2d866f2e41841b18528a505fbd7fef9017b04eff4e2648a0fadc67" 361 | ], 362 | "markers": "python_version >= '3.8'", 363 | "version": "==2.11.1" 364 | }, 365 | "pyflakes": { 366 | "hashes": [ 367 | "sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f", 368 | "sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a" 369 | ], 370 | "markers": "python_version >= '3.8'", 371 | "version": "==3.2.0" 372 | }, 373 | "pygments": { 374 | "hashes": [ 375 | "sha256:b27c2826c47d0f3219f29554824c30c5e8945175d888647acd804ddd04af846c", 376 | "sha256:da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367" 377 | ], 378 | "markers": "python_version >= '3.7'", 379 | "version": "==2.17.2" 380 | }, 381 | "pyyaml": { 382 | "hashes": [ 383 | "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5", 384 | "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc", 385 | "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df", 386 | "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741", 387 | "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206", 388 | "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27", 389 | "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595", 390 | "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62", 391 | "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98", 392 | "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696", 393 | "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290", 394 | "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9", 395 | "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d", 396 | "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6", 397 | "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867", 398 | "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47", 399 | "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486", 400 | "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6", 401 | "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3", 402 | "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007", 403 | "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938", 404 | "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0", 405 | "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c", 406 | "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735", 407 | "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d", 408 | "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28", 409 | "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4", 410 | "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba", 411 | "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8", 412 | "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5", 413 | "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd", 414 | "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3", 415 | "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0", 416 | "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515", 417 | "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c", 418 | "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c", 419 | "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924", 420 | "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34", 421 | "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43", 422 | "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859", 423 | "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673", 424 | "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54", 425 | "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a", 426 | "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b", 427 | "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab", 428 | "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa", 429 | "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c", 430 | "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585", 431 | "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d", 432 | "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f" 433 | ], 434 | "markers": "python_version >= '3.6'", 435 | "version": "==6.0.1" 436 | }, 437 | "readme-renderer": { 438 | "hashes": [ 439 | "sha256:13d039515c1f24de668e2c93f2e877b9dbe6c6c32328b90a40a49d8b2b85f36d", 440 | "sha256:2d55489f83be4992fe4454939d1a051c33edbab778e82761d060c9fc6b308cd1" 441 | ], 442 | "markers": "python_version >= '3.8'", 443 | "version": "==42.0" 444 | }, 445 | "requests": { 446 | "hashes": [ 447 | "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f", 448 | "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1" 449 | ], 450 | "markers": "python_version >= '3.7'", 451 | "version": "==2.31.0" 452 | }, 453 | "requests-toolbelt": { 454 | "hashes": [ 455 | "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6", 456 | "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06" 457 | ], 458 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", 459 | "version": "==1.0.0" 460 | }, 461 | "rfc3986": { 462 | "hashes": [ 463 | "sha256:50b1502b60e289cb37883f3dfd34532b8873c7de9f49bb546641ce9cbd256ebd", 464 | "sha256:97aacf9dbd4bfd829baad6e6309fa6573aaf1be3f6fa735c8ab05e46cecb261c" 465 | ], 466 | "markers": "python_version >= '3.7'", 467 | "version": "==2.0.0" 468 | }, 469 | "rich": { 470 | "hashes": [ 471 | "sha256:5cb5123b5cf9ee70584244246816e9114227e0b98ad9176eede6ad54bf5403fa", 472 | "sha256:6da14c108c4866ee9520bbffa71f6fe3962e193b7da68720583850cd4548e235" 473 | ], 474 | "markers": "python_full_version >= '3.7.0'", 475 | "version": "==13.7.0" 476 | }, 477 | "setuptools": { 478 | "hashes": [ 479 | "sha256:385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05", 480 | "sha256:be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78" 481 | ], 482 | "markers": "python_version >= '3.8'", 483 | "version": "==69.0.3" 484 | }, 485 | "setuptools-scm": { 486 | "hashes": [ 487 | "sha256:b47844cd2a84b83b3187a5782c71128c28b4c94cad8bfb871da2784a5cb54c4f", 488 | "sha256:b5f43ff6800669595193fd09891564ee9d1d7dcb196cab4b2506d53a2e1c95c7" 489 | ], 490 | "index": "pypi", 491 | "markers": "python_version >= '3.8'", 492 | "version": "==8.0.4" 493 | }, 494 | "snowballstemmer": { 495 | "hashes": [ 496 | "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1", 497 | "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a" 498 | ], 499 | "version": "==2.2.0" 500 | }, 501 | "sphinx": { 502 | "hashes": [ 503 | "sha256:1e09160a40b956dc623c910118fa636da93bd3ca0b9876a7b3df90f07d691560", 504 | "sha256:9a5160e1ea90688d5963ba09a2dcd8bdd526620edbb65c328728f1b2228d5ab5" 505 | ], 506 | "index": "pypi", 507 | "markers": "python_version >= '3.9'", 508 | "version": "==7.2.6" 509 | }, 510 | "sphinx-palewire-theme": { 511 | "hashes": [ 512 | "sha256:73d0b39728492f9db5f20918b93981118c4daf51830025c27900de99d519b803" 513 | ], 514 | "index": "pypi", 515 | "version": "==0.0.12" 516 | }, 517 | "sphinxcontrib-applehelp": { 518 | "hashes": [ 519 | "sha256:094c4d56209d1734e7d252f6e0b3ccc090bd52ee56807a5d9315b19c122ab15d", 520 | "sha256:39fdc8d762d33b01a7d8f026a3b7d71563ea3b72787d5f00ad8465bd9d6dfbfa" 521 | ], 522 | "markers": "python_version >= '3.9'", 523 | "version": "==1.0.7" 524 | }, 525 | "sphinxcontrib-devhelp": { 526 | "hashes": [ 527 | "sha256:63b41e0d38207ca40ebbeabcf4d8e51f76c03e78cd61abe118cf4435c73d4212", 528 | "sha256:fe8009aed765188f08fcaadbb3ea0d90ce8ae2d76710b7e29ea7d047177dae2f" 529 | ], 530 | "markers": "python_version >= '3.9'", 531 | "version": "==1.0.5" 532 | }, 533 | "sphinxcontrib-htmlhelp": { 534 | "hashes": [ 535 | "sha256:6c26a118a05b76000738429b724a0568dbde5b72391a688577da08f11891092a", 536 | "sha256:8001661c077a73c29beaf4a79968d0726103c5605e27db92b9ebed8bab1359e9" 537 | ], 538 | "markers": "python_version >= '3.9'", 539 | "version": "==2.0.4" 540 | }, 541 | "sphinxcontrib-jsmath": { 542 | "hashes": [ 543 | "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", 544 | "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8" 545 | ], 546 | "markers": "python_version >= '3.5'", 547 | "version": "==1.0.1" 548 | }, 549 | "sphinxcontrib-qthelp": { 550 | "hashes": [ 551 | "sha256:62b9d1a186ab7f5ee3356d906f648cacb7a6bdb94d201ee7adf26db55092982d", 552 | "sha256:bf76886ee7470b934e363da7a954ea2825650013d367728588732c7350f49ea4" 553 | ], 554 | "markers": "python_version >= '3.9'", 555 | "version": "==1.0.6" 556 | }, 557 | "sphinxcontrib-serializinghtml": { 558 | "hashes": [ 559 | "sha256:0c64ff898339e1fac29abd2bf5f11078f3ec413cfe9c046d3120d7ca65530b54", 560 | "sha256:9b36e503703ff04f20e9675771df105e58aa029cfcbc23b8ed716019b7416ae1" 561 | ], 562 | "markers": "python_version >= '3.9'", 563 | "version": "==1.1.9" 564 | }, 565 | "twine": { 566 | "hashes": [ 567 | "sha256:929bc3c280033347a00f847236564d1c52a3e61b1ac2516c97c48f3ceab756d8", 568 | "sha256:9e102ef5fdd5a20661eb88fad46338806c3bd32cf1db729603fe3697b1bc83c8" 569 | ], 570 | "index": "pypi", 571 | "markers": "python_version >= '3.7'", 572 | "version": "==4.0.2" 573 | }, 574 | "typing-extensions": { 575 | "hashes": [ 576 | "sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783", 577 | "sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd" 578 | ], 579 | "markers": "python_version >= '3.8'", 580 | "version": "==4.9.0" 581 | }, 582 | "urllib3": { 583 | "hashes": [ 584 | "sha256:55901e917a5896a349ff771be919f8bd99aff50b79fe58fec595eb37bbc56bb3", 585 | "sha256:df7aa8afb0148fa78488e7899b2c59b5f4ffcfa82e6c54ccb9dd37c1d7b52d54" 586 | ], 587 | "markers": "python_version >= '3.8'", 588 | "version": "==2.1.0" 589 | }, 590 | "zipp": { 591 | "hashes": [ 592 | "sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31", 593 | "sha256:84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0" 594 | ], 595 | "markers": "python_version >= '3.8'", 596 | "version": "==3.17.0" 597 | } 598 | } 599 | } 600 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------