Skip to main content

irekia

travis-badge coveralls-badge pypi-badge license-badge

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.

Installation

Install it using pipenv:

$ pipenv install irekia

Usage examples

Import the Client:

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:

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

Full text search:

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

Codified queries:

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

Choose language for results:

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

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

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

Ordering of results:

Client('opendata').order_by('-documentCreateDate').get()

Use the client only to build a URL:

Client('eventos', 'evento').order_by('eventStartDate').limit(20).get(page=2, url_only=True)

For developers

To run tests:

$ pipenv install --dev && pipenv shell
$ tox

Metadata

Release files for irekia 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for irekia 0.1.2
File Size Uploaded Provenance
irekia-0.1.2.tar.gz 10.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for irekia 0.1.2
File Interpreter ABI Platform
irekia-0.1.2-py2-none-any.whl Python 2 none any Details

Total release size: 20.1 kB

Release files / irekia-0.1.2.tar.gz

Download URL irekia-0.1.2.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
452bcd407b9f939dca7bed63f1c4a4fcec1cd1652a71332ae7860f90bf772c82
BLAKE2b-256 checksum
How to use checksums
5bb89906ddae2c51b247f7c19245184532a0aaaab9ffb965c7a6db630ac12405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / irekia-0.1.2-py2-none-any.whl

Download URL irekia-0.1.2-py2-none-any.whl
Size 9.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
47c091b8ec9c105266f19dc5b08c45d6d539f09a78155039bf47cf5c9407fdf5
BLAKE2b-256 checksum
How to use checksums
085090dad0c3f1d86e08d4fcb6321b3ff48385d5c2831a3453798dfe5576c50a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for irekia 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page