generated from Hazel/python-project
feat: added config to readme
This commit is contained in:
parent
32597c1c9c
commit
4abc43ac1c
11
README.md
11
README.md
@ -74,3 +74,14 @@ country.official_name
|
|||||||
```
|
```
|
||||||
|
|
||||||
If you have an `EmptyCountry` these attributes will all be `None`.
|
If you have an `EmptyCountry` these attributes will all be `None`.
|
||||||
|
|
||||||
|
### Configuring behavior
|
||||||
|
|
||||||
|
If you want to set a fallback country or disable fuzzy search you can do that with the config module.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from pycountry_wrapper import config
|
||||||
|
|
||||||
|
config.fallback_country = "US"
|
||||||
|
config.allow_fuzzy_search = False
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user