Sdklib: the client side framework
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
Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
Write a test which shows that the bug was fixed or that the feature works as expected.
Send a pull request and bug the maintainer until it gets merged and published. Make sure to add yourself to Authors.
Metadata
Release files for sdklib 1.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sdklib-1.12.0.tar.gz | 40.7 kB | Without provenance | Details for sdklib-1.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sdklib-1.12.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sdklib-1.12.0-py2.py3-none-any.whl |
Total release size: 93.5 kB
Release files / sdklib-1.12.0.tar.gz
| Download URL | sdklib-1.12.0.tar.gz |
|---|---|
| Size | 40.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3acf142251e01c5756c5e548125fa415dfdefdce7834ee165d1149ee08ed55ce
|
|
BLAKE2b-256 checksum How to use checksums |
7a6e052b9c57518762b14a91bf9ad799a4c2d972e844dd1bde9f4b0ba3d88601
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sdklib-1.12.0-py2.py3-none-any.whl
| Download URL | sdklib-1.12.0-py2.py3-none-any.whl |
|---|---|
| Size | 52.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
69f3d40657e8732503cb0b2db1413b2cb973264205a33ba9ac2e4ec9a89f81c6
|
|
BLAKE2b-256 checksum How to use checksums |
dcff92cafbb4b93466214ad808117e40ca6a40d0156c7009d2d697212f405f22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for sdklib 1.12.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.