freedompop-1.1.1
توضیحات
Unofficial FreedomPop client library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | freedompop-1.1.1 |
| نام | freedompop |
| نسخه کتابخانه | 1.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jason R. Coombs |
| ایمیل نویسنده | jaraco@jaraco.com |
| آدرس صفحه اصلی | https://github.com/jaraco/freedompop |
| آدرس اینترنتی | https://pypi.org/project/freedompop/ |
| مجوز | - |
.. image:: https://img.shields.io/pypi/v/freedompop.svg
:target: https://pypi.org/project/freedompop
.. image:: https://img.shields.io/pypi/pyversions/freedompop.svg
.. image:: https://img.shields.io/travis/jaraco/freedompop/master.svg
:target: https://travis-ci.org/jaraco/freedompop
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
:alt: Code style: Black
.. .. image:: https://img.shields.io/appveyor/ci/jaraco/freedompop/master.svg
.. :target: https://ci.appveyor.com/project/jaraco/freedompop/branch/master
.. .. image:: https://readthedocs.org/projects/freedompop/badge/?version=latest
.. :target: https://freedompop.readthedocs.io/en/latest/?badge=latest
Unofficial FreedomPop Client library, inspired by
`freedompop-telegram <https://github.com/freedompop-telegram>`_.
This library provides a simple Pythonic API to a selection of calls available
through the undocumented and unsupported FreedomPop API.
Configuration
=============
All configuration is solicited through various environment variables.
App Credentials:
- FREEDOMPOP_API_USERNAME
- FREEDOMPOP_API_PASSWORD
- FREEDOMPOP_APP_VERSION
For these, you may extract them from an APK or re-use ones such as
`those published here
<https://github.com/wodim/freedompop-telegram/blob/master/config.py.example>`_.
Account Credentials:
- FREEDOMPOP_USERNAME
- FREEDOMPOP_PASSWORD
These are the e-mail address and password used to authenticate to the
FreedomPop web site.
Other variables that may be used:
- FREEDOMPOP_DEVICE_ID
- FREEDOMPOP_DEVICE_SID
- FREEDOMPOP_DEVICE_TYPE
- FREEDOMPOP_RADIO_TYPE
- FREEDOMPOP_PUSH_TOKEN
Usage
=====
Command-Line
------------
Once installed, the package provides a command-line client. For any of
the API methods that require no parameters, you may invoke it from
the command line and see the JSON response. For example::
$ python -m freedompop 'get phone account info'
{'accountExternalId': None,
'accountExternalRefId': '...',
'accountId': '...',
...
The command invoked can use space-separated, dash-separated, or
underscore-separated names.
Programmatic
------------
For other applications, it's possible to construct and invoke the API
programmatically::
>>> import freedompop
>>> client = freedompop.Client.from_env()
>>> client.get_phone_account_info()
{...}
Read the docs or review the source for the methods available.
نیازمندی
| مقدار | نام |
|---|---|
| - | autocommand |
| - | requests-toolbelt |
| - | tempora |
| - | jaraco.functools |
| - | sphinx |
| >=3.2 | jaraco.packaging |
| >=1.9 | rst.linker |
| !=3.7.3,>=3.5 | pytest |
| - | pytest-checkdocs |
| - | pytest-flake8 |
| - | pytest-black-multipy |
| - | pytest-cov |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl freedompop-1.1.1:
pip install freedompop-1.1.1.whl
نصب پکیج tar.gz freedompop-1.1.1:
pip install freedompop-1.1.1.tar.gz