Metadata-Version: 2.1
Name: credmgr
Version: 1.4.0
Summary: Credential Manager API Client
Home-page: https://credmgr.jesassn.org
Author: Lil_SpazJoekp
Author-email: spaz@jesassn.org
License: Proprietary
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Classifier: License :: Other/Proprietary License
Requires-Python: >=3.6
Provides-Extra: docs
Provides-Extra: lint
Provides-Extra: test
Provides-Extra: dev
License-File: LICENSE.txt

CredentialManager
=================

Client for interacting with Credential Manager API

- API version: 1.0
- Package version: 1.2.0

Requirements
------------

Python 3.6+

Installation & Usage
--------------------

.. code-block:: sh

    pip install credmgr

Then import the package:

.. code-block:: python

    from credmgr import CredentialManager

Getting Started
---------------

.. code-block:: python

    credentialManager = CredentialManager(apiToken="apiToken")

    # List all Reddit apps
    redditApps = credentialManager.redditApps()
    for redditApp in redditApps:
        print(redditApp.name)

    # Create a Reddit app
    redditApp = credentialManager.redditApp.create(
        name="redditAppName",
        clientId="clientId",
        clientSecret="clientSecret",
        userAgent="userAgent",
        redirectUri="redirectUri",
    )

    # Get the app by id
    redditApp = credentialManager.redditApp(1)

    # Edit the Reddit app
    redditApp.edit(clientId="clientId2")

    # Delete the app
    redditApp.delete()


