Compile Python to Optimized C++
Shed Skin is a restricted-Python-to-C++ compiler that translates implicitly statically typed Python programs into optimized C++ code, delivering speedups of 1-100x over CPython.
Quick start
Get up and running with Shed Skin in minutes
Install Shed Skin
Write compatible Python code
Compile to C++
shedskin build command to compile your Python code:build/ directory.Key features
Everything you need to accelerate Python performance
Type inference
Standalone executables
30+ standard modules
Exceptional performance
Boehm GC integration
Extension modules
Explore the documentation
Learn how to use Shed Skin effectively
Core Concepts
Understand typing restrictions, Python subset support, and how Shed Skin works under the hood.
Learn the fundamentalsGuides
Step-by-step tutorials for writing compatible code, creating extension modules, and optimizing performance.
Read the guidesCLI Reference
Complete command-line reference for build, translate, and all compilation options.
View CLI docsExamples
Explore 80+ real-world examples including games, algorithms, and performance benchmarks.
Browse examplesPerformance comparison
Shed Skin delivers exceptional performance improvements over CPython and other Python implementations
Benchmark: Sieve of Eratosthenes with n=100,000,000. See the full benchmark suite for more comparisons.
When to use Shed Skin
Good fit
- Computation-intensive Python programs (hundreds to thousands of lines)
- Code that can be made independent of external libraries
- Performance-critical modules in larger Python applications
- Algorithms, simulations, and numeric computations
Not recommended
- Programs heavily dependent on unsupported libraries
- Code using dynamic Python features (eval, getattr, *args)
- Very large codebases (>6,000 lines) due to type inference limitations
- Applications requiring arbitrary-size arithmetic or full Unicode support
Community & support
Get help and connect with other Shed Skin users
GitHub Discussions
Issue Tracker
Contributing
FAQ
Ready to accelerate your Python code?
Start compiling Python to optimized C++ and achieve dramatic performance improvements.
Get Started Now