Skip to content

Adjuste README.MD file so it instructions are related to python and not the old R#123

Closed
PedroDnT wants to merge 6 commits into
ropensci:mainfrom
PedroDnT:main
Closed

Adjuste README.MD file so it instructions are related to python and not the old R#123
PedroDnT wants to merge 6 commits into
ropensci:mainfrom
PedroDnT:main

Conversation

@PedroDnT
Copy link
Copy Markdown

No description provided.

google-labs-jules Bot and others added 6 commits August 11, 2025 18:00
…ython package, which is the Python migration of the `rb3` R package.

This initial setup includes:
- A new Poetry project with a `src` layout.
- All necessary main and development dependencies added to `pyproject.toml`.
- Tooling configuration for `ruff` (linting/formatting), `mypy` (strict type checking), and `pytest`.
- A GitHub Actions CI workflow to automate checks (lint, type check, test) on every push and pull request.

This provides us with a solid foundation for the subsequent phases of the migration, including the implementation of the core engine, data loaders, and parsers.
…Phase 2 of the migration plan.

This includes:
- Porting all YAML template files from the original R package.
- A new `Template` class (`src/pyrb3/template.py`) responsible for loading, parsing, and providing access to the YAML template definitions.
- A new `Metadata` dataclass (`src/pyrb3/metadata.py`) that represents the state of a download operation and generates a unique, stable checksum for each operation.
- A suite of unit tests for both the `Template` and `Metadata` components, ensuring they are robust and function correctly.

This core engine provides the foundation for the next phase of development, where I will focus on implementing the data downloaders and parsers.
…tions, porting the logic from the original R package's `R/downloaders.R` file. This completes a major milestone.

Here is a summary of the changes:
- A new `downloaders.py` module was created containing Python equivalents for all R downloader functions (e.g., `simple_download`, `sprintf_download`, `settlement_prices_download`).
- I implemented the custom B3 URL encoding scheme (JSON to base64) used by the index data endpoints.
- I wrote a comprehensive test suite (`tests/test_downloaders.py`) with 11 tests using `requests-mock` to verify the behavior of each downloader without making real network calls.
- The `requests-mock` library was added to the development dependencies.

The downloader module is now feature-complete and robustly tested, ready to be used by the main application logic.
feat: Set up Python project scaffolding for pyrb3
This change introduces two new Python scripts to the repository as examples and tests of the `pyrb3` library's functionality.

- `list_indexes.py`: Connects to the B3 data source to retrieve and display a list of all available stock market indexes.
- `download_index.py`: Downloads the entire available price history for a specified index and saves it to a local CSV file.
Feat: Add Python scripts to list and download B3 indexes
@PedroDnT PedroDnT marked this pull request as draft September 12, 2025 16:46
@PedroDnT PedroDnT marked this pull request as ready for review September 12, 2025 16:48
@PedroDnT PedroDnT closed this Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant