Nate Schimmoller
Nate Schimmoller
@0xallie @afparsons @shanewazabbas Type hinting is now available in main due to #175. Will look into a PyPi release for this functionality. It is worth nothing that this specific test...
@gwbarrett that's an interesting observation. Do we know what commit changed the ISO file to the point of it not changing. Could be rather easy to then create a new...
@gwbarrett @mgdelmonte and @jasonoberme I've created PR #124 that should restore this functionality.
This issue has been resolved as of 23.12.7 release. Please update you pycountry version `pip install pycountry --upgrade`
Code to reproduce: ``` python >>> [(i.code, i.parent_code) for i in pycountry.subdivisions if i.parent_code and not i.parent][:5] [('GB-ABC', 'GB-GB-NIR'), ('GB-ABD', 'GB-GB-SCT'), ('GB-ABE', 'GB-GB-SCT'), ('GB-AGB', 'GB-GB-SCT'), ('GB-AGY', 'GB-GB-WLS')] >>> sub =...
@BrandonKMLee @0x802 per our Data Update Policy > Data update policy > No changes to the data will be accepted into pycountry. This is a pure wrapper around the ISO...
@glosophy please see below code @benelgiac it is even easier than that. ``` python >>> import pycountry >>> alpha_3 = 'USA' >>> country = pycountry.countries.get(alpha_3=alpha_3) >>> country.alpha_2 'US' ```
@lucasrodes and @BrandonKMLee, @stfujnkk is correct ``` python >>> import pycountry >>> united_states = pycountry.countries.get(alpha_2='US') >>> united_states.flag '🇺🇸' ```
@jamesshieh @mmaroli is correct you can also use our newly implement search_fuzzy method in main thanks to #175 ``` python pycountry.subdivisions.search_fuzzy('Maryland') [SubdivisionHierarchy(code='LR-MY', country_code='LR', name='Maryland', parent_code=None, type='County'), SubdivisionHierarchy(code='US-MD', country_code='US', name='Maryland', parent_code=None,...