Skip to main content

Bezeq API wrapper for my-bezeq interface

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_my_bezeq-0.1.3.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

py_my_bezeq-0.1.3-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file py_my_bezeq-0.1.3.tar.gz.

File metadata

  • Download URL: py_my_bezeq-0.1.3.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for py_my_bezeq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4090472d5d4cd3e1229c2d8a3de121560c2e086a87d5886485d88d6426c28ffd
MD5 81d57edd375fab845bd29ef30f3cf9c2
BLAKE2b-256 1972215da22e37c02bd6761131609a875b99b9f30a55607dc93e26fc9fcdd529

See more details on using hashes here.

File details

Details for the file py_my_bezeq-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: py_my_bezeq-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for py_my_bezeq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb6f05446c67f5247f0f8b1a7f489e1d7a969bdc78e4702ffea12c72ad09c92
MD5 b3b7e78a4fb81aec7f2747e1ff80896c
BLAKE2b-256 20eea7e7ec63cc71385c63c3635fe66e3fcaa32b39ae3759e105a13fe4cfd2c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page