PyMegaFon - Manage your MegaFon account
This toolset allows you to automate manipulations with your MegaFon account.
Currently implemented funcions:
- Sign in
- Retrieve account balance
- Retrieve subscriptions status
MegaFon Credentials
In order to obtain login and password follow the instructions: here
Quick start
There are two ways to use this "product": as a CLI tool and as a python module.
Install pymegafon python package:
$ python3 -m pip install --user pymegafon
Run in CLI
$ python3 -m pymegafon --help
Check balance
$ python3 -m pymegafon -l 79210001111 -p rND0mPw --check-balance
INFO:root:Signing in...
INFO:root:Balance: 302.44
Check internet subscription remainings
$ python3 -m pymegafon -l 79210001111 -p rND0mPw --check-remainings
INFO:root:Signing in...
INFO:root:Option: 'Интернет в роуминге Европа 70Мб' (Total: 70 МБ, Available: 70 МБ)
INFO:root:Option: 'Интернет в роуминге Ост.стр 10Мб' (Total: 10 МБ, Available: 10 МБ)
INFO:root:Option: 'Интернет в роуминге СНГ 80Мб' (Total: 80 МБ, Available: 80 МБ)
INFO:root:Option: 'Интернет в роуминге Поп.стр 50Мб' (Total: 50 МБ, Available: 50 МБ)
INFO:root:Option: 'Интернет' (Total: 30 ГБ, Available: 19.84 ГБ)
Ccredentials via environment
You can pass your credentials via environment variables. This way just ommit auth related CLI parameters.
$ export MEGAFON_LOGIN="79210001111"
$ export MEGAFON_PASSWORD="rND0mPw"
$ python3 -m pymegafon --check-remainings
Reporting bugs
Please, use GitHub issues.
Requesting new functionality
Please, use GitHub issues.
Release files for pymegafon 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymegafon-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pymegafon-1.1.1-py3-none-any.whl
| Download URL | pymegafon-1.1.1-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
323aeb2bc24b8db256ed6a91b0a88b87441204ed94772e1068da36f5a909a2df
|
|
BLAKE2b-256 checksum How to use checksums |
deb4550f90f56bdeb71b611f331b26e565a1867ed942a1dbf10546c30813fd96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
|