{"id":15359726,"url":"https://github.com/redhog/swissarmykitchensink","last_synced_at":"2025-04-15T07:55:51.505Z","repository":{"id":7159374,"uuid":"8458955","full_name":"redhog/swissarmykitchensink","owner":"redhog","description":"Swiss army kitchen sink for all things to do with database queries and data conversion / editing from the command line.","archived":false,"fork":false,"pushed_at":"2016-01-27T14:06:35.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:57:40.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://redhog.org/db_export","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/redhog.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}},"created_at":"2013-02-27T15:29:22.000Z","updated_at":"2017-05-19T03:22:04.000Z","dependencies_parsed_at":"2022-08-19T17:50:54.970Z","dependency_job_id":null,"html_url":"https://github.com/redhog/swissarmykitchensink","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fswissarmykitchensink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fswissarmykitchensink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fswissarmykitchensink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fswissarmykitchensink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhog","download_url":"https://codeload.github.com/redhog/swissarmykitchensink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248594191,"owners_count":21130316,"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-01T12:45:56.960Z","updated_at":"2025-04-15T07:55:51.488Z","avatar_url":"https://github.com/redhog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# db_export\nA simple utility to export and import CSV data to/from any sql database supported by a DB API 2.0 compatible python library.\n\nUsage:\n\n    db_export.py expr=\"select * from foo\" \u003e file.csv\n    db_export.py expr=\"insert into foo (bar, fie) values(%(bar)s, %(fie)s)\" \u003c file.csv\n\nOther parameters:\n\n    conn=psycopg2\n    conn=pyPgSQL.PgSQL\n    conn=MySQLdb\n    format=kml\n\nConnection parameters (same name as to the connect() function of the respective driver:\n\n    host=localhost\n    user=username\n    passwd=password\n    db=dbname\n\n# skyconvert\nConverts between various data list containers. Supported formats:\n\n    json (list containing objects)\n    geojson (features with properties)\n    csv (optionally containing json in some columns)\n\nCan for example be used to convert between Pybossa tasks.json format and a geojson\ncontainer format allowing you to sort through and filter the tasks visually in\ne.g. QGis, and then convert them back for import into Pybossa.\n\nUsages:\n\n    convert.py INFILE OUTFILE\n\nExamples:\n\n    convert.py tasks.json tasks.geojson\n    convert.py tasks.geojson tasks.json\n    convert.py tasks.geojson tasks.csv\n    convert.py tasks.csv tasks.json\n\n# jsonedit\nEdits json files using jsonpaths\n\nFor more information on jsonpaths see http://goessner.net/articles/JsonPath/\n\nThere are three possible usages:\n\n    jsonedit.py infile.json outfile.json '$..bbox'\n\nThis will compile a list of all bbox attribute values\n\n    jsonedit.py infile.json outfile.json '$..options' '{\"layer\": \"47-11\"}'\n\nThis will replace all options attribute values with the json object {\"layer\": \"47-11\"}\n\n    jsonedit.py infile.json outfile.json '$..bbox' delete\n\nThis will delete all bbox attributes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhog%2Fswissarmykitchensink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhog%2Fswissarmykitchensink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhog%2Fswissarmykitchensink/lists"}