pyboleto provides a python class to generate "boletos de cobranca" as these are the Brazilian equivalent for invoices.

It's easy to implement classes for new banks.

This class is still in development and currently has no documented API.

Implemented Banks

You can help writing code for more banks or printing and testing current implementations.

For now here's where we are.

Bank Carteira / Convenio Implemented Tested
Bradesco 06 Yes No
Caixa Economica SR Yes No
Real 57 Yes No
Banco do Brasil 18 Yes No


Current documents are avilable here:


You can install pyboleto either via the Python Package Index (PyPI) or from source.

To install using pip,:

$ pip install pyboleto

To install using easy_install,:

$ easy_install pyboleto

Downloading and installing from source

Download the latest version of pyboleto from

You can install it by doing the following,:

$ tar xvfz pyboleto-0.0.0.tar.gz
$ cd pyboleto-0.0.0
$ python build
# python install # as root

Using the development version

You can clone the repository by doing the following:

$ hg clone


This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.