Skip to main content

mobile-phone's model name extractor from user agent

Project description

kpy

travis-ci.org coveralls.io downloads latest version license

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)

INSTALATION

$ pip install kpy

USAGE

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')
kpy.extract(ua)
# => 'HTL21'

TODO

  • Supports other countries’ mobilephone

  • Output model series name of mobilephone

Contributions are welcome.

License

  • MIT License

CHANGES

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.

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

kpy-0.2.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file kpy-0.2.1.tar.gz.

File metadata

  • Download URL: kpy-0.2.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kpy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dff6b38c8a976c3b1f883879fc61f8f0b910182a71905ca5c87bbf6aa86c68e1
MD5 68b58ec2604492a8bef7c1d1b3d07c65
BLAKE2b-256 1c39eacbedc4b8ffebea3e9452a1f51930bcafdacd5cdcd41761cf28418f5952

See more details on using hashes here.

Supported by

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