Skip to main content

This package was created for the SatSure Sage GIS team. It is useful for POC matching for all states.

Project description

TerraHarmonize

This package was created for SatSure SAGE. It is designed for matching client data with internal data for proof-of-concept (POC) purposes. It is applicable to all states

Installation

pip install TerraHarmonize

Examples

For changing regional character to English.

from TerraHarmonize import POC_matching

>>> string = '12/अ/1'
>>> print(POC_matching.char_assasin(string,'Hi'))
    '12/A/1'

For getting the index of the best match.

from TerraHarmonize import POC_matching

>>> string = '13/A1'
>>> comparing_list = ['13/A1','14/A/1','12/A/1','13/అ','13-అ/1']
    #correct matching is [0,3,4] index i.e. '13/A1','13/అ','13-అ/1' 
>>> print(POC_matching(string,comparing_list).right_choice_AP(include='normal'))
    [0]
>>> print(POC_matching(string,comparing_list).right_choice_AP(include='both',state='AP'))
    [0, 3, 4]

Adding / inbetween a number and an alphabet.

from TerraHarmonize import POC_matching

>>> data = '13/1AA/BB1/E'
>>> updated_data = POC_matching.string_updation(data,'En')
>>> print(updated_data)
    '13/1/AA/BB/1/E'

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

terraharmonize-0.1.1.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

terraharmonize-0.1.1-py3-none-any.whl (19.3 kB view hashes)

Uploaded Python 3

Supported by

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