Registry / payments / mastercard-places

mastercard-places

JSON →
library1.0.6pypypiunverified

Official Mastercard Places API Python SDK. Provides access to Mastercard Places services. Version 1.0.6 (latest). Low release cadence.

pip install mastercard-places
INSTALL
IMPORT
SIG · MASTERCARD-PLACES
M
mastercard-places
paymentspythonv1.0.6
Install
5.1s avg
Import
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 43.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.1s · import 0.000s · 44MB
42MB installed
● package 42MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PlacesApi
from mastercard_places import PlacesApi
from mastercard_places.places import PlacesApi
Older docs or examples might have a deeper module path; direct import is correct.
ApiClient
from mastercard_places import ApiClient
from mastercard_places.api_client import ApiClient
ApiClient is exported from the package root.
Configuration
from mastercard_places import Configuration
from mastercard_places.configuration import Configuration
Configuration is also exported from root.

Initialize configuration with credentials from environment variables and call an API.

from mastercard_places import Configuration, ApiClient, PlacesApi config = Configuration( consumer_key=os.environ.get('CONSUMER_KEY', ''), keystore_path=os.environ.get('KEYSTORE_PATH', ''), keystore_password=os.environ.get('KEYSTORE_PASSWORD', ''), key_alias=os.environ.get('KEY_ALIAS', ''), host='https://api.mastercard.com') client = ApiClient(config) api = PlacesApi(client) response = api.get_place_categories() print(response)
Debug
Known issues
breakingThe SDK assumes you are using a Mastercard developer account with valid PKCS12 keystore. Missing or malformed keystore leads to authentication failures.
fix
Use correct keystore file and password. Validate keystore path.
affects: >=1.0.0
gotchaAll API methods return raw dict or objects; errors are not raised as exceptions by default. Must check response status.
fix
Use try/except or check response.get('status') or use the SDK's error handling utilities (if any).
affects: >=1.0.0
gotchaThe SDK requires mastercard-core as a dependency but does not always pin a version. Conflicts can arise if installed separately.
fix
Install mastercard-places directly without manually installing mastercard-core; let pip resolve.
affects: >=1.0.0
Upgrade
Version history
1.0.6latest on PyPI · released Apr 11, 2018
Audit
Dependencies
mastercard-corerequiredCore SDK utilities (authentication, API client)
Agent activity
36 hits · last 30 days
node
34
OpenAI (training)
1
Resources
mastercard-places — pip install mastercard-places · libregistry