kpy
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.
Metadata
Release files for kpy 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kpy-0.2.2.tar.gz | 3.9 kB | Without provenance | Details for kpy-0.2.2.tar.gz |
Release files / kpy-0.2.2.tar.gz
| Download URL | kpy-0.2.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b80777ac32656051b97c72b38117f6fad0fa6b139415203b53df1e958715552
|
|
BLAKE2b-256 checksum How to use checksums |
726ab96d1b07d6051671fc723ed544516b098b6d8a33f995f8b61d7633314cc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kpy 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.