Skip to main content

A python wrapper for the OpenCellID DB

Project description

https://travis-ci.org/ashmastaflash/opencellid-wrapper.svg?branch=master

This project is not associated with the OpenCellID project. This is a utility package for downloading and parsing the OpenCellID database.

Usage:

import opencellid
ocid_obj = opencellid.OpenCellIdFeed("/dir/for/feed/file/", "api_key")
# Update OpenCellID feed from web:
ocid_obj.update_from_web()
# Print all rows in OpenCellID feed:
for row in ocid_obj:
    print row

Installation:

pip install opencellid

Testing:

py.test

The test fixture file cell_towers.csv.gz contains information from the OpenCellID database, which is licensed CC-BY-SA 3.0

Project details


Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page