Skip to main content

Tryton module with countries

Project description

The country module defines the concepts of country and subdivision and comes preloaded with the ISO 3166 list of countries and subdivisions thanks to the pycountry module.

Country

A country is defined by the full name of the country, a code (the ISO country code made of two chars) and the list of subdivisions.

Subdivision

A subdivision is defined by a name, a code and a type (e.g, Capital City, Province, Emirate, etc)

Zip

A zip links a zip code of a country to a city.

Scripts

There are two scripts:

  • trytond_import_countries to create and update countries and subdivisions from the ISO database.
  • trytond_import_zip to create zips by country from the geonames database.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trytond-country, version 5.4.0
Filename, size File type Python version Upload date Hashes
Filename, size trytond_country-5.4.0-py3-none-any.whl (58.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trytond_country-5.4.0.tar.gz (46.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page