Metadata-Version: 2.1
Name: bearer
Version: 1.1.0
Summary: Bearer python helper
Home-page: https://github.com/Bearer/bearer-python
Author: Bearer Team
Author-email: engineering+python@bearer.sh
License: UNKNOWN
Description: # Bearer Python
        
        Bearer Python client
        
        ## Installation
        
        ```
        pip install bearer
        ```
        
        ## Usage
        
        Get your Bearer [API Key](https://app.bearer.sh/keys) and integration id from
        the [Dashboard](https://app.bearer.sh) and use the Bearer client as follows:
        
        ### Calling any APIs
        
        ```python
        from bearer import Bearer
        
        bearer = Bearer('your api key') # find it on https://app.bearer.sh/keys
        github = (
            bearer
              .integration('your integration id') # you'll find it on the Bearer dashboard https://app.bearer.sh
              .auth('your auth id') # Create an auth id for your integration via the dashboard
        )
        
        print(github.get('/repositories').json())
        ```
        
        We use [requests](https://2.python-requests.org/en/master/) internally and we
        return the response from this library from the request methods (`request`,
        `get`, `head`, `post`, `put`, `patch`, `delete`).
        
        More advanced examples:
        
        ```python
        # With query parameters
        print(github.get('/repositories', query={ 'since': 364 }).json())
        
        # With body data
        print(github.post('/user/repos', body={ 'name': 'Just setting up my Bearer.sh' }).json())
        ```
        
        ### Calling custom functions
        
        ```python
        from bearer import Bearer
        
        bearer = Bearer('your api key')
        github = bearer.integration('your integration id')
        
        print(github.invoke('your function name'))
        ```
        
        [Learn more](https://docs.bearer.sh/working-with-bearer/manipulating-apis) on how to use custom functions with Bearer.sh.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
