py-my-bezeq - Bezeq (MyBezeq) API Python wrapper
This would allow you to logon, fetch various data.
Installation
To install, run:
pip3 install py-my-bezeq
Usage example
from my_bezeq import MyBezeqAPI
api = MyBezeqAPI("1234", "password")
await api.login()
print("Logged in")
print(await api.dasboard.get_dashboard_tab())
Technology and Resources
- Python 3.11 - pre-requisite
- Docker - pre-requisite
- Docker Compose - pre-requisite
- Poetry - pre-requisite
- Ruff
Please pay attention on pre-requisites resources that you must install/configure.
How to install, run and test
Environment variables
Use this section to explain each env variable available on your application
| Variable | Description | Available Values | Default Value | Required |
|---|---|---|---|---|
| ENV | The application enviroment | dev / test / qa / prod |
dev |
Yes |
| PYTHONPATH | Provides guidance to the Python interpreter about where to find libraries and applications | ref | . |
Yes |
Note: When you run the install command (using docker or locally), a .env file will be created automatically based on env.template
| Command | Docker | Locally | Description |
|---|---|---|---|
| install | make docker/install |
make local/install |
to install |
| tests | make docker/tests |
make local/tests |
to run the tests with coverage |
| lint | make docker/lint |
make local/lint |
to run static code analysis using ruff |
| lint/fix | make docker/lint/fix |
make local/lint/fix |
to fix files using ruff |
| build image | make docker/image/build |
- | to build the docker image |
| push image | make docker/image/push |
- | to push the docker image |
Helpful commands
Please, check all available commands in the Makefile for more information.
Logging
This project uses a simple way to configure the log with logging.conf to show the logs on the container output console.
Settings
This project uses a simple way to manage the settings with settings.conf and ConfigParser using a config class.
Metadata
Release files for py-my-bezeq 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_my_bezeq-0.1.5.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_my_bezeq-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.9 kB
Release files / py_my_bezeq-0.1.5.tar.gz
| Download URL | py_my_bezeq-0.1.5.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff8c38f3495d91b6e74e67c49430d4315ce9011c5d160b5e030d116856bc98e4
|
|
BLAKE2b-256 checksum How to use checksums |
dc95f5a6ac13f8cf2ae492bf029701a0e4e1ea389c9c87666de455cb3d0c5607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.0 CPython/3.12.3 Linux/6.8.0-1021-azure
|
Release files / py_my_bezeq-0.1.5-py3-none-any.whl
| Download URL | py_my_bezeq-0.1.5-py3-none-any.whl |
|---|---|
| Size | 38.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ff6dbfca7a98f60f70de650e63ba995fab250aa278fed10cb7fdc68bc8a35ac
|
|
BLAKE2b-256 checksum How to use checksums |
09f8d3a801794551e58e0c355553fd8fc390ecfe19da9798f583e4aa4e4bcb0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.0 CPython/3.12.3 Linux/6.8.0-1021-azure
|