
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
FinPull Core is a lightweight financial data scraping library providing programmatic access to comprehensive financial metrics. This package contains only the essential API functionality, making it suitable for web applications, microservices, and minimal deployments.
pip install finpull-core
from finpull_core import FinancialDataAPI
# Initialize the API
api = FinancialDataAPI()
# Add a ticker for tracking
result = api.add_ticker("AAPL")
print(result)
# {'success': True, 'message': 'Added AAPL', 'ticker': 'AAPL'}
# Retrieve financial data
data = api.get_data("AAPL")
if data['success']:
stock_data = data['data']
print(f"Company: {stock_data['company_name']}")
print(f"Price: ${stock_data['price']}")
print(f"P/E Ratio: {stock_data['pe_ratio']}")
# Batch operations
tickers = ["AAPL", "GOOGL", "MSFT", "TSLA"]
results = api.batch_add_tickers(tickers)
# Export data
export_result = api.export_data("json")
Benchmarked on typical hardware with 10 test runs:
Metric | Value | Details |
---|---|---|
Package Size | 21.9 KB (wheel) | Compressed distribution file |
Installed Size | 134 KB | Uncompressed on disk |
Import Time | 0.0002s (cached) | Cold import: 0.9s, cached: 0.0002s |
Dependencies | 3 packages | requests, beautifulsoup4, yfinance |
API Response | 100-500ms | Per ticker, varies by data source |
# Custom storage location
export FINPULL_STORAGE_FILE="/path/to/custom/storage.json"
# Rate limiting (seconds between requests)
export FINPULL_RATE_LIMIT="2"
Data is stored locally in JSON format:
~/.finpull/data.json
%USERPROFILE%\.finpull\data.json
FinPull Core provides 27 financial metrics per ticker including price, P/E ratio, market cap, earnings data, profitability ratios, and growth metrics. Data is sourced from Finviz and Yahoo Finance with automatic fallback for high availability.
finpull
package)Works in browser environments via Pyodide and Node.js via subprocess calls. See main repository README for integration examples.
from finpull_core import FinancialDataAPI
api = FinancialDataAPI()
# Add and retrieve data
api.add_ticker("AAPL")
data = api.get_data("AAPL")
print(f"Price: ${data['data']['price']}")
# Add multiple tickers
tickers = ["AAPL", "GOOGL", "MSFT", "TSLA"]
results = api.batch_add_tickers(tickers)
print(f"Added {results['summary']['added_count']} tickers")
# Get all data
all_data = api.get_data()
for stock in all_data['data']:
print(f"{stock['ticker']}: ${stock['price']} (P/E: {stock['pe_ratio']})")
# Export to different formats
json_result = api.export_data("json", "portfolio.json")
csv_result = api.export_data("csv", "portfolio.csv")
print(f"Exported {json_result['record_count']} records")
try:
result = api.add_ticker("INVALID_TICKER")
if not result['success']:
print(f"Error: {result['error']}")
except Exception as e:
print(f"Exception: {e}")
For complete functionality including CLI and GUI, use the full package:
pip install finpull
Or switch from core to full package:
pip uninstall finpull-core
pip install finpull
Feature | finpull-core | finpull |
---|---|---|
Size | 21.9 KB | 27.2 KB |
API Access | ✓ | ✓ |
CLI Interface | ✗ | ✓ |
GUI Application | ✗ | ✓ |
Excel Export | ✗ | ✓ |
Web Compatible | ✓ | ✓ |
All API calls are identical between packages - simply change the import statement when switching.
MIT License - see LICENSE file for details.
FAQs
Financial data scraper core API - lightweight programmatic access
We found that finpull-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.