{"id":37778038,"url":"https://github.com/brunobcardoso/pyptax","last_synced_at":"2026-01-16T15:01:45.701Z","repository":{"id":62582743,"uuid":"235020401","full_name":"brunobcardoso/pyptax","owner":"brunobcardoso","description":"PyPtax is a Python library and CLI to retrieve information on Ptax rates","archived":false,"fork":false,"pushed_at":"2020-10-21T02:52:54.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T07:08:05.543Z","etag":null,"topics":["bcb","ptax","python"],"latest_commit_sha":null,"homepage":"https://pyptax.readthedocs.io","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/brunobcardoso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-20T04:43:22.000Z","updated_at":"2020-02-20T23:45:10.000Z","dependencies_parsed_at":"2022-11-03T21:22:17.607Z","dependency_job_id":null,"html_url":"https://github.com/brunobcardoso/pyptax","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/brunobcardoso/pyptax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobcardoso%2Fpyptax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobcardoso%2Fpyptax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobcardoso%2Fpyptax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobcardoso%2Fpyptax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunobcardoso","download_url":"https://codeload.github.com/brunobcardoso/pyptax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobcardoso%2Fpyptax/sbom","scorecard":{"id":255243,"data":{"date":"2025-08-11","repo":{"name":"github.com/brunobcardoso/pyptax","commit":"088625ad4f1a4fa6cf5e4b94f11ed5be3ffbceb5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T09:32:19.849Z","repository_id":62582743,"created_at":"2025-08-17T09:32:19.849Z","updated_at":"2025-08-17T09:32:19.849Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["bcb","ptax","python"],"created_at":"2026-01-16T15:01:44.872Z","updated_at":"2026-01-16T15:01:45.693Z","avatar_url":"https://github.com/brunobcardoso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  PyPtax\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003ePyPtax is a Python library and CLI to retrieve information on \u003ci\u003e\u003ca href=\"#what-is-ptax\"\u003ePtax rates\u003c/a\u003e\u003c/i\u003e\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/pyptax\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/pyptax.svg?style=flat-square\" alt=\"Latest Version\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/brunobcardoso/pyptax\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/brunobcardoso/pyptax/master.svg?style=flat-square\" alt=\"Build Status\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/brunobcardoso/pyptax\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/brunobcardoso/pyptax/branch/master/graph/badge.svg\" alt=\"Coverage\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/pyptax/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/pyptax.svg?style=flat-square\" alt=\"Supported Versions\"/\u003e\n  \u003c/a\u003e\n  \u003ca href='https://pyptax.readthedocs.io/en/latest/?badge=latest'\u003e\n    \u003cimg src='https://img.shields.io/readthedocs/pyptax/latest?style=flat-square' alt='Documentation Status'/\u003e\n  \u003c/a\u003e\n  \u003ca href='https://github.com/psf/black'\u003e\n    \u003cimg src='https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square' alt='Code Style'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e |\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e |\n  \u003ca href=\"#quickstart\"\u003eQuickstart\u003c/a\u003e |\n  \u003ca href=\"#documentation\"\u003eDocumentation\u003c/a\u003e |\n  \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\n\u003c/p\u003e\n\n## What is Ptax?\n\n[Ptax exchange rate](https://www.bcb.gov.br/conteudo/relatorioinflacao/EstudosEspeciais/EE042_A_taxa_de_cambio_de_referencia_Ptax.pdf)\nis the reference exchange rate for U.S. Dollar, expressed as the amount of Brazilian Reais per one U.S. Dollar,\npublished by the [Central Bank of Brazil](https://www.bcb.gov.br/en).\n\n## Features\n - Closing Ptax rates for a requested date\n - Historical Ptax rates for a requested period\n - Intermediary Ptax rates for a requested date\n\n## Installation\n```bash\n$ pip install pyptax\n```\n\n## Quickstart\n\n### Closing Ptax rates for a requested date\n\n**Command line:**\n\n```bash\n$ pyptax close --date 2020-01-20\n```\n\n**Module:**\n\n```\n\u003e\u003e\u003e from pyptax import ptax\n\u003e\u003e\u003e bulletin = ptax.close(\"2020-01-20\")\n\u003e\u003e\u003e bulletin.as_dict\n{\n    \"datetime\": \"2020-01-20 13:09:02.871\",\n    \"bid\": 4.1823,\n    \"ask\": 4.1829,\n    \"bulletin_type\":\n    \"close\"\n}\n\u003e\u003e\u003e bulletin.datetime\n\"2020-01-20 13:09:02.871\"\n\u003e\u003e\u003e bulletin.bid\n4.1823\n\u003e\u003e\u003e bulletin.ask\n4.1829\n```\n\n### Historical Ptax rates for a requested period\n\n**Command line:**\n\n```bash\n$ pyptax historical --start_date 2020-01-01 --end_date 2020-01-05\n```\n\n**Module:**\n\n```\n\u003e\u003e\u003e from pyptax import ptax\n\u003e\u003e\u003e historical_bulletin = ptax.historical('2020-01-01', '2020-01-05')\n\u003e\u003e\u003e historical_bulletin\nHistoricalBulletin(\n    start_date=\"2020-01-01\",\n    end_date=\"2020-01-03\",\n    bulletins=[\n        Bulletin(\"2020-01-02 13:11:10.762\", 4.0207, 4.0213, \"close\"),\n        Bulletin(\"2020-01-03 13:06:22.606\", 4.0516, 4.0522, \"close\"),\n    ],\n)\n\n\u003e\u003e\u003e historical_bulletin.as_dict\n{\n    \"start_date\": \"2020-01-01\",\n    \"end_date\": \"2020-01-03\",\n    \"bulletins\": [\n        {\n            \"datetime\": \"2020-01-02 13:11:10.762\",\n            \"bid\": 4.0207,\n            \"ask\": 4.0213,\n            \"bulletin_type\": \"close\"\n        },\n        {\n            \"datetime\": \"2020-01-03 13:06:22.606\",\n            \"bid\": 4.0516,\n            \"ask\": 4.0522,\n            \"bulletin_type\": \"close\"\n        },\n    ],\n}\n```\n\n\u003e :warning: Enter all dates in the format **_YYYY-MM-DD_**\n\n## Documentation\n\nThe full documentation is available on https://pyptax.readthedocs.io/.\n\n## Contributing\n\nPlease see the [contributing page](https://github.com/brunobcardoso/pyptax/blob/master/CONTRIBUTING.rst)\nfor guidance on setting up a development environment and how to contribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunobcardoso%2Fpyptax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunobcardoso%2Fpyptax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunobcardoso%2Fpyptax/lists"}