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.5.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_my_bezeq-0.1.5.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for py_my_bezeq-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ff8c38f3495d91b6e74e67c49430d4315ce9011c5d160b5e030d116856bc98e4
MD5 6d630c6afbf79ef3dd74f89326905236
BLAKE2b-256 dc95f5a6ac13f8cf2ae492bf029701a0e4e1ea389c9c87666de455cb3d0c5607

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_my_bezeq-0.1.5-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.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for py_my_bezeq-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4ff6dbfca7a98f60f70de650e63ba995fab250aa278fed10cb7fdc68bc8a35ac
MD5 c927f71003e5d5b0188c6c66b2786f6b
BLAKE2b-256 09f8d3a801794551e58e0c355553fd8fc390ecfe19da9798f583e4aa4e4bcb0e

See more details on using hashes here.

Supported by

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