Skip to content

KPACHbIuLLIAnO4/georesolver

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages