Metadata-Version: 2.4
Name: credmgr
Version: 1.7.0
Summary: Credential Manager API Client
Project-URL: Homepage, https://credmgr.jesassn.org
Author-email: Lil_SpazJoekp <spaz@jesassn.org>
License: Proprietary
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Requires-Dist: asyncpraw
Requires-Dist: click>=8.1.8
Requires-Dist: marshmallow
Requires-Dist: praw
Requires-Dist: python-dateutil
Requires-Dist: requests
Requires-Dist: requests-toolbelt
Description-Content-Type: text/x-rst

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

Client for interacting with Credential Manager API

- API version: 1.0
- Package version: 1.7.0

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

Python 3.9+

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

.. code-block:: sh

    pip install credmgr

Then import the package:

.. code-block:: python

    from credmgr import CredentialManager

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

.. code-block:: python

    credential_manager = CredentialManager(api_token="api_token")

    # List all Reddit apps
    reddit_apps = credential_manager.reddit_apps()
    for reddit_app in reddit_apps:
        print(reddit_app.name)

    # Create a Reddit app
    reddit_app = credential_manager.reddit_app.create(
        name="reddit_app_name",
        client_id="client_id",
        client_secret="client_secret",
        user_agent="user_agent",
        redirect_uri="redirect_uri",
    )

    # Get the app by id
    reddit_app = credential_manager.reddit_app(1)

    # Edit the Reddit app
    reddit_app.edit(client_id="client_id_2")

    # Delete the app
    reddit_app.delete()
