This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

FastGeo

A fast, flexible, in-memory GeoIP lookup library.

By default FastGeo will use the GeoLite country database, distributed free by MaxMind. It contains IP ranges and the countries they’re assigned to. The library can easily be extended (and will be later) to use the GeoLite database to also contain city and lat/lon data.

Usage

` from FastGeo import GeoDB geo = GeoDB() node = geo.lookup("173.194.43.8") print node.country_code # "US" print node.country_name # "United States" `

Note: It is recommended that the GeoDB object be instantiated at startup and not on demand as it can take a few seconds to load and parse the database file.

The GeoDB constructor will accept the path to a CSV file, although it defaults to the file distributed with the library.

The default parser assumes the following csv format: “<ip lower bound>”,”<ip upper bound>”,”<long lower bound>”,”<long upper bound>”,”<country code>”,”<country name>”

To parse other formats, inherit from FastGeo.parsers.DbParser and implement .parse(), .create_node(), and .create_value(). To use the parser, pass a new instance to the GeoDB constructor.

This product includes GeoLite data created by MaxMind, available from <a href=”http://www.maxmind.com”>http://www.maxmind.com</a>.

Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1-alpha

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
FastGeo-0.1.2-py2.7.egg (1.3 MB) Copy SHA256 Checksum SHA256 2.7 Egg Jan 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting