Skip to main content

Ranch is a dressing… get it?

In which addressing is easy

Doing addressing is hard. There’s too many exceptions, differences and human involvement; making the entire process overwhelmingly depressing.

In which addressing has never been done before

Luckily, we’re not the first people to have faced this problem. Plenty of people have attempted to tackle the problem of addressing, and plenty have succeeded! So no, Ranch isn’t reinventing the wheel entirely. Instead, we’re working with Google’s excellent i18n dataset: downloading it, parsing it, outputting data.

In which I have to do everything myself

Ranch is built as an object to store your address data in. So instead of having you access a bunch of stuff and doing checks yourself, Ranch allows you to enter address field data and poll for whatever the next set of fields is to fill in.

After that you can simply call a str(address) to correctly format the address for the address’ locality. That’s all you need to get a (technically) deliverable postal address from your users.

In which all that made sense

See try_me.py for an example: a commandline-based address form.

Metadata

Release files for Ranch 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for Ranch 0.2.8
File Interpreter ABI Platform
Ranch-0.2.8-py3-none-any.whl Python 3 none any Details

Release files / Ranch-0.2.8-py3-none-any.whl

Download URL Ranch-0.2.8-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93b3197c9173444c6bfb0138b310ccf0de168e346de9246f8c43a8dd09bbb7f1
BLAKE2b-256 checksum
How to use checksums
68f523c723d75bcd3450b41f1d9c205086b471b19da4bcc86bcb957bd868f834
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.0

2 release files

This release

0.2.8 This release

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page