{"id":15896244,"url":"https://github.com/numberoverzero/simplex","last_synced_at":"2025-04-02T18:26:00.393Z","repository":{"id":27106971,"uuid":"30574534","full_name":"numberoverzero/simplex","owner":"numberoverzero","description":"simple subset of regex that 'compiles' to python regexs","archived":false,"fork":false,"pushed_at":"2015-02-18T15:46:58.000Z","size":156,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T09:12:22.179Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numberoverzero.png","metadata":{"files":{"readme":"README.markdown","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":"2015-02-10T04:16:42.000Z","updated_at":"2015-02-18T15:46:58.000Z","dependencies_parsed_at":"2022-08-31T19:40:11.345Z","dependency_job_id":null,"html_url":"https://github.com/numberoverzero/simplex","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/numberoverzero%2Fsimplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Fsimplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Fsimplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Fsimplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numberoverzero","download_url":"https://codeload.github.com/numberoverzero/simplex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246867769,"owners_count":20846811,"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-06T09:07:11.871Z","updated_at":"2025-04-02T18:26:00.360Z","avatar_url":"https://github.com/numberoverzero.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simplex 0.1.2\n\nDownloads https://pypi.python.org/pypi/simplex\n\nSource https://github.com/numberoverzero/simplex\n\nsimple subset of regex that 'compiles' to python regexs\n\n# Installation\n\n`pip install simplex`\n\n# Getting Started\n\n```python\nimport simplex\n\npattern = \"Hello, [name] (aka [nick])!\"\nregex = simplex.compile(pattern)\n\nstring = \"Hello, earth (aka world)!\"\nmatch = regex.match(string)\nprint(match.groupdict())\n\n```\n\n```python\nimport simplex\n\npattern = \"\u003c[el]\u003e[value]\u003c/[:ref(el)]\u003e\"\nregex = simplex.compile(pattern)\n\nstring = \"\u003ch1\u003eHello, World!\u003c/h1\u003e\"\nmatch = regex.match(string)\nprint(match.groupdict())\n\n```\n\n# Versioning  and RFC2812\n\n* Simplex follows semver for its **public** API.\n\n  * Currently, `compile` is the only public function of simplex.\n  * You should not rely on the internal api staying the same between minor versions.\n  * Over time, private apis may be raised to become public.  The reverse will never occur.\n\n\n# Contributing\nContributions welcome!  Please make sure `tox` passes (including flake8) before submitting a PR.\n\n### Development\nsimplex uses `tox`, `pytest` and `flake8`.  To get everything set up:\n\n```\n# RECOMMENDED: create a virtualenv with:\n#     mkvirtualenv simplex\ngit clone https://github.com/numberoverzero/simplex.git\npip install tox\ntox\n```\n\n# API\n\n### compile(pattern)\n\nTODO: document the rules for compiling patterns\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumberoverzero%2Fsimplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumberoverzero%2Fsimplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumberoverzero%2Fsimplex/lists"}