Giter Site home page Giter Site logo

shriekdj / indian_address_parser Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 3.1 MB

I Created this library to parse indian address as accurate as possible and this library is opensource so you can contribute to it also.

Home Page: https://github.com/shriekdj/indian_address_parser

License: MIT License

Python 0.40% Jupyter Notebook 99.60%
address-parser python python3 shriekdj indian-address indian-address-parser python-address-parser

indian_address_parser's Introduction

Indian Address Parser In python

I Created this library to parse indian address as accurate as possible and this library is opensource so you can contribute to it also.

This package does not need any dependency at all to work.

You can run your code as follows

Just Do this to install indian_address_parser

pip install https://github.com/shriekdj/indian_address_parser/releases/download/v0.1.0/indian_address_parser-0.1.2-py3-none-any.whl

Currently package is not available directly on PyPi

from indian_address_parser import PostalAddress

postal_address = PostalAddress('Vidya Nagar, Kutagulla Kadiri, ANANTAPUR(Dist), Andhra Pradesh, Pincode - 515541').__dict__
# postal_address = postal_address.parse()

print('pin codes found',postal_address['pin_codes_found'])  # Press Ctrl+F8 to toggle the breakpoint.
print('states found',postal_address['states_found'])  # Press Ctrl+F8 to toggle the breakpoint.

if you have any other suggetion you can write issue on github.

pin codes found ['515541']
states found ['Andhra Pradesh']
{'country': 'india',
 'districts_found': ['anantapur(dist)'],
 'landmarks_found': [],
 'pin_codes_found': ['515541'],
 'raw_address': 'vidya nagar, kutagulla kadiri, anantapur(dist), andhra '
                'pradesh, pincode - 515541',
 'shop_house_nos_found': [],
 'states_found': ['Andhra Pradesh'],
 'street_names_found': [],
 'village_or_citys_found': ['anantapur(dist)'],
 'words_in_address': ['vidya nagar',
                      'kutagulla kadiri',
                      'anantapur(dist)',
                      'pincode - 515541',
                      'andhra pradesh']}

indian_address_parser's People

Contributors

prabhakarindiacom avatar shriekdj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

khanfarhan10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.