Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moiplabs/moipy
Abstração para integração via API com o MoIP em Python
https://github.com/moiplabs/moipy
Last synced: about 2 months ago
JSON representation
Abstração para integração via API com o MoIP em Python
- Host: GitHub
- URL: https://github.com/moiplabs/moipy
- Owner: moiplabs
- Created: 2010-12-09T14:31:27.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2017-09-26T13:27:41.000Z (almost 7 years ago)
- Last Synced: 2024-07-24T21:07:22.642Z (2 months ago)
- Language: Python
- Homepage: http://labs.moip.com.br/
- Size: 354 KB
- Stars: 27
- Watchers: 6
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MoIPy
=====Camada de abstração para integração via API com o MoIP em Python.
- Author: Hebert Amaral
- Contributor: Ale Borba
- Contributor: Igor Hercowitz
- Version: v0.2Dependências
------------O MoIPy tem as seguintes dependências:
- lxml
- pycurlInstalação
----------A instalação pode ser feita via pip:
pip install moipy
Ou então pelo repositório do Github:
git clone git://github.com/moiplabs/moipy.git
cd moipy
python moipy/moip.py # executa os testes
python setup.py build
sudo python setup.py installUso
----Basta importar a classe do MoIP e sair brincando :-)
from moipy import MoIP
moip = MoIP('Razao do Pagamento')
moip.set_credenciais(token='seu_token',key='sua_key')
moip.set_ambiente('sandbox')
moip.set_valor('12345')
moip.set_data_vencimento('yyyy-mm-dd')
moip.set_id_proprio('abc123')
moip.envia()
print moip.get_resposta() # {sucesso:'Sucesso','token':'KJHSDASKD392847293AHFJKDSAH'}ChangeLog
----------v0.2
- Refatorações de código
- Retirada dos DocTestsv0.1
- First versionToDo
------
- Aplicar testes automatizados usando unittest
- Incluir dados do pagador
- Validar campos
Licença
------MoIPy Copyright (C) 2010 Herberth Amaral
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA