The open-source programming language and learning platform for mastering AP CSP code—
Practice, experiment, and learn with real, runnable code inspired by the AP Computer Science Principles exam.
⭐ Star us, it motivates us a lot!
Spindle bridges the gap between AP® CSP theory and hands-on programming. Work with live code that mirrors exam syntax and logic—online or natively on your desktop, for free, forever.
- ✨ Why Spindle?
- 💡 Core Principles
- 💻 Sample Code
- 🔨 How To Use
- 🚂 Contributing
- 🌐 Community & Support
- 🧑⚖️ Legal Stuff
- Exam-Ready: Get comfortable with AP CSP-style questions and code in an environment that mimics the real exam.
- Accessible for Everyone: Use Spindle on almost any device—no installation needed for web usage!
- Free & Open Source: We believe learning should be accessible to all. No paywalls, ever.
- Community-Powered: Spindle is built by and for students, educators, and enthusiasts. We welcome your ideas, bug reports, and contributions.
- Quality: Spindle code is designed to look and function as close as possible to the AP CSP exam experience.
- Simplicity: We make learning core computer science principles easy for all students, regardless of background.
- Affordability: Spindle is—and always will be—100% free. No expensive textbooks or subscriptions required.
- Transparency: Our project is fully open-source. Everything from our code to our roadmap is public and community-driven.
- Accessibility: Not everyone has the latest laptop or is familiar with command lines. Spindle runs in your browser or on nearly any desktop.
# Displays "Hello Spindle!"
DISPLAY("Hello Spindle!")
Spindle can be run online in your browser or natively on your desktop. Choose what’s easiest for you!
- Visit Spindle's website: https://spdl.glitch.me/code
- Type your code in the "Code Input" box (try the sample above if you’re new!)
- Click the Run button to see your code in action.
-
Download Spindle:
- Go to our Releases page and download
Spindle.py
andshell.py
. - Make sure you also have Python installed (Download Python).
- Go to our Releases page and download
-
Create a Project Folder:
- Make a new folder (name it anything you like) for your Spindle files.
-
Extract Spindle Files:
- Put
Spindle.py
andshell.py
in your folder.
- Put
-
Write Your Spindle Code:
- Make a new text file ending in
.spdl
(e.g.,my_first_program.spdl
) and write your code.
- Make a new text file ending in
-
Run Your Code:
- Simple Method:
- Run
shell.py
(double-click or use Python). - Type
RUN("[FILENAME].spdl")
(replace[FILENAME]
with your code file).
- Run
- Advanced Method:
- Open a terminal or command prompt.
- Use
cd
to go to your folder. - Run:
python shell.py RUN("[FILENAME].spdl")
- Simple Method:
Open source means everyone can help!
- Found a bug? Report it in issues—it helps us make Spindle better.
- Have coding skills? Help us add features, fix bugs, or improve documentation.
- Not sure where to start? Check Good First Issues or CONTRIBUTING.md.
We appreciate all contributions—big or small. Contributors are always credited!
Tip: Have a question? Ask in Discussions or open an issue.
The Spindle programming language, website, logo, and brand are licensed under the MIT License.
You fully own all programs you create with Spindle. For more, see the LICENSE file or ask us!
Disclaimer:
"AP CSP" refers to "AP® Computer Science Principles", a trademark of College Board. This project is not affiliated with, endorsed by, or sponsored by College Board.
AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this project.
💡 Join us and shape the next generation of computer science education!