config_default_behaviour #1

Merged
Hazel merged 16 commits from config_default_behaviour into main 2025-06-12 14:28:04 +00:00
Showing only changes of commit 4abc43ac1c - Show all commits

View File

@ -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
```