semvec/pypi-packages huggingface dataset:
FastGeo 0.1.2
A fast, in-memory GeoIP data lookup module
License: MIT
Keywords: geo geoip lookup db

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:
"&lt;ip lower bound&gt;","&lt;ip upper bound&gt;","&lt;long lower bound&gt;","&lt;long upper bound&gt;","&lt;country code&gt;","&lt;country name&gt;"

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>.
sample-data-utils 0.5
Collections of utilities to create random "human readeable" sample data.
License: MIT

===================
sample-data-utils
===================

.. image:: https://secure.travis-ci.org/saxix/sample-data-utils.png?branch=master
    :target: http://travis-ci.org/saxix/sample-data-utils/

.. image:: https://coveralls.io/repos/saxix/sample-data-utils/badge.png?branch=master
    :target: https://coveralls.io/r/saxix/sample-data-utils?branch=develop

.. image:: https://pypip.in/v/sample-data-utils/badge.png
    :target: https://crate.io/packages/sample-data-utils/

.. image:: https://pypip.in/d/sample-data-utils/badge.png
    :target: https://crate.io/packages/sample-data-utils/


Collections of utilities to create random "human readeable" sample data.


Project links
-------------

* Project home page: https://github.com/saxix/sample-data-utils
* Documentation: http://sample-data-utils.readthedocs.org/en/latest/
* Download: http://pypi.python.org/pypi/sample-data-utils/