Skip to main content

Parse official zip code documents from the Romanian Government

Project description

RO Zip Data Parser

Build Status

This project is used to parse zip code files from the official Romanian government website.

You can find the official xls files following this link: http://data.gov.ro/dataset/coduri-postale-romania

Installation

pip install rozipparser

Usage

This project can be used standalone to parse and convert the official documents or as a module inside another application.

Important! The official data file is in the old xls format (Microsoft Excel <2007). The file MUST be converted in Office Open XML file format (Microsoft Excel 2007 - xlsx).

Command line

Convert to csv python parser.py <inputfile> --csv <output.csv>

Module

from codeparser import CodeParser

parser = CodeParser("<PATH TO XLSX FILE")
codes = parser.get_codes()

Each entry in the returned list is a model.Code instance.

Please see the test files for additional usage information.

License

CoduriPostaleDataParser is released under the MIT license. See LICENSE for details

Contact

Follow me on twitter [@mcostea](https://twitter.com/mcostea)

Project details


Download files

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

Source Distribution

rozipparser-0.2.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file rozipparser-0.2.1.tar.gz.

File metadata

  • Download URL: rozipparser-0.2.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rozipparser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c8604fd1b784082863e886428e87d89f1565a5cf16ddc9eecd439052d5ad8943
MD5 7a4cdc658d7187ab1aa16495ad6af611
BLAKE2b-256 971c36de6d4ef7e6af4b3c239cc976c6c5ff1c18c85fde4f9144a108ad193a11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page