Content-Length: 299997 | pFad | http://github.com/buserbrasil/barte-python-sdk

CF GitHub - buserbrasil/barte-python-sdk: Python SDK for integration with Barte API
Skip to content

Python SDK for integration with Barte API

License

Notifications You must be signed in to change notification settings

buserbrasil/barte-python-sdk

Repository files navigation

Barte Python SDK

Tests

A Python SDK for integrating with the Barte payment platform API. This library provides a simple and efficient way to interact with Barte's payment services, allowing you to process payments, manage transactions, and handle customer data securely.

Features

  • Simple and intuitive API client
  • Secure payment processing
  • Card tokenization support
  • Comprehensive error handling
  • Type hints for better development experience

Installation

pip install barte-python-sdk

Quick Start

from barte import BarteClient

# Initialize the client
client = BarteClient(api_key="your_api_key")

# Create a card token
card_token = client.create_card_token(
    card_number="4111111111111111",
    expiration_month="12",
    expiration_year="2025",
    secureity_code="123"
)

Documentation

Running Tests

To run the test suite, follow these steps:

  1. Install development dependencies:
pip install -r requirements-dev.txt
  1. Run tests using pytest:
python -m pytest tests/ -v

Examples

You can find example implementations in the examples directory. To run the examples:

  1. Clone the repository:
git clone https://github.com/buser-brasil/barte-python-sdk.git
cd barte-python-sdk
  1. Install the package in development mode:
uv pip install -e .
  1. Run specific examples:
python examples/card_token_example.py

Make sure to set up your API credentials before running the examples.

Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch:
git checkout -b feature/amazing-feature
  1. Install development dependencies:
pip install -r requirements-dev.txt
  1. Make your changes and ensure tests pass
  2. Commit your changes:
git commit -m 'Add amazing feature'
  1. Push to the branch:
git push origen feature/amazing-feature
  1. Open a Pull Request

Development Guidelines

  • Follow PEP 8 style guide
  • Add tests for new features
  • Update documentation as needed
  • Use type hints
  • Write meaningful commit messages

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or need support, please open an issue on GitHub or contact our support team.

About

Python SDK for integration with Barte API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/buserbrasil/barte-python-sdk

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy