Skip to main content

MagicKardMarket sdk

Project description

Magic Kard Market Python SDK

A simple SDK for dedicated and widget apps working with Magic Kard Market.


Feel free to contribute! Submit a PR following the guidelines and it will be alright.



>From the command line:

pip install mkmsdk

For the SDK to work properly you need to create four environment variables holding the tokens necessary to create the authorization to make requests. You can find them in your Magic Kard Market account page under the apps section.


MKM_ACCESS_TOKEN and MKM_ACCESS_TOKEN_SECRET need to be set to empty string if you want to use a widget app.


First thing to do is import mkm to work on live servers or mkm_sandbox for the sandbox:

from mkmsdk.mkm import mkm, mkm_sandbox

A request works like this:

response = mkm.account_management.account()

response = mkm.market_place.user(user='SampleUser')

This will return a Response object that contains the response from the server.

Note that only market_place requests work when using a widget app.

To get a json you can call response.json().


Integration tests will be skipped if the four environment variables are not set.


Note that some tests will be skipped depending if MKM_ACCESS_TOKEN and MKM_ACCESS_TOKEN_SECRET are empty strings or not.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mkmsdk-0.4.1-py2-none-any.whl (12.1 kB) Copy SHA256 hash SHA256 Wheel py2
mkmsdk-0.4.1.tar.gz (8.3 kB) Copy SHA256 hash SHA256 Source None

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page