{"id":18573098,"url":"https://github.com/buganini/bastpath","last_synced_at":"2025-05-15T23:12:40.506Z","repository":{"id":66771602,"uuid":"576563315","full_name":"buganini/bastpath","owner":"buganini","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T10:21:37.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T23:12:39.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/buganini.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-12-10T08:34:47.000Z","updated_at":"2022-12-10T21:35:12.000Z","dependencies_parsed_at":"2023-07-30T21:15:26.683Z","dependency_job_id":null,"html_url":"https://github.com/buganini/bastpath","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/buganini%2Fbastpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fbastpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fbastpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fbastpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buganini","download_url":"https://codeload.github.com/buganini/bastpath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436950,"owners_count":22070949,"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-11-06T23:08:03.511Z","updated_at":"2025-05-15T23:12:40.486Z","avatar_url":"https://github.com/buganini.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XMLTaggedPOSSelector\nA CSS-selector-like language for XML-Tagged POS querying\n\n# How it works\nSelector is converted to XPath (2.0 for regex function)\n```\n\u003e python3 bastpath.py\na\n//a\n\n*\n//*\n\na=b\n//a[((string(.)=\"b\"))]\n\na,b=c,'d',\"e\"\n//*[((name()=\"a\" or name()=\"b\") and (string(.)=\"c\" or string(.)=\"d\" or string(.)=\"e\"))]\n\na..=b\n//*[((starts-with(name(), \"a\")) and (string(.)=\"b\"))]\n\n..a=b\n//*[((ends-with(name(), \"a\")) and (string(.)=\"b\"))]\n\n..a..,b=c\n//*[((contains(name(), \"a\") or name()=\"b\") and (string(.)=\"c\"))]\n\n/x/i,b=c\n//*[((matches(name(), \"x\", \"i\") or name()=\"b\") and (string(.)=\"c\"))]\n\na=..b\n//a[((ends-with(string(.), \"b\")))]\n\n..a=..b\n//*[((ends-with(name(), \"a\")) and (ends-with(string(.), \"b\")))]\n\na=b..\n//a[((starts-with(string(.), \"b\")))]\n\na=..b..\n//a[((contains(string(.), \"b\")))]\n\na=!..b..\n//a[((not(contains(string(.), \"b\"))))]\n\n!a=b\n//*[((name()!=\"a\") and (string(.)=\"b\"))]\n\na,b=c\n//*[((name()=\"a\" or name()=\"b\") and (string(.)=\"c\"))]\n\na b c\n//a//b//c\n\na\u003eb \u003e c\n//a/b/c\n\na b\u003eb,c,!d, e\n//a//b/*[((name()=\"b\" or name()=\"c\" or name()!=\"d\" or name()=\"e\"))]\n\na b=/x/\n//a//b[((matches(string(.), \"x\")))]\n\na b=/'x\"'/i\n//a//b[((matches(string(.), concat(\"'\",\"x\"\",\"'\"), \"i\")))]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuganini%2Fbastpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuganini%2Fbastpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuganini%2Fbastpath/lists"}