Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.38 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.38 KB

DevCycle Python Server SDK

Welcome to the the DevCycle Python SDK, initially generated via the DevCycle Bucketing API.

Requirements.

Python 2.7 and 3.4+

Installation

pip install devcycle-python-server-sdk

(you may need to run pip with root permission: sudo pip install devcycle-python-server-sdk)

Then import the package:

import devcycle_python_sdk 

Getting Started

    from __future__ import print_function
    from devcycle_python_sdk import Configuration, DVCOptions, DVCClient, UserData, Event
    from devcycle_python_sdk.rest import ApiException
    configuration = Configuration()
    configuration.api_key['Authorization'] = 'your_server_key_here'
    options = DVCOptions(enableEdgeDB=True)

     # create an instance of the API class
     dvc = DVCClient(configuration, options)
    
     user = UserData(
        user_id='test',
        email='[email protected]',
        country='CA'
    )

Usage

To find usage documentation, visit our docs.

Development

To run the example app against the local version of the API for testing and development, run:

pip install .

from the top level of the repo (same level as setup.py). Then run the example app as normal. Reinstall every time a change is made.