py-my-bezeq


Namepy-my-bezeq JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryBezeq API wrapper for my-bezeq interface
upload_time2024-11-01 08:03:12
maintainerNone
docs_urlNone
authorGuy Khmelnitsky
requires_python<4.0,>=3.11
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```python
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](https://www.python.org/downloads/release/python-3110/) - **pre-requisite**
- [Docker](https://www.docker.com/get-started) - **pre-requisite**
- [Docker Compose](https://docs.docker.com/compose/) - **pre-requisite**
- [Poetry](https://python-poetry.org/) - **pre-requisite**
- [Ruff](https://github.com/astral-sh/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](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH) | `.` | Yes

*Note: When you run the install command (using docker or locally), a .env file will be created automatically based on [env.template](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](Makefile) for more information*.

## Logging

This project uses a simple way to configure the log with [logging.conf](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](settings.conf) and [ConfigParser](https://docs.python.org/3/library/configparser.html) using a [config class](./src/config/settings.py).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "py-my-bezeq",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Guy Khmelnitsky",
    "author_email": "guykhmel@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/01/9c/07faf714770180f6ff2eec848c2f9741092b6c6643cbd0533229bb684cc0/py_my_bezeq-0.1.4.tar.gz",
    "platform": null,
    "description": "# py-my-bezeq - Bezeq (MyBezeq) API Python wrapper\n\nThis would allow you to logon, fetch various data.\n\n## Installation\nTo install, run:\n```\npip3 install py-my-bezeq\n```\n\n## Usage example\n```python\nfrom my_bezeq import MyBezeqAPI\n\napi = MyBezeqAPI(\"1234\", \"password\")\n\nawait api.login()\nprint(\"Logged in\")\n\nprint(await api.dasboard.get_dashboard_tab())\n```\n\n## Technology and Resources\n\n- [Python 3.11](https://www.python.org/downloads/release/python-3110/) - **pre-requisite**\n- [Docker](https://www.docker.com/get-started) - **pre-requisite**\n- [Docker Compose](https://docs.docker.com/compose/) - **pre-requisite**\n- [Poetry](https://python-poetry.org/) - **pre-requisite**\n- [Ruff](https://github.com/astral-sh/ruff)\n\n*Please pay attention on **pre-requisites** resources that you must install/configure.*\n\n## How to install, run and test\n\n### Environment variables\n\n*Use this section to explain each env variable available on your application*\n\nVariable | Description | Available Values | Default Value | Required\n--- | --- | --- | --- | ---\nENV | The application enviroment | `dev / test / qa / prod` | `dev` | Yes\nPYTHONPATH | Provides guidance to the Python interpreter about where to find libraries and applications | [ref](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH) | `.` | Yes\n\n*Note: When you run the install command (using docker or locally), a .env file will be created automatically based on [env.template](env.template)*\n\nCommand | Docker | Locally | Description\n---- | ------- | ------- | -------\ninstall | `make docker/install` | `make local/install` | to install\ntests | `make docker/tests` | `make local/tests` | to run the tests with coverage\nlint | `make docker/lint` | `make local/lint` | to run static code analysis using ruff\nlint/fix | `make docker/lint/fix` | `make local/lint/fix` | to fix files using ruff\nbuild image | `make docker/image/build` | - | to build the docker image\npush image | `make docker/image/push` | - | to push the docker image\n\n**Helpful commands**\n\n*Please, check all available commands in the [Makefile](Makefile) for more information*.\n\n## Logging\n\nThis project uses a simple way to configure the log with [logging.conf](logging.conf) to show the logs on the container output console.\n\n## Settings\n\nThis project uses a simple way to manage the settings with [settings.conf](settings.conf) and [ConfigParser](https://docs.python.org/3/library/configparser.html) using a [config class](./src/config/settings.py).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Bezeq API wrapper for my-bezeq interface",
    "version": "0.1.4",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f0fffd62bbf73aff5da0acdefc175f1cc695f89f58002ed39274e07150f7fc3",
                "md5": "1b7e5b77b1b084c9766c951e75d56a49",
                "sha256": "71bdaaf1a1e400e36fc3c0be74082ad3870f79087855e0efdaef09252b81e920"
            },
            "downloads": -1,
            "filename": "py_my_bezeq-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1b7e5b77b1b084c9766c951e75d56a49",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 38524,
            "upload_time": "2024-11-01T08:03:11",
            "upload_time_iso_8601": "2024-11-01T08:03:11.706032Z",
            "url": "https://files.pythonhosted.org/packages/6f/0f/ffd62bbf73aff5da0acdefc175f1cc695f89f58002ed39274e07150f7fc3/py_my_bezeq-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "019c07faf714770180f6ff2eec848c2f9741092b6c6643cbd0533229bb684cc0",
                "md5": "48ea001cab5eec840a0c2c5b5390c1b4",
                "sha256": "109f931bdf0eadc7539b30983919f4b8d4442fcba2bd8ec87cf130d57f6434cb"
            },
            "downloads": -1,
            "filename": "py_my_bezeq-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "48ea001cab5eec840a0c2c5b5390c1b4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 22326,
            "upload_time": "2024-11-01T08:03:12",
            "upload_time_iso_8601": "2024-11-01T08:03:12.957610Z",
            "url": "https://files.pythonhosted.org/packages/01/9c/07faf714770180f6ff2eec848c2f9741092b6c6643cbd0533229bb684cc0/py_my_bezeq-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-01 08:03:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "py-my-bezeq"
}
        
Elapsed time: 0.40167s