{"id":29441045,"url":"https://github.com/eeemoon/emplace","last_synced_at":"2026-05-19T04:34:46.056Z","repository":{"id":300019654,"uuid":"1004912971","full_name":"eeemoon/emplace","owner":"eeemoon","description":"Modern and easy way to handle placeholders.","archived":false,"fork":false,"pushed_at":"2025-07-08T20:56:03.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-18T21:15:15.896Z","etag":null,"topics":["placeholder","processing","python","replace","template","text"],"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/eeemoon.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,"zenodo":null}},"created_at":"2025-06-19T11:24:10.000Z","updated_at":"2026-02-15T08:52:33.000Z","dependencies_parsed_at":"2025-06-22T01:01:33.280Z","dependency_job_id":null,"html_url":"https://github.com/eeemoon/emplace","commit_stats":null,"previous_names":["eeemoon/placeholders","eeemoon/emplace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eeemoon/emplace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeemoon%2Femplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeemoon%2Femplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeemoon%2Femplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeemoon%2Femplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eeemoon","download_url":"https://codeload.github.com/eeemoon/emplace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeemoon%2Femplace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33201937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"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":["placeholder","processing","python","replace","template","text"],"created_at":"2025-07-13T13:01:35.417Z","updated_at":"2026-05-19T04:34:46.041Z","avatar_url":"https://github.com/eeemoon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pypi](https://img.shields.io/pypi/v/emplace)](https://pypi.org/project/emplace)\n[![python](https://img.shields.io/badge/python-3.10+-blue)](https://www.python.org/downloads)\n[![codecov](https://codecov.io/gh/eeemoon/emplace/graph/badge.svg?token=4CGDOZ7ADZ)](https://codecov.io/gh/eeemoon/emplace)\n\n# emplace\nModern and easy way to handle placeholders.\n\nThis package allows you to define text placeholders and process them dynamically. It's like `str.format()`, but gives you much more flexibility.\n\n## Features\n- **Reg**ular **Ex**pressions to find placeholders.\n- Custom delimiters (`%var%`, `{var}`, `${var}` etc.).\n- Modern API using asyncio and decorators.\n- Nested placeholders (`{greet_{name}}`).\n- Type safety using annotations.\n- No additional dependencies.\n\n## Installation\nTo install this module, run the following command:\n```\npip install emplace\n```\n\n## Usage\nExample of creating a formatter with single placeholder.\n```python\nfrom emplace import Formatter, placeholder\n\nclass MyFormatter(Formatter):\n    @placeholder(r\"upper_(?P\u003ctext\u003e.*)\")\n    def upper_ph(self, text: str) -\u003e str:\n        return text.upper()\n    \nformatter = MyFormatter()\nresult = await formatter.format(\"Hello, {upper_world}!\")\nprint(result) # Hello, WORLD!\n```\n\n## Examples\nYou can check out more examples [here](examples).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feeemoon%2Femplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feeemoon%2Femplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feeemoon%2Femplace/lists"}