No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resolver
twisted/plugins
.gitignore
README.md
setup.py

README.md

georesolver

Simple asynchronous web server for resolving ip address into geo data using sypex geo database (https://sypexgeo.net). Requires twisted and pysyge library to be installed.

Required packages (example for Ubuntu):

  • python
  • python-dev
  • python-virtualenv
  • python-pip

How to install (in work dir):

  • virtualenv .
  • . ./bin/activate
  • pip install twisted pysyge
  • git clone https://github.com/KPACHbIuLLIAnO4/georesolver
  • cd georesolver
  • python setup.py build
  • python setup.py install
  • (download file SxGeoCity.dat and put it into any accessible directory)

How to start (in work dir):

  • . ./bin/activate
  • cd georesolver
  • twistd resolver --host localhost --port 8080 --file ./SxGeoCity.dat

How to shutdown:

  • kill `cat twistd.pid`

How to bind on all interfaces:

  • twistd resolver --host '' --port 8080 --file ./SxGeoCity.dat

How to use: