{"id":17923566,"url":"https://github.com/zzstoatzz/prefect-memory-profiling","last_synced_at":"2025-09-06T11:33:34.982Z","repository":{"id":45664320,"uuid":"513901768","full_name":"zzstoatzz/prefect-memory-profiling","owner":"zzstoatzz","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-12T02:45:15.000Z","size":509,"stargazers_count":22,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-25T19:59:07.420Z","etag":null,"topics":["memory-profiling","prefect","python","workflow-orchestration"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/prefect-memory-profiling/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzstoatzz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-14T12:56:00.000Z","updated_at":"2023-03-23T22:01:27.000Z","dependencies_parsed_at":"2024-10-28T20:44:39.243Z","dependency_job_id":"c4189f23-0b4b-4dd2-bdcb-4751d0b634e2","html_url":"https://github.com/zzstoatzz/prefect-memory-profiling","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"8917160cb5043cc4ea71c148bd18cb54b89d12cf"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzstoatzz%2Fprefect-memory-profiling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzstoatzz%2Fprefect-memory-profiling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzstoatzz%2Fprefect-memory-profiling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzstoatzz%2Fprefect-memory-profiling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzstoatzz","download_url":"https://codeload.github.com/zzstoatzz/prefect-memory-profiling/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231918573,"owners_count":18445746,"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-profiling","prefect","python","workflow-orchestration"],"created_at":"2024-10-28T20:44:32.813Z","updated_at":"2025-01-01T19:56:22.645Z","avatar_url":"https://github.com/zzstoatzz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prefect-memory-profiling\n\n## Welcome!\n\nA collection of Prefect Tasks for memory profiling in Prefect 1.0.\n\n## Getting Started\n\n### Python setup\n\nRequires an installation of Python 3.7+.\n\nWe recommend using a Python virtual environment manager such as `pipenv`, `conda` or `virtualenv`.\n\nFor more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).\n\n### Installation\n\nInstall `prefect-memory-profiling` with `pip`:\n\n```bash\npip install prefect-memory-profiling\n```\n\n### Write and run a flow\n\n```python\nfrom prefect import Flow\nfrom prefect_memory_profiling.tasks import profiled_task\n\n@profiled_task(name='My Profiled Task', stream=open('logfile.txt', 'a+'))\ndef resource_intensive_task(n: int = 100):\n    a = [n**n for n in range(2*n)]\n    b = [n**n for n in range(4*n)]\n    c = [n**n for n in range(n**2)]\n                \n    return sum(a + b + c)\n\nwith Flow('Memory Profiled Flow') as flow:\n    resource_intensive_task()\n    \nif __name__ == \"__main__\":\n    flow.run(run_on_schedule=False)\n```\n\n## Resources\n\nIf you encounter any bugs while using `prefect-memory-profiling`, feel free to open an issue in the [prefect-memory-profiling](https://github.com/zzstoatzz/prefect-memory-profiling) repository.\n\nIf you have any questions or issues while using `prefect-memory-profiling`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).\n\n## Development\n\nIf you'd like to install a version of `prefect-memory-profiling` for development, clone the repository and perform an editable install with `pip`:\n\n```bash\ngit clone https://github.com/zzstoatzz/prefect-memory-profiling.git\n\ncd prefect-memory-profiling/\n\npip install -e \".[dev]\"\n\n# Install linting pre-commit hooks\npre-commit install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzstoatzz%2Fprefect-memory-profiling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzstoatzz%2Fprefect-memory-profiling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzstoatzz%2Fprefect-memory-profiling/lists"}