Skip to main content

Small daily exercises to make you fluent at writing and reading code. Python first; C, C++, Rust, and Go on the roadmap.

Project description

bytelings

bytelings

Tiny daily exercises that make code feel like a language you actually speak.

PyPI Python 3.12 License: MIT


Hey 👋

If you kind of know Python (or want to), but still freeze when asked to write something from scratch — this is for you. bytelings is a curriculum that meets you exactly where you are and walks you, day by day, into real fluency.

Install

With uv (recommended — installs as a global CLI in an isolated env):

uv tool install bytelings

Or with pip:

pip install bytelings

Get going

mkdir my-bytelings && cd my-bytelings
bytelings init     # copies the 135-day curriculum into ./curriculum/
bytelings          # starts the watcher — save a file, see green panels

That's it. Save a file. Watch the tests turn green. That's the loop.

What does bytelings init do? It copies the bundled curriculum (135 day folders + phase projects, all the broken-on-purpose exercises and tests) into a fresh ./curriculum/ in your current directory. That's your working copy — you edit it, your progress saves alongside it, and bytelings reset DAY restores any day to its starter state. You only run init once, in a fresh folder.


The whole idea

Most courses dump you into "implement merge sort" without first letting you read one, fix a broken one, or fill in a half-written one. bytelings is a ladder. You climb one rung at a time and you don't move on until your fingers know it.

Each day teaches one concept, and only one. You go through it like this:

1. Read  —  a short, story-styled page. Not a textbook chapter. Just enough to feel the idea.

2. Drill  —  a broken file with a couple of # TODO lines. Fix them. Tests turn green when you nail it.

3. Guided  —  here's a function signature and a docstring. You write the body.

4. Solo  —  same idea, no scaffold. Hidden tests. You write it cold, like real work.

5. Apply  —  a tiny project chunk that uses what you just wrote. The concept lands somewhere real.

The watcher (bytelings) runs your tests on every save and bumps you to the next rung when you pass. When you finish all 5 rungs, you wake up tomorrow on Day 2.


Concept pages don't read like textbooks

Same-shape lessons make brains autopilot. So bytelings rotates across 8 different storytelling styles — and you'll never see the same one two days in a row:

  • Story"It's Monday, 9 AM. You just got hired. Here's the repo..."
  • Pain-point — show ugly buggy slow code first, then the fix
  • Compare two ways — two snippets side by side, you pick the right one
  • Code tour — read a real piece of code line by line
  • Trace — predict what each line prints before you run it
  • Build it yourself"Pretend Python doesn't have this. How would you build it?"
  • Metaphor — concepts mapped onto things from real life
  • Detective — there's a bug, the concept is the only fix

Your brain stays alert. The fluency builds.


What you'll learn — the 135-day map

Phase Days What clicks for you
1. Python core fluency 31 Strings, lists, dicts, functions stop feeling like things you look up.
2. Pythonic tools & I/O 27 Comprehensions, async, dataclasses, files — you reach for the right one without thinking.
3. Quality & production 21 Real-world skills: pytest, logging, profiling, picking threads-vs-async-vs-processes.
4. Data structures from scratch 19 You build stacks, linked lists, trees, heaps, hash tables — yourself, in Python.
5. Algorithms 25 Recursion, sort, graphs, DP, greedy, backtracking — pattern recognition you'll use forever.
6. Packaging, AST, capstone 12 You ship a real CLI tool you'd actually use.

After every phase, a 3-day project combines everything you just learned: contacts manager → async website snapshotter → parallel log analyzer → tiny in-memory database → maze pathfinder. Phase 6 ends in an 8-day capstone where you build, test, and ship a CLI tool of your own design.


Commands

bytelings Start the watcher. Save → tests run → next rung.
bytelings today What you're working on right now.
bytelings progress Your streak and completion bar.
bytelings list Every day with ✔ / ○ markers.
bytelings hint [DAY] Re-read the concept page anytime.
bytelings run [DAY] Run the current rung's tests once, no watch.
bytelings reset DAY Start a day over.
bytelings init Scaffold the curriculum (just once, at the start).

Why this exists

I built bytelings because I was decent at Python — I could read code, edit code, get things working — but I still froze when asked to write something non-trivial from scratch. I'd reach for docs. I'd google syntax. The fluency wasn't there, and no course I tried was filling that gap.

Two things were missing from every curriculum I tried:

1. They taught topics in blocks — all syntax → all data structures → all algorithms. Research keeps showing this is the worst shape for long-term retention. Interleaved practice — mixing topics every day — wins by a huge margin. bytelings interleaves on purpose.

2. They skipped the bottom rungs. They'd parachute you onto "implement merge sort" without first showing you a worked example to read, a broken version to fix, or a scaffolded version to fill in. Of course people freeze. The fix is to climb every rung.

bytelings is the curriculum I wished existed.


Roadmap

The runner doesn't care what language you're learning. Each track is just curriculum content under the same bytelings UX.

  • Python — 135 days, shipped
  • C — pointers, memory, the why behind undefined behavior
  • C++ — RAII, templates, modern C++
  • Rust — ownership, lifetimes, fearless concurrency
  • Go — interfaces, goroutines, the philosophy

Contributing

PRs welcome — bug fixes, content polish, new languages. Adding a language is mostly: a new bytelings/_curriculum/<lang>/ tree and a small per-language test driver. Runner core is ~1000 lines of friendly Python.

Credits

Inspired by Rustlings, Codewars, and 100 Days of Code.

License

MIT. Fork it. Remix it. Build your own track for any language you love.


The fluency comes from the reps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bytelings-0.1.2.tar.gz (513.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bytelings-0.1.2-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file bytelings-0.1.2.tar.gz.

File metadata

  • Download URL: bytelings-0.1.2.tar.gz
  • Upload date:
  • Size: 513.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bytelings-0.1.2.tar.gz
Algorithm Hash digest
SHA256 759ea51e489d29c3c0c27bf6b406fde9a4149771bef0fd963d9b56a26d5a8264
MD5 57b38ecfa374db45037c7c7fec80f9d8
BLAKE2b-256 8907f33f21cd53b5c98022d734b5f723d3a0b97c66f51ba71810ff08edbd7036

See more details on using hashes here.

Provenance

The following attestation bundles were made for bytelings-0.1.2.tar.gz:

Publisher: release.yml on madalintat/bytelings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bytelings-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bytelings-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bytelings-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac69fc8e108176c1ba75799672a4db34616fd05666ccea92ee1a43d41529f0ce
MD5 e904f9fbabd7ce029bd886e5483eaaf8
BLAKE2b-256 e44819b6750278dc202dacb9648a1b15b464f795af52ea06f982bc1c8d9ab95f

See more details on using hashes here.

Provenance

The following attestation bundles were made for bytelings-0.1.2-py3-none-any.whl:

Publisher: release.yml on madalintat/bytelings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page