browserinfo-0.2.0
توضیحات
API wrapper for browser-info.net - retrieve UA strings
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | browserinfo-0.2.0 |
| نام | browserinfo |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Chris Landa |
| ایمیل نویسنده | stylesuxx@gmail.com |
| آدرس صفحه اصلی | https://github.com/stylesuxx/browserinfo |
| آدرس اینترنتی | https://pypi.org/project/browserinfo/ |
| مجوز | MIT |
Browserinfo
===========
A lightwight python wrapper for
`browser-info.net <http://www.browser-info.net/>`__ to retrieve UA
strings
|Build Status| |Downloads| |Documentation Status|
What does browserinfo do?
-------------------------
It allows you to retrieve user agent strings, sorted by popularity or
most recent.
Usage example
-------------
.. code:: python
>>> import browserinfo
>>> browserinfo.recent(1)
['Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36\n']
>>> browserinfo.popular(1)
['Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)']
Installation
------------
Use pip:
::
pip install -U browserinfo
Building doc
------------
From the root of the directory run:
::
sphinx-apidoc -o docs/ browserinfo -f && cd docs && make html && cd ..
Building Dist Package
---------------------
To build a distributable package run:
::
python setup.py sdist
.. |Build Status| image:: https://travis-ci.org/stylesuxx/browserinfo.svg?branch=master
:target: https://travis-ci.org/stylesuxx/browserinfo
.. |Downloads| image:: https://img.shields.io/pypi/dm/browserinfo.svg
:target: https://img.shields.io/pypi/dm/browserinfo.svg
.. |Documentation Status| image:: https://readthedocs.org/projects/browserinfo/badge/?version=latest
:target: http://browserinfo.readthedocs.io/en/latest/?badge=latest
نحوه نصب
نصب پکیج whl browserinfo-0.2.0:
pip install browserinfo-0.2.0.whl
نصب پکیج tar.gz browserinfo-0.2.0:
pip install browserinfo-0.2.0.tar.gz