This will get your Python app Kin enabled in a few minutes. All you need to do is add a simple class file to your app, and you should be able to make calls to Kin's blockchain immediately.
Make sure you have read Getting Started and have the required environment variables
pip install kin-sdk-v2
2. Create a Python app and add the kin.py class to your app
This class abstracts some calls to Kin's official SDK and is fully usable out of the box. However, you can easily extend it to suite your custom needs.
We're creating a new instance of our Kin wrapper and pass in the environment. In this example we'll pick the Test network.
// Set up Kin client kin = Kin(Environment.TEST)
A demo App is included that you can run and test. To use the app:
- Pull https://github.com/kintegrate/kin-starter-python into a local folder
- Access the
/main.pyfile on your local.
- Use this code to test available methods