{"id":23872,"library":"id-phonenumbers","title":"id-phonenumbers","description":"Indonesian phone number parser and validator, based on Google's libphonenumber. Current version 0.4.0, with occasional releases. Parses, formats, and validates Indonesian mobile and fixed-line numbers, including area codes and operator prefixes.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/SeiryuZ/id_phonenumbers","tags":["indonesia","phone","number","validation","libphonenumber"],"install":[{"cmd":"pip install id-phonenumbers","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from id_phonenumbers import PhoneNumber","symbol":"Number","correct":"from id_phonenumbers import Number"},{"symbol":"parse","correct":"from id_phonenumbers import parse"},{"symbol":"data","correct":"from id_phonenumbers import data"}],"quickstart":{"code":"from id_phonenumbers import parse, is_valid_number, format_number, PhoneNumberFormat\n\nnumber = '+6281234567890'\nparsed = parse(number, 'ID')\nprint('Valid:', is_valid_number(parsed))\nprint('Formatted:', format_number(parsed, PhoneNumberFormat.INTERNATIONAL))","lang":"python","description":"Parse, validate, and format an Indonesian phone number."},"warnings":[{"fix":"Use `from id_phonenumbers import ...` in your code.","message":"The import module is named `id_phonenumbers` (underscore, not hyphen). Many users mistakenly use `id-phonenumbers` as import name, which is invalid.","severity":"gotcha","affected_versions":"all"},{"fix":"Always pass `region='ID'` or `region=None` if number includes country code but better to be explicit.","message":"The parse function requires the second argument `region='ID'` to ensure Indonesian number parsing. Omitting it may lead to incorrect parsing for numbers without country code.","severity":"gotcha","affected_versions":"all"},{"fix":"Downgrade to Python 3.11 or use a virtual environment. Watch for updates.","message":"Version 0.4.0 does not yet support Python 3.12+ officially (check setup.py). Using with Python 3.12+ may cause import errors due to removed APIs.","severity":"deprecated","affected_versions":"0.4.0"}],"env_vars":null,"search_vec":"'0.4.0':17 'area':33 'base':10 'code':34 'current':15 'fix':29 'fixed-lin':28 'format':22 'googl':12 'id':2 'id-phonenumb':1 'includ':32 'indonesia':38 'indonesian':4,25 'libphonenumb':14,42 'line':30 'mobil':26 'number':6,31,40 'occasion':19 'oper':36 'pars':21 'parser':7 'phone':5,39 'phonenumb':3 'prefix':37 'releas':20 'valid':9,24,41 'version':16","created_at":"2026-05-01T08:10:04.326834+00:00","updated_at":"2026-05-01T08:10:04.326834+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.4.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/SeiryuZ/id_phonenumbers","docs":null,"changelog":null,"pypi":"https://pypi.org/project/id-phonenumbers/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["communication","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}