Implementation of Mercado Pago OAuth in Flask.
Project description
Flask-Mercadopago
Flask-Mercadopago is a collection of methods for the implementation of Mercado Pago OAuth in Flask.
Features
Requirements
Python 3.8+
Dependecies for this project.
- Flask(>=2.0.1) for build the backend.
- Requests for build the backend.
intallation
You can install via pip:
$> pip install Flask-Mercadopago
Example
Register the extension:
from flask import Flask
# To follow the naming rule of Flask extension, although
# this project's name is Flask-Mercadopago, the actual package
# installed is named `flask_mercadopago`.
from flask_mercadopago import Mercadopago
app = Flask(__name__)
mercadopago = Mercadopago(app)
Recommended running instructions for dev:
-
Create a virtual environment:
$> python3 -m venv venv
-
Activate the newly created environment:
On macOS and Linux:
$> source venv/bin/activate
On Windows
c:\> .\env\Scripts\activate
-
Install dependencies:
$> (venv) python -m pip install -r requirements/dev.txt
-
Start the sample app on server locally:
$> (venv) python sample_app/app.py
You will get a form like this:
When the validation, the response data will be rendered with proper style:
Links
Authors
- Ferreira, Juan David
Please submit bug reports, suggestions for improvements and patches via the (E-mail: juandavid9a0@gmail.com).
Contributors
Credits goes to these peoples:
Official repository and Issues
License
Flask-Mercadopago
is free software you can redistribute it and/or modify it
under the terms of the MIT License. For more information, you can see the
LICENSE file
for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Flask-Mercadopago-0.0.1a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a8ea828a1d537bda1de43c5adc76bae14b24a602d0de13859e12ec352f3198 |
|
MD5 | 669e70902d4a8efb2a286a4819bdd405 |
|
BLAKE2b-256 | d9d54acf7076f26762e755f46f3790dd5574d526755af43eece0bdfce0c83e48 |
Hashes for Flask_Mercadopago-0.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e405938fe69275fbb72264b782058b07d135490ae7866d703c6b105c4d87ea |
|
MD5 | 24cbf77ee35d373f3c414d2c82754fab |
|
BLAKE2b-256 | b208d991a837839930bcdce4e593c2884c35c4b4c431997cc8a5978c47b7ee11 |