{"id":21064083,"url":"https://github.com/telzhou618/x-tools","last_synced_at":"2025-05-16T02:32:20.670Z","repository":{"id":105142563,"uuid":"448731684","full_name":"telzhou618/x-tools","owner":"telzhou618","description":"x-tools is a collection of tools developed in Python","archived":false,"fork":false,"pushed_at":"2023-01-13T05:57:23.000Z","size":39,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T18:52:49.092Z","etag":null,"topics":["http","python3","requests","tools"],"latest_commit_sha":null,"homepage":"","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/telzhou618.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}},"created_at":"2022-01-17T02:38:23.000Z","updated_at":"2023-08-22T11:40:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"75be69f8-a194-4495-b578-3d8f1a80068e","html_url":"https://github.com/telzhou618/x-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Fx-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Fx-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Fx-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telzhou618%2Fx-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telzhou618","download_url":"https://codeload.github.com/telzhou618/x-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456053,"owners_count":22074086,"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":["http","python3","requests","tools"],"created_at":"2024-11-19T17:48:14.671Z","updated_at":"2025-05-16T02:32:20.659Z","avatar_url":"https://github.com/telzhou618.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x-tools\n\nX-tools is a collection of tools developed in Python\n\nCommands:\n\n```shell\n  file      File download\n  password  Password generate\n  request   Http request tools\n  data      Data processor\n```\n## Requirements\nPython 3.9+\n\n## Install\n\n```shell\ncurl -fsSL https://raw.githubusercontent.com/telzhou618/x-tools/main/install.sh | bash\n```\n\n## Example:\n\n### Data convert  processor\n\nUsage: x-tools data [OPTIONS]\n\nOptions:\n\n```shell\n  -csv-to-sql,    --csv-to-sql TEXT         Convert csv to sql\n  -csv-to-json,   --csv-to-json TEXT        Convert csv to json                           \n  -csv-to-jsonl,  --csv-to-jsonlines TEXT   Convert csv to jsonlines    \n  -csv-to-xls,    --csv-to-xls TEXT         Convert csv to xls,Deprecated\n  -csv-to-xlsx,   --csv-to-xlsx TEXT        Convert csv to xlsx\n  -d,             --divide-limit INTEGER    Limit number of batch sql generated\n  -o,             --out-file TEXT           Output to file\n  --help                                    Show this message and exit.\n```\n\nExample:\n\n```shell\n # Convert CSV data into SQL statements, and separate every 1000 into batch statements\n x-tools data -csv-to-sql /home/user.csv -d 1000 -o ./tb_user.sql\n```\n\n### Download file\n\nUsage: x-tools file [OPTIONS]\nOptions:\n\n```shell\n  -url, --url TEXT    file url  [required]\n  -name, --name TEXT  Picture rename\n  --help              Show this message and exit.\n```\n\nExample:\n\n```shell\nx-tools file -url https://vscode.cdn.azure.cn/stable/e5a624b788d92b8d34d1392e4c4d9789406efe8f/VSCodeUserSetup-x64-1.51.1.exe\n```\n\n### Password generate\n\nUsage: x-tools password [OPTIONS]\n\n```shell\nOptions:\n  -c, --count INTEGER       Length of password, default is 16 chars\n  -A, --upper-az BOOLEAN    Contain characters[A~Z]\n  -a, --letter-az BOOLEAN   Contain characters[a~z]\n  -n, --number BOOLEAN      Contain characters[0~9]\n  -s, --special BOOLEAN     Contain characters[!@#$%^\u0026*]\n  -all, --all-char BOOLEAN  Contain all characters\n  -o, --out-file TEXT       Output to file\n  -his, --history BOOLEAN   History generated password\n  --help                    Show this message and exit.\n```\n\nExample:\n\n```shell\n# generate password length is 16 chars and out to file\nx-tools password -c 16 -o ./pw.txt \n\u003e EPMhqHb#*ZtM0dHI\n\n# view history\nx-tools password -his\n\n```\n\n### Http request\n\nUsage: x-tools request [OPTIONS] URL\n\nOptions:\n\n```shell\n  -m, --method [get|post]         Request method\n  -h, --headers TEXT              Headers dict\n  -p, --params TEXT               Params dict\n  -j, --json-params TEXT          Json data dict\n  -f, --files TEXT                Upload files\n  -fr, --format-result [text|json] Format return data\n  --help                          Show this message and exit.\n```\n\nExample:\n\n```shell\n# get\nx-tools request https://www.httpbin.org/get\n# post\nx-tools request https://www.httpbin.org/post -m post -j {\\\"p1\\\":\\\"v1\\\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelzhou618%2Fx-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelzhou618%2Fx-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelzhou618%2Fx-tools/lists"}