Skip to main content

SDK helper library

Project description

Build Status Codecov Status Pypi Version Code Climate

Sdklib helps you to write you own client library which will consume a specific service.

Highlights

  • Python 2.7+ or 3.3+.

  • Only http/https protocol is currently supported.

  • BDD integration.

Install

Install the sdklib package using pip:

pip install sdklib

Sample

Find my first SDK on github: https://github.com/ivanprjcts/my-first-sdk

from sdklib.http import HttpSdk

class FirstSdk(HttpSdk):
    """
    My First Sdk.
    """
    DEFAULT_HOST = "http://mockapi.sdklib.org"

    API_ITEMS_URL_PATH = "/items/"

    def create_item(self, name, description=None):
        """
        Create an item.

        :type name: str
        :type description: str
        :return: SdkResponse
        """
        params = parse_args(name=name, description=description)
        return self.post(self.API_ITEMS_URL_PATH, body_params=params)

Run tests

Running testing with coverage:

py.test --cov=sdklib tests/

Contributing

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.

  2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).

  3. Write a test which shows that the bug was fixed or that the feature works as expected.

  4. Send a pull request and bug the maintainer until it gets merged and published. Make sure to add yourself to Authors.

Authors

Project details


Download files

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

Source Distribution

sdklib-1.12.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

sdklib-1.12.0-py2.py3-none-any.whl (52.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sdklib-1.12.0.tar.gz.

File metadata

  • Download URL: sdklib-1.12.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for sdklib-1.12.0.tar.gz
Algorithm Hash digest
SHA256 3acf142251e01c5756c5e548125fa415dfdefdce7834ee165d1149ee08ed55ce
MD5 af7530d2d71e05900723d4c7c9205a4f
BLAKE2b-256 7a6e052b9c57518762b14a91bf9ad799a4c2d972e844dd1bde9f4b0ba3d88601

See more details on using hashes here.

File details

Details for the file sdklib-1.12.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sdklib-1.12.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 52.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for sdklib-1.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 69f3d40657e8732503cb0b2db1413b2cb973264205a33ba9ac2e4ec9a89f81c6
MD5 824f1d1920f0ab358fb98321c2e1b893
BLAKE2b-256 dcff92cafbb4b93466214ad808117e40ca6a40d0156c7009d2d697212f405f22

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page