You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

stpstone

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stpstone

Solid financial ETL, analytics and utils with support to global markets.

2.0.29
Source
pipPyPI
Maintainers
1

stpstone stpstone

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Python Version PyPI Version Linting Security License PyPI Downloads Open Issues Contributions Welcome

stpstone (short for stepping stone) is a Python framework designed for ingesting, processing, and analyzing structured and unstructured financial data. It provides tools for ETL (Extract, Transform, Load), quantitative analysis, and derivatives pricing, optimized for financial market applications.

✨ Key Features

🌍 Data Extraction

🇧🇷 Brazilian Markets (B3)

Equities & Derivatives
Fixed Income
Macroeconomic Data
Registries & Regulatory

🇺🇸 US Markets

Equities & ETFs
Macroeconomic Data

🌐 Worldwide Markets

Cryptocurrencies
Global Markets
Global Fixed Income
Credit Ratings & Risk

🔄 Data Transformation

Data Cleaning

Data Standardization

Data Validation

📥 Data Loading

Database Connectors

Cloud Storage

📊 Analytics

Quantitative Analysis

Performance Metrics

Pricing Models

Risk Management

Computer Arithmetic

⚙️ Utilities

Microsoft Office Integration

Data Parsers

Structured Data
Unstructured Data
Data Structure Parsers
Specialized Formats

Data Pipelines

Network Operations

Calendar & Date Utilities

Geographic Data

Data Providers

Trading & Automation

Communication & Notifications

Other Utilities

🏗️ Data Structures & Algorithms

Queue Implementations

Stack Implementations

Tree Structures

🚀 Getting Started

Prerequisites:

  • Python ^3.12

Optional:

  • Pyenv: Installation Guide

  • Makefile (below are some benefits of usage)

    CategoryExample TargetsBenefit
    Package Lifecyclebuild_package_pypi_org, clean_distAutomated PyPI publishing
    Git Workflowsgit_pull_force, gh_protect_mainEnforces branch policies
    CI/CDgh_actions_local_testsLocal pipeline validation
    Code Generationingestion_concrete_creatorFactory pattern automation
    Dev Environmentvscode_setupConsistent IDE setup
  • Makefile Installation Options for Windows:

  • Makefile Installation for MacOS:

  • Makefile Installation for Ubuntu: Preinstalled, no action needed

Installation Guide:

  • Option 1: Pip Install (Recommended) 📌 Available on PyPI

    
     #!/bin/bash
     pip install stpstone
     
  • Option 2: Build from Source

    
      #!/bin/bash
      git clone https://github.com/guilhermegor/stpstone.git
      cd stpstone
      pyenv install 3.12.8
      pyenv local 3.12.8
      poetry install --no-root
      poetry shell
      
  • Setting Up Make (Optional for Build Automation)

    PlatformInstructions
    WindowsInstall via MinGW
    1. Download MinGW installer
    2. Select mingw32-make during installation
    3. Add C:\MinGW\bin to PATH
    4. mingw32-make --version
    MacOSPre-installed or via Xcode CLI tools:
    xcode-select --install
    LinuxInstall via package manager:
    sudo apt-get install build-essential
  • Python Kernel Versioning (Pyenv): pyenv instructions to installation

🧪 Running Tests

Execute unit and integration tests:


#!/bin/bash
poetry run python -m unittest discover -s tests/unit -p "*.py" -v
poetry run python -m unittest discover -s tests/integration -p "*.py" -v

📂 Project Structure


stpstone/
│
├── 📁 .github/
│   ├── 📁 workflows/         # GitHub Actions CI/CD pipelines
│   ├── 📜 CODEOWNERS         # Code ownership definitions
│   └── 📜 PULL_REQUEST_TEMPLATE.md  # PR template
│
├── 📁 .vscode/               # VSCode configuration
│   └── ⚙️ settings.json      # Editor preferences and extensions
│
├── 📁 cli/                   # Command Line Interface components
│
├── 📁 data/                  # Data storage and management
│
├── 📁 docs/                  # Project documentation
│
├── 📁 examples/              # Example implementations
│
├── 📁 img/                   # Visual assets
│
├── 📁 stpstone/              # Core Python package
│   ├── 📁 _config/           # Configuration management
│   ├── 📁 analysis/          # Analytical components
│   ├── 📁 dsa/               # Data structures & algorithms
│   ├── 📁 ingestion/         # Data ingestion pipelines
│   ├── 📁 transformations/   # Data transformation logic
│   ├── 📁 utils/             # Shared utilities
│   └── 🐍 __init__.py        # Package initialization
│
├── 📁 tests/                 # Test suites
│   ├── 📁 unit/              # Unit tests
│   ├── 📁 integration/       # Integration tests
│   └── 📁 performance/       # Performance benchmarking
│
├── 📜 .gitignore             # Git ignore patterns
├── ⚙️ .pre-commit-config.yaml # Pre-commit hook configurations
├── � .python-version        # Pyenv version specification
├── 📜 LICENSE               # MIT License file
├── ⚙️ Makefile              # Automation tasks
├── 📦 poetry.lock           # Exact dependency versions
├── ⚙️ pyproject.toml        # Project metadata and dependencies
├── 📖 README.md             # Project overview
├── 📦 requirements.txt      # Production dependencies
├── 🔧 requirements-dev.txt  # Development dependencies
└── 💻 requirements-venv.txt # Virtual environment setup

👨‍💻 Authors

Guilherme Rodrigues
GitHub
LinkedIn

📜 License

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

🙌 Acknowledgments

  • Inspired by open-source financial libraries and tools

  • This documentation follows a structure inspired by PurpleBooth's README-Template.md.

  • Special thanks to Python community

Keywords

stpstone

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts