Skip to main content

Mopinion API - Python Client

License-MIT Documentation Status GitHub Actions Badge PyPi

A client library for the Mopinion Data API.

Our Mopinion Client provides functionality for authentication, authorization and requesting resources. It comes with an easy, beautiful, and elegant way of interacting with our API.

Read the docs for further information.

Installation

Install using pip:

pip install mopinion

Example

>>> from mopinion import MopinionClient
>>> client = MopinionClient(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
>>> assert client.is_available()
>>> response = client.resource("account")
>>> response = client.resource("deployments")
>>>
>>> response = client.get_account()
>>>
>>> response = client.get_deployments()
>>> response = client.get_deployments("abc")
>>>
>>> response = client.get_reports(report_id=123)
>>> response = client.get_reports_fields(report_id=123)
>>> response = client.get_reports_feedback(report_id=123)
>>>
>>> response = client.get_datasets(dataset_id=123)
>>> response = client.get_datasets_feedback(dataset_id=123)
>>> response = client.get_datasets_fields(dataset_id=123)
>>>
>>> client.close()
>>>
>>> with MopinionClient(public_key=YOUR_PUBLIC_KEY, private_key=YOUR_PRIVATE_KEY) as client:
...     response = client.get_account()
...     assert response.json()["_meta"]["code"] == 200

Documentation

You can find here at Read the docs the complete documentation.

About Mopinion

Mopinion is a leading all-in-one user feedback platform that helps digital enterprises listen, understand, and act across all digital touchpoints (web, mobile, and email). Join some of the most forward-thinking digital teams from companies such as T-mobile, eBay, TSB Bank, Walmart, Hotels.com, Decathlon, Ahold, Mediacorp Ltd, and many more.

Please visit the website for more information about the product: https://mopinion.com

Changelog

1.1.0 (2026-09-24)

  • Support Python 3.10 to 3.14; drop support for Python < 3.10.

  • Require requests>=2.33.0 for upstream security fixes.

1.0.1 (2023-07-11)

  • Fix issue where query parameters are not properly set for iterable responses.

1.0.0 (2022-03-04)

  • Released stable version.

0.0.7 (2022-02-23)

  • Fixes in documentation.

  • Implement __enter__() and __exit__() methods.

  • Added methods: get_account, get_deployments, get_datasets, get_datasets_fields, get_datasets_feedback, get_reports, get_reports_fields, get_reports_feedback.

  • Increased compatibility from Python 3.6 to 3.10.

0.0.6 (2021-02-11)

  • Fixes in documentation.

  • Added pre-commit configuration to project.

  • Added new endpoint for /deployments/<str_id>.

0.0.5 (2021-01-22)

  • Several fixes in documentation.

0.0.4 (2021-01-22)

  • Fixed in documentation.

  • Added examples for query_params in the doc examples.

  • Updated directory name from mopinion_client to mopinion.

  • Implemented About in Docs and Readme.

0.0.3 (2021-01-20)

  • Fixed typing in method get_token. Return bytes instead of str.

0.0.2 (2021-01-20)

  • Fixed in documentation.

  • Removed travis ci. Integrated GitHub Actions.

  • Added coverage into GitHub actions.

0.0.1 (2021-01-20)

  • Initial project structure.

  • Client implementation.

  • Test suite.

  • Request examples.

Release files for mopinion 1.1.0

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

Source distribution (sdist)

Source distribution for mopinion 1.1.0
File Size Uploaded
mopinion-1.1.0.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mopinion 1.1.0
File Interpreter ABI Platform
mopinion-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / mopinion-1.1.0.tar.gz

Download URL mopinion-1.1.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
187be4a4d8881bfb5ce9fdc8bf7b4ff5e1e6eea3e31d0a48b1ba2fc5b864b5ab
BLAKE2b-256 checksum
How to use checksums
faad2d34a24b888c0c26d116a58dbaa09e9088d1f9a17bb30ce4ac2cb84612d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / mopinion-1.1.0-py3-none-any.whl

Download URL mopinion-1.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5c30e19193736c1094da67ea34b1d13191b0d7d8aa24b266de5607a52a6c995
BLAKE2b-256 checksum
How to use checksums
a4e479cf522f1a713f5d9469954bd6161975b2da4853551b98fe5f3312f7cbe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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