A toolset for interacting with MegaFon account.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymegafon-1.1.1-py3-none-any.whl.
File metadata
- Download URL: pymegafon-1.1.1-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
323aeb2bc24b8db256ed6a91b0a88b87441204ed94772e1068da36f5a909a2df
|
|
| MD5 |
b70c5ec7359015e106da83dbf8922cca
|
|
| BLAKE2b-256 |
deb4550f90f56bdeb71b611f331b26e565a1867ed942a1dbf10546c30813fd96
|