{"id":18985191,"url":"https://github.com/potatomaster101/quotesc","last_synced_at":"2025-07-30T04:05:36.842Z","repository":{"id":115197784,"uuid":"199983631","full_name":"PotatoMaster101/quotesc","owner":"PotatoMaster101","description":"Quote escaper","archived":false,"fork":false,"pushed_at":"2019-08-03T05:24:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T09:48:48.858Z","etag":null,"topics":["escape-double-quotes","escape-inner","mit-license","python3"],"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/PotatoMaster101.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":"2019-08-01T05:34:32.000Z","updated_at":"2020-08-19T12:45:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"1774add8-8e3b-4e55-8cf7-bb65c3d2fb9d","html_url":"https://github.com/PotatoMaster101/quotesc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PotatoMaster101/quotesc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fquotesc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fquotesc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fquotesc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fquotesc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PotatoMaster101","download_url":"https://codeload.github.com/PotatoMaster101/quotesc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fquotesc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267807945,"owners_count":24147352,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["escape-double-quotes","escape-inner","mit-license","python3"],"created_at":"2024-11-08T16:25:05.132Z","updated_at":"2025-07-30T04:05:36.798Z","avatar_url":"https://github.com/PotatoMaster101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quote Escape\nEscapes inner and outer quotes in a string based on their location. \n\n# Usage\nSyntax: \n```\n$ python3 quotesc.py [-h] [-f] [-q QUOTE] [-l LVL] [-o OUTF] input\n```\n\nEscape double quotes from a simple file: \n```\n$ cat test.txt\n\"x\"xx\"xxx\"xx\"x\"\n$ python3 quotesc.py -f test.txt\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n```\n\nEscape double quotes from CLI input: \n```\n$ python3 quotesc.py '\"a\"b\"c\"'\n\"a\\\"b\\\"c\"\n```\n\nChange initial escape level: \n```\n$ python3 quotesc.py '\"a\"b\"c\"' -l 2\n\\\\\\\"a\\\\\\\\\\\\\\\"b\\\\\\\\\\\\\\\"c\\\\\\\"\n```\n\nEscape other characters instead of double quotes: \n```\n$ python3 quotesc.py \"'a'b'c'\" -q \\'\n'a\\'b\\'c'\n```\n\nReset the escape level on newline characters: \n```\n$ cat test.txt\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n\"x\"xx\"xxx\"xx\"x\"\n$ python3 quotesc.py -f test.txt -r\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n\"x\\\"xx\\\\\\\"xxx\\\\\\\"xx\\\"x\"\n```\n\nWrite output to file: \n```\n$ python3 quotesc.py '\"e\"s\"c\"a\"p\"e\"m\"e\"!\"' -o output.txt\n$ cat output.txt\n\"e\\\"s\\\\\\\"c\\\\\\\\\\\\\\\"a\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"p\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"e\\\\\\\\\\\\\\\"m\\\\\\\"e\\\"!\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatomaster101%2Fquotesc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotatomaster101%2Fquotesc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatomaster101%2Fquotesc/lists"}