Skip to main content

Requirements Status

PyPI

Fabric Credential Manager Client

This is Fabric Credential Manager API

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/fabric-testbed/fabric_credmgr.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/fabric-testbed/fabric_credmgr.git)

Then import the package:

import fabric_cm.credmgr.credmgr_proxy 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

from fabric_cm.credmgr.credmgr_proxy import CredmgrProxy

Getting Started

Please follow the installation procedure and then run the following:

from fabric_cm.credmgr.credmgr_proxy import CredmgrProxy
from fabric_cm.credmgr.swagger_client.rest import ApiException

credmgr_proxy = CredmgrProxy(credmgr_host="https://dev-2.fabric-testbed.net/")
try:
    version = credmgr_proxy.version_get()
    print(version)
except ApiException as e:
    print("Exception when calling CredmgrProxy->version_get: %s\n" % e)

try:
    version = credmgr_proxy.certs_get()
    print(version)
except ApiException as e:
    print("Exception when calling CredmgrProxy->certs_get: %s\n" % e)


try:
    version = credmgr_proxy.refresh(project_name='all', scope='all', refresh_token='TOKEN')
    print(version)
except ApiException as e:
    print("Exception when calling CredmgrProxy->refresh: %s\n" % e)

try:
    version = credmgr_proxy.revoke(refresh_token='TOKEN')
    print(version)
except ApiException as e:
    print("Exception when calling CredmgrProxy->revoke: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:7000/

Class Method HTTP request Description
DefaultApi certs_get GET /certs Return Public Keys to verify signature of the tokens
DefaultApi version_get GET /version version
TokensApi tokens_create_post POST /tokens/create Generate tokens for an user
TokensApi tokens_refresh_post POST /tokens/refresh Refresh tokens for an user
TokensApi tokens_revoke_post POST /tokens/revoke Revoke a refresh token for an user

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

kthare10@unc.edu

Download files

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

Source Distribution

fabric-credmgr-client-0.0.4.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fabric_credmgr_client-0.0.4-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file fabric-credmgr-client-0.0.4.tar.gz.

File metadata

  • Download URL: fabric-credmgr-client-0.0.4.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for fabric-credmgr-client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e23af8780c4697ab8a24e2b04d74eac84029062aad07e76f9c4f9f4eb960f2bf
MD5 a9ab899059c1d2fe58203ebde89bcb77
BLAKE2b-256 4910c00fe5b935c29f30766a061b3a3fe1424db5f74c45b829da3f7f9daf628b

See more details on using hashes here.

File details

Details for the file fabric_credmgr_client-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: fabric_credmgr_client-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for fabric_credmgr_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a92cabc11c11337acec65847baae3d7fa57f5ac5975458a4ad38ff4266f26da
MD5 41f35ab50b2f4ada39cdf2cd1620db9e
BLAKE2b-256 dcd705879ea95898a8fec4a196a84d7a0f83c865def0316a78daf5fac046de01

See more details on using hashes here.

Release history Release notifications | RSS feed

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2

2 files

1.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 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