{"id":18398801,"url":"https://github.com/mongodb-developer/data-federation-tutorial","last_synced_at":"2025-06-15T16:36:40.235Z","repository":{"id":79559165,"uuid":"269721029","full_name":"mongodb-developer/data-federation-tutorial","owner":"mongodb-developer","description":"This repo contains some code samples for DevHub blog posts.","archived":false,"fork":false,"pushed_at":"2023-01-10T13:42:03.000Z","size":9,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-07T05:35:40.959Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb-developer.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}},"created_at":"2020-06-05T17:31:36.000Z","updated_at":"2023-04-14T23:31:22.000Z","dependencies_parsed_at":"2023-05-12T01:15:27.653Z","dependency_job_id":null,"html_url":"https://github.com/mongodb-developer/data-federation-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mongodb-developer/data-federation-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fdata-federation-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fdata-federation-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fdata-federation-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fdata-federation-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/data-federation-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fdata-federation-tutorial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260009398,"owners_count":22945456,"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-11-06T02:24:29.022Z","updated_at":"2025-06-15T16:36:40.224Z","avatar_url":"https://github.com/mongodb-developer.png","language":"Python","readme":"# Data Federation Tutorial\n\nThis repo contains some code samples for a DevCenter blog post: \n\n- [MongoDB Atlas Data Federation Tutorial: Federated Queries and $out to AWS S3](http://developer.mongodb.com/how-to/atlas-data-lake-federated-queries-out-aws-s3)\n\n# Requirements\n\n- Python 3\n- install required libs: `pip3 install -r requirements.txt`\n\n# Run\n\n- For `archive.py` and `federated_queries.py` you will need the URI of your federated instance.\n- For `insert.py` and `remove.py` you will need your MongoDB Atlas URI.\n\n## insert.py\n\nInserts documents in `test.orders` of the specified MongoDB cluster.\n\n## archive.py\n\nThis script uses the new $out stage in order to archive docs from our Atlas cluster to a S3 JSON file.\n\n## remove.py\n\nRemoves the documents that we have archived.\n\n## federated_queries.py\n\nThis script checks that we can still access 100% of the data using the federated instance.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fdata-federation-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Fdata-federation-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fdata-federation-tutorial/lists"}