{"id":40000961,"url":"https://github.com/buserbrasil/barte-python-sdk","last_synced_at":"2026-01-19T01:35:21.347Z","repository":{"id":271478563,"uuid":"913589774","full_name":"buserbrasil/barte-python-sdk","owner":"buserbrasil","description":"Python SDK for integration with Barte API","archived":false,"fork":false,"pushed_at":"2025-12-03T12:25:49.000Z","size":134,"stargazers_count":6,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-02T23:35:07.832Z","etag":null,"topics":["barte","payment-gateway","python","sdk-python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buserbrasil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-08T01:30:02.000Z","updated_at":"2025-12-03T12:24:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f9af159-d89b-408a-961e-56bc5542c957","html_url":"https://github.com/buserbrasil/barte-python-sdk","commit_stats":null,"previous_names":["buserbrasil/barte-python-sdk"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/buserbrasil/barte-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buserbrasil%2Fbarte-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buserbrasil%2Fbarte-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buserbrasil%2Fbarte-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buserbrasil%2Fbarte-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buserbrasil","download_url":"https://codeload.github.com/buserbrasil/barte-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buserbrasil%2Fbarte-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28557514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"ssl_error","status_checked_at":"2026-01-19T00:46:32.754Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barte","payment-gateway","python","sdk-python"],"created_at":"2026-01-19T01:35:21.293Z","updated_at":"2026-01-19T01:35:21.338Z","avatar_url":"https://github.com/buserbrasil.png","language":"Python","readme":"# Barte Python SDK\n\n[![Tests](https://github.com/buserbrasil/barte-python-sdk/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/buserbrasil/barte-python-sdk/actions/workflows/tests.yml)\n\nA 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.\n\n## Features\n\n- Simple and intuitive API client\n- Secure payment processing\n- Card tokenization support\n- Comprehensive error handling\n- Type hints for better development experience\n\n## Installation\n\n```bash\npip install barte-python-sdk\n```\n\n## Quick Start\n\n```python\nfrom barte import BarteClient\n\n# Initialize the client\nclient = BarteClient(api_key=\"your_api_key\", environment=\"sandbox\")\n\n# Create a card token\nbuyer = client.get_buyer({\"documentNumber\": \"00011122233\"})\n\ncard_token = client.create_card_token({\n    \"holderName\": \"Barte Card Test\",\n    \"number\": \"5383638854440891\",\n    \"cvv\": \"220\",\n    \"expiration\": \"12/2025\",\n    \"buyerUuid\": buyer.uuid,\n})\n```\n\n## Documentation\n\n- [OpenAPI Documentation](https://app.swaggerhub.com/apis-docs/b6782/barte-api/1.0.0#/) - Complete API reference\n- [Integration Guide](https://barte.notion.site/Guia-de-Integra-o-d25d74ee606f4b9ab33efd9e6a4ea22e#460c4da9a5904fc79b789492438bafc4) - Detailed integration guide with examples and best practices\n\n## Running Tests\n\nTo run the test suite, follow these steps:\n\n1. Run tests using pytest:\n```bash\nuv run pytest tests/ -v --cov=barte --cov-report=xml\n```\n\n## Examples\n\nYou can find example implementations in the `examples` directory. To run the examples:\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/buser-brasil/barte-python-sdk.git\ncd barte-python-sdk\n```\n\n2. Run specific examples:\n```bash\nuv run examples/card_token_example.py\n```\n\nMake sure to set up your API credentials before running the examples.\n\n## Contributing\n\nWe welcome contributions! Here's how you can help:\n\n1. Fork the repository\n2. Create your feature branch:\n```bash\ngit checkout -b feature/amazing-feature\n```\n\n3. Install development dependencies:\n```bash\nuv sync\n```\n\n4. Make your changes and ensure tests pass\n5. Commit your changes:\n```bash\ngit commit -m 'Add amazing feature'\n```\n\n6. Push to the branch:\n```bash\ngit push origin feature/amazing-feature\n```\n\n7. Open a Pull Request\n\n### Development Guidelines\n\n- Follow PEP 8 style guide\n- Add tests for new features\n- Update documentation as needed\n- Use type hints\n- Write meaningful commit messages\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\n\nIf you encounter any issues or need support, please open an issue on GitHub or contact our support team.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuserbrasil%2Fbarte-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuserbrasil%2Fbarte-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuserbrasil%2Fbarte-python-sdk/lists"}