{"id":26159815,"url":"https://github.com/dathere/datapump","last_synced_at":"2025-12-24T22:18:47.589Z","repository":{"id":51227932,"uuid":"359882721","full_name":"dathere/datapump","owner":"dathere","description":"Pump time-series data into the CKAN datastore using a simple filesystem-based queuing system.","archived":false,"fork":false,"pushed_at":"2021-05-25T13:45:58.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-08T21:10:39.343Z","etag":null,"topics":["ckan","iot","time-series"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dathere.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":"2021-04-20T16:30:19.000Z","updated_at":"2021-05-19T19:08:54.000Z","dependencies_parsed_at":"2022-09-23T06:12:30.388Z","dependency_job_id":null,"html_url":"https://github.com/dathere/datapump","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dathere%2Fdatapump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dathere%2Fdatapump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dathere%2Fdatapump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dathere%2Fdatapump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dathere","download_url":"https://codeload.github.com/dathere/datapump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243027604,"owners_count":20224241,"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":["ckan","iot","time-series"],"created_at":"2025-03-11T11:36:01.365Z","updated_at":"2025-12-24T22:18:42.565Z","avatar_url":"https://github.com/dathere.png","language":"Python","readme":"# datapump\nPump time-series data into the CKAN datastore using a simple filesystem-based queueing system.\n\nRequires: Python 3.8\n\nInstallation:\n=============\n\nLinux, Mac, Windows Powershell:\n```\npython3 -m venv datapumpenv\n. datapumpenv/bin/activate\ncd datapumpenv\ngit clone https://github.com/dathere/datapump.git\ncd datapump\npip install -r requirements.txt\n```\n\nWindows CMD:\n```\npython3 -m venv datapumpenv\ndatapumpvenv\\Scripts\\activate\ncd datapumpenv\ngit clone https://github.com/dathere/datapump.git\ncd datapump\npip install -r requirements.txt\n```\n\nUsage:\n======\n\nLinux, Mac, Windows Powershell:\n```\n. datapumpenv/bin/activate\ncd datapumpenv/datapump\npython datapump.py --config datapump.ini\n```\n\nWindows CMD:\n```\ndatapumpenv\\Scripts\\activate\ncd datapumpenv\\datapump\npython datapump.py --config datapump.ini\n```\n\nCommand line parameters:\n------------------------\n\n```\npython datapump.py --help\nUsage: datapump.py [OPTIONS]\n\n  Pumps time-series data into CKAN using a simple filesystem-based queueing system.\n\nOptions:\n  --inputdir PATH      The directory where the job files are located.  [default: ./input]\n  --processeddir PATH  The directory where successfully processed inputfiles are moved.  [default: ./processed]\n  --problemsdir PATH   The directory where unsuccessful inputfiles are moved.  [default: ./problems]\n  --datecolumn TEXT    The name of the datetime column.  [default: DateTime]\n  --dateformats TEXT   List of dateparser format strings to try one by one. See https://dateparser.readthedocs.io\n                       [default: %y-%m-%d %H:%M:%S, %y/%m/%d %H:%M:%S, %Y-%m-%d %H:%M:%S, %Y/%m/%d %H:%M:%S]\n\n  --host TEXT          CKAN host.  [required]\n  --apikey TEXT        CKAN api key to use.  [required]\n  --verbose            Show more information while processing.\n  --debug              Show debugging messages.\n  --logfile PATH       The full path of the main log file.  [default: ./datapump.log]\n  --config FILE        Read configuration from FILE.\n  --version            Show the version and exit.\n  --help               Show this message and exit.\n```\n\nNote that parameters are parsed and processed in priority order - through environment variables, a config file, or through the command line interface.\n\nEnvironment variables should be all caps and prefixed with `DATAPUMP_`, for example:\n\n```\nexport DATAPUMP_APIKEY=\"MYCKANAPIKEY\"\nexport DATAPUMP_HOST=\"https://ckan.example.com\"\n```\n\nJob JSON\n--------\n\nThe input directory is scanned for `*-job.json` files in date descending order, executing each job per the JSON configuration.\n\nFor example:\n\n```\n{\n\t\"InputFile\": \"./samples/zone1_airquality_*.csv\",\n\t\"TargetOrg\": \"etl-test\",\n\t\"TargetPackage\": \"iot-test\",\n\t\"TargetResource\": \"air-quality\",\n\t\"PrimaryKey\": \"DateTime,Sensor_id\",\n\t\"Dedupe\": \"last\",\n\t\"Truncate\": false\n}\n```\n\nNote the `Dedupe` attribute specifies if datapump should automatically handle duplicate rows using the `PrimaryKey` attribute to determine duplication.\n\nIt can be set to `first`, `last` or ''.\n`first` : Drop duplicates except for the first occurrence. - `last` : Drop duplicates except for the last occurrence. - '' : Do not drop duplicates.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdathere%2Fdatapump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdathere%2Fdatapump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdathere%2Fdatapump/lists"}