diff --git a/README.md b/README.md index 904f08c..d70965e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ shortcuts had to be taken in many cases. Persil is a pure-Python library. You can install it with pip: ```shell -pip install git+https://github.com/bdura/persil +pip install persil ``` Then, you can play with persil much the same way you would with Parsy, @@ -35,6 +35,11 @@ from persil import regex year = regex(r"\d{4}").map(int) ``` +This example should drive home the point that Persil is heavily inspired by Parsy. +The only difference in this particular case is type-safety: +the persil version knows that `year` is a parser that expects +a `str`, and outputs an `int`. + ### More complex parsers Parsy uses generator functions as a most elegant solution to define complex parser. @@ -138,4 +143,4 @@ def datetime_parser(stream: Stream[str]) -> datetime: return datetime(year, month, day) ``` -That way, the parsers are only defined once. +That way, the lower-level parsers are only defined once. diff --git a/pyproject.toml b/pyproject.toml index 7cde105..ae6e7d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "persil" -version = "0.1.0-alpha0" +version = "0.1.0-alpha1" description = "Persil is a pure-python parsing library, inspired by Parsy" authors = ["Basile Dura "] readme = "README.md"