{"id":15587854,"url":"https://github.com/beaglefoot/pyspark-venv","last_synced_at":"2025-03-29T09:18:06.242Z","repository":{"id":98862729,"uuid":"512274837","full_name":"Beaglefoot/pyspark-venv","owner":"Beaglefoot","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-09T20:00:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:54:51.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beaglefoot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-07-09T20:00:37.000Z","updated_at":"2022-07-09T20:00:55.000Z","dependencies_parsed_at":"2023-04-17T11:38:53.240Z","dependency_job_id":null,"html_url":"https://github.com/Beaglefoot/pyspark-venv","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"ce1db6710cd501c0ab64843673bee1b9d51c09e1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fpyspark-venv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fpyspark-venv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fpyspark-venv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fpyspark-venv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beaglefoot","download_url":"https://codeload.github.com/Beaglefoot/pyspark-venv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162147,"owners_count":20733357,"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":[],"created_at":"2024-10-02T22:04:29.955Z","updated_at":"2025-03-29T09:18:06.218Z","avatar_url":"https://github.com/Beaglefoot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyspark-venv\n\nThis is an experiment to test if it's possible to mix spark jobs with customized virtual environments.\n\n## How to install\n\nIt's not really necessary to install top-level dependencies except for proper IDE support:\n```\npoetry install\n```\n\nInstall customized virtual environment:\n```\ncd myvenv\npoetry install\n```\n\nThis is mounted as volume to all spark nodes.\n\n## How to run\n\nStart all containers:\n```\ndocker-compose up\n```\n\nJump into spark master node container:\n```\ndocker-compose exec spark bash\n```\n\nInside of container:\n```\nspark-submit /main.py\n```\n\nThe output:\n```\n--- venv ----\n+----------+---------+----------+\n|first_name|last_name|instrument|\n+----------+---------+----------+\n|      John| Coltrane|       Sax|\n|       Joe|     Pass|    Guitar|\n|     Louis|Armstrong|   Trumpet|\n+----------+---------+----------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaglefoot%2Fpyspark-venv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeaglefoot%2Fpyspark-venv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaglefoot%2Fpyspark-venv/lists"}