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

opengovpy is a simple Python wrapper around Moscow open data api

It works as follows: you create a class instance of api, then call it with parameters:

from opengovpy import api

# You may specify your api key when instantiating this
# like this using ``key`` argument: example = api(key='yourapikey')
example = api()

# To get dataset list (http://api.data.mos.ru/Docs#datasetsList):
dataset_list = example()

# To ged dataset passport (http://api.data.mos.ru/Docs#datasetPassport)
dataset_passport = example(id=658)

# To get dataset rows (http://api.data.mos.ru/Docs#datasetRows)
dataset_rows = example(id=658, rows=True)

# To count number of rows in a dataset ()
dataset_rows = example(id=658, count=True)

# To get geodata (http://api.data.mos.ru/Docs#datasetFeatures):
dataset_features = example(id=1786, features=True)

# It is also possible to specify coords to look up:
dataset_features = example(id=1786, features=True,
                              bbox=[37.49711036682129, 55.86543869723485, 37.5490379333496, 55.89110103788533])

# You may specify OData parameters supported by api (http://api.data.mos.ru/Docs#OData)
# like this:
dataset = example(id=658, rows=True, top=3, orderby='Number')
dataset = example(skip=10, inlinecount=True, top=5)

The returned value is always a python object (deserialized json, with accordance to this table). This package works with Python 2.7+

Installation

You can install opengovpy via pip:

$ pip install opengovpy
Release History

Release History

0.11

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

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
opengovpy-0.11.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Aug 10, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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