{"id":28024432,"url":"https://github.com/talkpython/python-memory-management-course","last_synced_at":"2025-10-14T22:11:39.251Z","repository":{"id":91135480,"uuid":"280720260","full_name":"talkpython/python-memory-management-course","owner":"talkpython","description":"Demo code exploring Python's memory models and collection algorithms from the Talk Python Training course.","archived":false,"fork":false,"pushed_at":"2021-02-11T23:26:51.000Z","size":549,"stargazers_count":44,"open_issues_count":0,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-11T02:11:14.353Z","etag":null,"topics":["course","garbage-collection","memory-management","performance","profiling","python3","video"],"latest_commit_sha":null,"homepage":"https://talkpython.fm/memory","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/talkpython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-18T18:58:55.000Z","updated_at":"2025-02-02T20:36:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"f231407a-46d6-4f95-992e-f8bad8897ad2","html_url":"https://github.com/talkpython/python-memory-management-course","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/talkpython/python-memory-management-course","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talkpython%2Fpython-memory-management-course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talkpython%2Fpython-memory-management-course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talkpython%2Fpython-memory-management-course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talkpython%2Fpython-memory-management-course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talkpython","download_url":"https://codeload.github.com/talkpython/python-memory-management-course/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talkpython%2Fpython-memory-management-course/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021742,"owners_count":26087053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["course","garbage-collection","memory-management","performance","profiling","python3","video"],"created_at":"2025-05-11T02:10:59.765Z","updated_at":"2025-10-14T22:11:39.246Z","avatar_url":"https://github.com/talkpython.png","language":"Python","readme":"# [Python Memory Management and Tips Course](https://talkpython.fm/memory)\n\n[![](./readme_resources/python-memory-mgmt.png)](https://talkpython.fm/memory)\n\nThis very unique course will teach **not just how Python memory management works** \nand how to create code that functions well within that world, it will provide\nmany **concrete techniques, tools, design patterns, and more to make your programs\nmore memory efficient** and computationally faster to boot.\n\nIf Python memory (allocations, clean up, and so on) has always felt like a weird\nblack box that you have had to take for granted, **join this course and open that box**.\nThere are many beautiful and interesting aspects of Python's runtime behavior making\nyour code run. You should understand what's happening on your behalf.\n\n\n## What topics are covered\n\nIn this course, you will:\n\n* Learn how Python variables and data structures actually look in the CPython layer\n* See how **the small object allocator** treats most objects differently than your intuition\n* Understand Python's memory allocation primitives: **blocks**, **pools**, and **arenas**\n* Locate the **elements on C code** responsible for Python memory behavior\n* See **reference counting in action** with live code explorations\n* Discover why **reference counting alone is not enough** for memory cleanup\n* **Work with Python's GC** and see when it's needed, and when it's not \n* **Compare different data structures** to get a sense of their relative size\n* Use multiple clever but simple techniques to **massively reduce memory during function calls**\n* **Lighten up your classes** with properties\n* Leverage multiple memory profilers to **investigate memory usage** line by line and over time\n* And lots more\n\n\n## Who is this course for?\n\nThis course is for **anyone who wants to understand how Python memory is managed \nand make their code more efficient and faster**. If you're tired of Python memory being a black box\nhiding its behavior, turn on the light with this course.\n\nThe student requirements are quite light for this course. You'll need Basic Python language knowledge:\n\n* Classes\n* Functions\n* Properties\n* Variables\n* Loops\n* Iteration\n\n**Note**: All software used during this course, including editors, Python language, etc.,\nare 100% free and open source. You won't have to buy anything to take the course.\n\n## Take the course\n\n[Take the course online today at Talk Python Training](https://talkpython.fm/memory).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalkpython%2Fpython-memory-management-course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalkpython%2Fpython-memory-management-course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalkpython%2Fpython-memory-management-course/lists"}