aorzh / python-apidata-mos-ru

A simple Python wrapper for the MOS.ru API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mos.ru API

A Python wrapper for the mos.ru API. It supports extracting datasets (list, metadata, geodata, icons and images, etc) from Moscow Government Open Data Portal API.

Usage

Register for apidata.mos.ru and get the API key.

Importing

from apidatamosru.apidatamos import ApiClient

How to get datasets list

    client = ApiClient(API_KEY)
    response = client.get_datasets_list()

How to get dataset

    client = ApiClient(API_KEY)
    response = client.get_dataset(658)

...and other

See tests_methods.py

Testing

pytest tests\test_methods.py

Requirements

  • requests
  • vcrpy
  • other requirements you can see in requirements.txt

About

A simple Python wrapper for the MOS.ru API


Languages

Language:Python 100.0%