{"id":24986983,"url":"https://github.com/hitthecodelabs/memory-usage-profiler","last_synced_at":"2025-03-29T10:47:22.856Z","repository":{"id":209119374,"uuid":"723281763","full_name":"hitthecodelabs/Memory-Usage-Profiler","owner":"hitthecodelabs","description":"Python script designed for monitoring the sizes of variables in memory","archived":false,"fork":false,"pushed_at":"2023-11-25T07:03:00.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T11:43:56.824Z","etag":null,"topics":["memory","memory-management","python","script"],"latest_commit_sha":null,"homepage":"","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/hitthecodelabs.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}},"created_at":"2023-11-25T06:54:04.000Z","updated_at":"2023-12-02T02:10:56.000Z","dependencies_parsed_at":"2023-11-25T08:20:35.917Z","dependency_job_id":"f96e7681-896d-4863-b332-2882095199f4","html_url":"https://github.com/hitthecodelabs/Memory-Usage-Profiler","commit_stats":null,"previous_names":["hitthecodelabs/memory-usage-profiler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FMemory-Usage-Profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FMemory-Usage-Profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FMemory-Usage-Profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FMemory-Usage-Profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitthecodelabs","download_url":"https://codeload.github.com/hitthecodelabs/Memory-Usage-Profiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174531,"owners_count":20735413,"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","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":["memory","memory-management","python","script"],"created_at":"2025-02-04T11:35:10.332Z","updated_at":"2025-03-29T10:47:22.827Z","avatar_url":"https://github.com/hitthecodelabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memory-Usage-Profiler\n\nThis repository contains a Python script designed for monitoring the sizes of variables in memory, especially tailored for environments like Google Colab or Jupyter Notebooks.\n\n## Overview\n\nThe script provides functions to list variables along with their memory sizes in a human-readable format. This can be particularly useful in data-intensive environments where efficient memory management is crucial.\n\n## Features\n\n- **Human-Readable Format**: Converts byte sizes into a more readable format (e.g., KB, MB).\n- **Size Calculation**: Calculates the size of variables, including nested structures like lists, dictionaries, and custom objects.\n- **Top N Variables**: Lists the top N variables consuming the most memory.\n- **Pandas DataFrame Output**: Displays the results in a structured and readable table using Pandas DataFrame.\n\n## Usage\n\nTo use the script, simply import it into your Python environment and call the `list_variables_size` function. \n\n```python\nimport memory_monitor\n\n# List top 10 variables by size\nmemory_monitor.list_variables_size()\n```\n\nYou can adjust the number of variables displayed by passing a different number to the function.\n\n## Requirements\n\n- Python 3.x\n- Pandas\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitthecodelabs%2Fmemory-usage-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitthecodelabs%2Fmemory-usage-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitthecodelabs%2Fmemory-usage-profiler/lists"}