{"id":20872491,"url":"https://github.com/romnn/mongoimport","last_synced_at":"2025-05-12T13:33:51.541Z","repository":{"id":57515889,"uuid":"243566801","full_name":"romnn/mongoimport","owner":"romnn","description":"CLI and go library for importing data from CSV, JSON or XML files into MongoDB.","archived":false,"fork":false,"pushed_at":"2021-02-03T22:13:07.000Z","size":153,"stargazers_count":3,"open_issues_count":9,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T16:02:48.334Z","etag":null,"topics":["cli","csv","golang","import","importer","ingest-data","json","loader","mongodb","pipeline","xml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/romnn.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}},"created_at":"2020-02-27T16:46:47.000Z","updated_at":"2021-02-03T22:13:10.000Z","dependencies_parsed_at":"2022-08-28T16:50:10.348Z","dependency_job_id":null,"html_url":"https://github.com/romnn/mongoimport","commit_stats":null,"previous_names":["romnnn/mongoimport"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fmongoimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fmongoimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fmongoimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fmongoimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romnn","download_url":"https://codeload.github.com/romnn/mongoimport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253748343,"owners_count":21957911,"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":["cli","csv","golang","import","importer","ingest-data","json","loader","mongodb","pipeline","xml"],"created_at":"2024-11-18T06:19:06.294Z","updated_at":"2025-05-12T13:33:51.267Z","avatar_url":"https://github.com/romnn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mongoimport\n\n[![Build Status](https://github.com/romnn/mongoimport/workflows/test/badge.svg)](https://github.com/romnn/mongoimport/actions)\n![GitHub](https://img.shields.io/github/license/romnn/mongoimport)\n[![GoDoc](https://godoc.org/github.com/romnn/mongoimport?status.svg)](https://godoc.org/github.com/romnn/mongoimport)\n[![Test Coverage](https://codecov.io/gh/romnn/mongoimport/branch/master/graph/badge.svg)](https://codecov.io/gh/romnn/mongoimport)\n[![Release](https://img.shields.io/github/release/romnn/mongoimport)](https://github.com/romnn/mongoimport/releases/latest)\n[![Docker Pulls](https://img.shields.io/docker/pulls/romnn/mongoimport)](https://hub.docker.com/r/romnn/mongoimport)\n\nCLI and go library for importing data from CSV, JSON or XML files into MongoDB.\n\n```bash\ngo run github.com/romnn/mongoimport/cmd/mongoimport --db-user=root --db-password=example csv \u003cpath-to-csv-files\u003e\n```\nYou can also download pre built binaries from the [releases](https://github.com/romnn/mongoimport/releases) page.\n\nFor a list of options, run\n```bash\ngo run github.com/romnn/mongoimport/cmd/mongoimport csv --help\n```\n\n#### Usage as a library\n\nUsing the tool as a standalone CLI tool is great for quick loading of a few files. However, you might need more fine-grained control over what files are imported into which collection or perform additional pre/post processing (e.g. parsing timestamps). For this use case, we offer a very extensivle and modular API for configuring your imports.\n\n```golang\nimport \"github.com/romnn/mongoimport\"\n\n// example t.b.a\n```\n\nFor more examples, see `examples/`.\n\n#### Development\n\nAll commits are automatically built and tested via github actions. In order to pass the required checks it is strongly recommended to install the repositories pre commit hooks (assuming you are in the repositories root):\n```bash\npip install pre-commit invoke bump2version\npre-commit install\n```\n\nThe pre commit hooks will run a number of go tools. Try to run `pre-commit run --all-files` and check for missing tools. You might need to install some of those:\n```bash\ngo get -u golang.org/x/lint/golint\ngo get -u github.com/fzipp/gocyclo\n```\nIn order to be found, make sure to include `$GOPATH/bin` in your `$PATH` (`$GOPATH` has to be set of course like `export GOPATH=\"$HOME/go` for example).\n\nBefore committing, `pre-commit` is run to make sure all checks pass!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromnn%2Fmongoimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromnn%2Fmongoimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromnn%2Fmongoimport/lists"}