{"id":30725429,"url":"https://github.com/jmisilo/jm-stacksync","last_synced_at":"2025-09-03T12:49:24.969Z","repository":{"id":312080947,"uuid":"1045522835","full_name":"jmisilo/jm-stacksync","owner":"jmisilo","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-28T15:39:26.000Z","size":22282,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-28T18:41:25.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/jmisilo.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,"zenodo":null}},"created_at":"2025-08-27T10:01:05.000Z","updated_at":"2025-08-28T15:39:31.000Z","dependencies_parsed_at":"2025-08-28T18:41:30.471Z","dependency_job_id":null,"html_url":"https://github.com/jmisilo/jm-stacksync","commit_stats":null,"previous_names":["jmisilo/jm-stacksync"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jmisilo/jm-stacksync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Fjm-stacksync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Fjm-stacksync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Fjm-stacksync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Fjm-stacksync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmisilo","download_url":"https://codeload.github.com/jmisilo/jm-stacksync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Fjm-stacksync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273446121,"owners_count":25107152,"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-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2025-09-03T12:49:22.666Z","updated_at":"2025-09-03T12:49:24.955Z","avatar_url":"https://github.com/jmisilo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JM x Stacksync assignement\n\nAssignement: https://drive.google.com/file/d/1uaPRGXqNqbCqGKqULqSw2CQ2dcid3T3r/view\n\nDisclaimers:\n\n```\n- The assignement example result mentions `stdout`, however the assignement itself mentions to not include it, only the return value should be captured. I excluded it.\n```\n\nTo run the project you have to build the docker image:\n\n```bash\ndocker build -t stacksync . --no-cache\n```\n\nAnd then run it:\n\n```bash\ndocker run -p 8080:8080 stacksync\n```\n\nYou can test the API with curl:\n\n```bash\ncurl -X POST \"https://jm-stacksync-1043345859573.europe-central2.run.app/execute\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"script\": \"import pandas as pd\\n\\ndef main():\\n    df = pd.DataFrame({\\\"a\\\": [1, 2, 3], \\\"b\\\": [4, 5, 6]})\\n    return {\\\"data\\\": df.to_dict(), \\\"shape\\\": list(df.shape)}\"\n  }'\n```\n\nThere are some test cases, in `test.sh` that you can run to verify the functionality (use --local flag to run it locally):\n\n```bash\nchmod +x test.sh\n\n./test.sh\n```\n\nCommand used to deploy to GCP Cloud Run:\n\n```\ngcloud run deploy jm-stacksync \\\n  --source . \\\n  --platform managed \\\n  --region europe-central2 \\\n  --allow-unauthenticated \\\n  --port 8080 \\\n  --memory 512Mi \\\n  --cpu 1 \\\n  --timeout 60s \\\n  --execution-environment gen2\n```\n\nThank you for the opportunity to work on this assignement!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmisilo%2Fjm-stacksync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmisilo%2Fjm-stacksync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmisilo%2Fjm-stacksync/lists"}