Skip to main content

Python client for the Open Data Euskadi REST API.

Project description

[![travis-badge]][travis] [![coveralls-badge]][coveralls] [![pypi-badge]][pypi] [![license-badge]](LICENSE)

This package allows you to communicate with the Open Data Euskadi REST API. Use the irekia Client to generate the convoluted [Open Data Euskadi]( query strings and get the data you want.


Install it using pipenv:

`shell $ pipenv install irekia `

Usage examples

Import the Client:

`python from irekia import Client `

Results for multiple families, or multiple content_types inside a family (more information about the available families and content types can be found [here](

`python Client(['eventos', 'opendata']).get() Client('opendata', ['opendata']).get() `

Full text search:

`python Client().search('OpenData').get() `

Codified queries:

`python Client('eventos', 'evento').filter(['eventStartDate.GTE.TODAY', 'eventTown.EQ.079']).get() Client().filter('contentName.EQ.20150929125668').get() `

Choose language for results:

`python Client('eventos', 'evento').filter(['eventStartDate.GTE.TODAY', 'eventTown.EQ.079']).get(lang='eu') `

Changing results’ limit (default is 100) and pagination:

`python Client('eventos', 'evento').limit(20).get(page=5) `

Ordering of results:

`code-block:: python Client('opendata').order_by('-documentCreateDate').get() `

Use the client only to build a URL:

`code-block:: python Client('eventos', 'evento').order_by('eventStartDate').limit(20).get(page=2, url_only=True) `

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for irekia, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size irekia-0.1.1-py2-none-any.whl (9.7 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size irekia-0.1.1.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page