Skip to main content
Help us improve Python packaging – donate today!

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)

Release history Release notifications

This version
History Node

0.2.1

History Node

0.2.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
rozipparser-0.2.1.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None Sep 19, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page