Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

mobile-phone's model name extractor from user agent

Project Description


Kpy stands for Keitai (Japanese mobile phone) model name extractor on Python.

This module extracts model name of mobile phone/tablet from user agent string.

Currently, This module supports 1007 Japanese mobile phones/tablets.

  • Docomo: 561 models (F501i, 1999. - SO-03H, 2015)
  • au: 91 models (IS01, 2010 - SOV32, 2015; currently supporting only Android models)
  • SoftBank (J-PHONE, Vodafone, Disney mobile, EMOBILE, WILLCOM, Y!mobile): 357 models (J-SH02, 1999. - Nexus 6P, 2015)


$ pip install kpy


import kpy
ua = ('Mozilla/5.0 (Linux; U; Android 4.1.1; ja-jp; HTL21 Build/JRO03C) '
      'AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30')
# => 'HTL21'


  • Supports other countries’ mobilephone
  • Output model series name of mobilephone

Contributions are welcome.


  • MIT License


0.2.1 (2016-03-12)

Resolved installation problem.

0.2 (2015-11-22)

Support 2014’s winter model to 2015’s winter model (docomo, au, softbank)

Support Python 3.5

0.1 (2014-12-02)

Initial release.

Release History

This version
History Node


History Node


History Node


History Node


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
(3.9 kB) Copy SHA256 Hash SHA256
Source None Mar 29, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting