Observed since 20 Oct, 19:22 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Formatting utility for international postal addresses
This is a address formatter that can format addresses in multiple formats that are common in different countries.
For formatting the addresses the worldwide.yml from OpenCageData address-formatting repository is used to format the address according to customs in the country that is been encoded.
The complete project contains actually only one class:
AddressFormatterPublicly accessible method prototypes are:
def __init__(self, config=None):
pass
def format(self, address, country=None):
pass
def one_line(self, address, country=None):
pass
__init__Initialize the address formatter
config: (optional) override default config file to use for the address formatter, defaults to config file included in this packageformatFormat an address in the default layout used in the specified country. Return value may contain line breaks.
address: Dictionary that contains the address parts, see below for recognized keyscountry: Country code of the formatting template to useRecognized keys in address:
attentionhouseroadhouse_numberpostcodecitytownvillagecountystatecountrysuburbcity_districtstate_districtstate_codeneighbourhoodone_lineWorks the same as format but returns a single line of text.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.3.2 | 14 Jul 2023 | 6 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:22 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:dbf1791ecafed60e00903c3dc9905f59f38adb7aa33a2c10bf438df6957618c0