[fix][ci skip] Python example, then C
This commit is contained in:
18
README.md
18
README.md
@@ -117,7 +117,15 @@ in the address correct).
|
|||||||
Usage (parser)
|
Usage (parser)
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Here's a C example of the parser API:
|
Here's an example of the parser API using the Python bindings:
|
||||||
|
|
||||||
|
```python
|
||||||
|
|
||||||
|
from postal.parser import parse_address
|
||||||
|
parse_address('The Book Club 100-106 Leonard St Shoreditch London EC2A 4RH, United Kingdom')
|
||||||
|
```
|
||||||
|
|
||||||
|
And an example with the C API:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -146,14 +154,6 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
And the equivalent using the Python bindings:
|
|
||||||
|
|
||||||
```python
|
|
||||||
|
|
||||||
from postal.parser import parse_address
|
|
||||||
parse_address('The Book Club 100-106 Leonard St Shoreditch London EC2A 4RH, United Kingdom')
|
|
||||||
```
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user