Skip to main content

Server Connection

This package provides a python wrapper for connecting to a resource server

Sample usage

.. code-block:: python

from msz_svr_conn import ApiConnection

conn = ApiConnection(
    'localhost:8000',
    '<your oauth id>',
    '<your oauth secret'>,
    '<your user email>',  # or <your user phone number>
    '<your user password',
    token_url='<url to token resource on auth_server>'
)

# call a resource server with base url 'localhost:8000'
conn.call_stub('/api/resource/')

# call another resource server using the same credentials
conn.call('http://domain.com/api/resource/')

# after the access token expires, refresh the token
conn.refresh('<url to token resource on auth_server>')

Release files for msz-svr-conn 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for msz-svr-conn 0.0.1
File Size Uploaded
msz_svr_conn-0.0.1.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for msz-svr-conn 0.0.1
File Interpreter ABI Platform
msz_svr_conn-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.7 kB

Release files / msz_svr_conn-0.0.1.tar.gz

Download URL msz_svr_conn-0.0.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0d2a77d2e1fb64283f2c59fa943c2c3d749c699a95f9059e855256ebbe8f6c46
BLAKE2b-256 checksum
How to use checksums
f60ee8c57f9a9e58c8b14db5d7a02ecdcd1280e31884d4e26acf22ae0ae1fb58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / msz_svr_conn-0.0.1-py2.py3-none-any.whl

Download URL msz_svr_conn-0.0.1-py2.py3-none-any.whl
Size 11.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0f3fee0bc61702d8fd67282712d1e4fab777a7835d455168556554279057e72e
BLAKE2b-256 checksum
How to use checksums
d9174e535456a8d186500fce8fce152ca16e0c24102824e167166fce493c250e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page