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.1b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5595dcc66bd55dfd900fd661798f5f1065c849b12ce8d390e46979d3c0008d53 |
|
MD5 | e4c5a970d3fcc91aac11ce086175300b |
|
BLAKE2b-256 | de6e0328063eefcc09fdce11fd60dc67634f56b4797cf162f3d30a2ddbf273ca |
Hashes for Flask_Mercadopago-0.0.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ac46afc2cf5e319e905dda40011198d148096e1b7c6edbf861cae4d9822da1 |
|
MD5 | b82aa85e61db879da31f59829cdd7bd5 |
|
BLAKE2b-256 | 34b30fdb9cab626021d4b569141962e03a37e2e04f6f5373f39544027e60ce17 |