Metadata-Version: 2.1
Name: fintecture
Version: 1.0.5
Summary: A small example package
Home-page: https://github.com/fintecture/fintecture-python
Author: Fintecture
Author-email: Gabriel Urresta Romero <gabriel@melkart.io>, Gilberto Cuba Ricardo <gilberto@melkart.io>
License: The MIT License
        
        Copyright (c) 2018-2022 Fintecture (http://fintecture.com)
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
        
Project-URL: Bug Tracker, https://github.com/Fintecture/fintecture-python/issues
Project-URL: Changes, https://github.com/Fintecture/fintecture-python/blob/master/CHANGELOG.md
Project-URL: Documentation, https://fintecture.com/docs/api/?lang=python
Project-URL: Source Code, https://github.com/Fintecture/fintecture-python
Keywords: fintecture api payments
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/markdown
License-File: LICENSE

# Fintecture Python Library


The Fintecture Python library provides convenient access to the Fintecture API from
applications written in the Python language. It includes a pre-defined set of
classes for API resources that initialize themselves dynamically from API
responses which makes it compatible with a wide range of versions of the Fintecture
API.

## Documentation

See the [Python API docs](https://docs.fintecture.com/).


## Installation

You don't need this source code unless you want to modify the package. If you just
want to use the package, just run:

```sh
pip install --upgrade fintecture
```

Install from source with:

```sh
python setup.py install
```

### Requirements

-   Python 2.7+ or Python 3.4+ (PyPy supported)

## Usage

The library needs to be configured with your application identifier, the secret and private keys which is
available in your [Fintecture Developer Console](https://console.fintecture.com/developers).
For instance, set `fintecture.app_id` to its value:

```python
import fintecture

fintecture.app_id = "39b1597f-b7dd..."

# list application information
resp = fintecture.Application.retrieve()

attributes = resp.data.attributes

# print the description of the application
print(attributes.description)

# print if application supports AIS and PIS scope
print("Supports AIS scope: %r" % attributes.scope.ais)
print("Supports PIS scope: %r" % attributes.scope.pis)
```

<!--
# vim: set tw=79:
-->
