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

bytelings init           # creates ./bytelings/ with curriculum + uv project
cd bytelings
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 creates a ./bytelings/ project folder containing the 135-day curriculum (every day's broken-on-purpose exercises and tests) plus a ready-to-go pyproject.toml + uv.lock. 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.


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 start DAY Jump to a specific day (slug or number).
bytelings reset DAY Start a day over (re-do its rungs).
bytelings init Scaffold the curriculum (just once, at the start).

The intended path is linear — Day 1 → 2 → 3 — because each day builds on the last. If you really need to jump (you're cherry-picking, or you already know Day 5 cold), bytelings start 7 will move you there. Your streak only grows on consecutive completed days.


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.6.tar.gz (522.2 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.6-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bytelings-0.1.6.tar.gz
  • Upload date:
  • Size: 522.2 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.6.tar.gz
Algorithm Hash digest
SHA256 5a84047f70759d46358f6e54daed513ba2f37de01a3f147e3cc5fa7ede04f9c8
MD5 b30937b650ad9a4e1b00c4e385df605a
BLAKE2b-256 52e8618ac6c4e6b5bcfad7359e667ff31668182deee83c263d82f2bf591074ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for bytelings-0.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: bytelings-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 67b42ad0b28804cf6635ef07cb95d4c7d845b3980f9e32b9598c0dc9262099d9
MD5 3e2ac1588daac813650ae50773b4dd27
BLAKE2b-256 be16b0c18c151d58319ea9f0eeda80e94d24972f6e00168e65f7a2218f18da51

See more details on using hashes here.

Provenance

The following attestation bundles were made for bytelings-0.1.6-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