Skip to content

Instantly share code, notes, and snippets.

@bat52
bat52 / rsu_gain.py
Last active May 14, 2025 22:06
Calculates tax gains for RSUs fetching data from Yahoo Finance
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This script calculates the acquisition and sell gains for RSUs (Restricted Stock Units) in EUR.
It fetches the acquisition and sell prices from Yahoo Finance, converts them to EUR using the currency exchange rate,
and calculates the gains to be declared for tax purposes.
Requirements:
- yfinance
@bat52
bat52 / pylele_body.py
Created September 9, 2024 19:39
pylele_body with tail block for hollow body, works with trimesh and blender, but fails with cadquery
#!/usr/bin/env python3
"""
Pylele Body
"""
import os
import argparse
import sys