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
uv sync                  # install dev deps (pytest, hypothesis, ...)
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 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.5.tar.gz (518.9 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.5-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bytelings-0.1.5.tar.gz
  • Upload date:
  • Size: 518.9 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.5.tar.gz
Algorithm Hash digest
SHA256 859f18e7bd6e03ba83754805c25d50cfa0f18311cebc1684a01edd2224e17ec7
MD5 e5bb71b830a1c8139e8308a72fb8b10d
BLAKE2b-256 1ca81bb743dd7ff964e911564050a9b3babab8764d9a0e62e0391629390af163

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: bytelings-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e65b87aabba52ce5af9e8df9e2adb2626786102754ad8aea667ae57f2a0a67fa
MD5 244a3f24c626a03772bc8938d5b22c45
BLAKE2b-256 1db2c85fe70d85d0c0b77cb708217d28c3666f926faea729674439e39ec61e4a

See more details on using hashes here.

Provenance

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