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
Closed
Adjuste README.MD file so it instructions are related to python and not the old R#123PedroDnT wants to merge 6 commits into
PedroDnT wants to merge 6 commits into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.