bcv-api


Namebcv-api JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryParses BCV html to get prices of currencies in VEF
upload_time2024-10-05 18:45:12
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licensebcv-api small library that access BCV to get prices of currencies. Copyright (C) 2024 Sivefunc This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
keywords bcv exchange api venezuela http
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # bcv-api
bcv-api is a small (fast ?) python library that connects to
[BCV](https://www.bcv.org.ve) to parse html and get the current price of
currencies in VEF. 
<div align="center">
<img
    src="https://codeberg.org/Sivefunc/bcv-api/raw/branch/main/readme_res/logo.png"
    alt="bcv logo"
    width="200"
    height="200"/>
</div>

# Requeriments
- python3 >= 3.9
- requests >= 2.32.3
- dataclasses and typing (standard libraries)

# Using bcv-api.
<div align="center">
<img
    src="https://codeberg.org/Sivefunc/bcv-api/raw/branch/main/readme_res/exchange-rates.png"
    alt="exchange rates"
    width="200"
    height="200"/>
</div>

```python3
# importing BCV and creating object.
from bcv_api import BCV
bcv_con = BCV()

# Get a currency
eur = bcv_con.currencies[0]
print(eur, bcv_con.get_currency(eur))

# Get all currencies
for currency, price in bcv_con.get_currencies().items():
    print(currency, price)

# Use last html saved by get_currencies() to not use internet in this query.
cny = bcv_con.currencies[1]
print(cny, bcv_con.get_currency(cny, use_last_html=True))
```

# Installation
You can install BCV-api from [Pypi](https://pypi.org/project/bcv-api/)
```sh
pip install bcv-api
```

## Made by :link: [Sivefunc](https://gitlab.com/sivefunc)
## Licensed under :link: [GPLv3](https://codeberg.org/Sivefunc/bcv-api/src/branch/main/LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "bcv-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "bcv, exchange, api, venezuela, http",
    "author": null,
    "author_email": "sivefunc <sivefunc@tuta.io>",
    "download_url": "https://files.pythonhosted.org/packages/c9/57/4e01355fb55d58b6404a621233dae41f84c31ccc84d5bc8524154423dcce/bcv_api-1.0.3.tar.gz",
    "platform": null,
    "description": "# bcv-api\nbcv-api is a small (fast ?) python library that connects to\n[BCV](https://www.bcv.org.ve) to parse html and get the current price of\ncurrencies in VEF. \n<div align=\"center\">\n<img\n    src=\"https://codeberg.org/Sivefunc/bcv-api/raw/branch/main/readme_res/logo.png\"\n    alt=\"bcv logo\"\n    width=\"200\"\n    height=\"200\"/>\n</div>\n\n# Requeriments\n- python3 >= 3.9\n- requests >= 2.32.3\n- dataclasses and typing (standard libraries)\n\n# Using bcv-api.\n<div align=\"center\">\n<img\n    src=\"https://codeberg.org/Sivefunc/bcv-api/raw/branch/main/readme_res/exchange-rates.png\"\n    alt=\"exchange rates\"\n    width=\"200\"\n    height=\"200\"/>\n</div>\n\n```python3\n# importing BCV and creating object.\nfrom bcv_api import BCV\nbcv_con = BCV()\n\n# Get a currency\neur = bcv_con.currencies[0]\nprint(eur, bcv_con.get_currency(eur))\n\n# Get all currencies\nfor currency, price in bcv_con.get_currencies().items():\n    print(currency, price)\n\n# Use last html saved by get_currencies() to not use internet in this query.\ncny = bcv_con.currencies[1]\nprint(cny, bcv_con.get_currency(cny, use_last_html=True))\n```\n\n# Installation\nYou can install BCV-api from [Pypi](https://pypi.org/project/bcv-api/)\n```sh\npip install bcv-api\n```\n\n## Made by :link: [Sivefunc](https://gitlab.com/sivefunc)\n## Licensed under :link: [GPLv3](https://codeberg.org/Sivefunc/bcv-api/src/branch/main/LICENSE)\n",
    "bugtrack_url": null,
    "license": "bcv-api small library that access BCV to get prices of currencies. Copyright (C) 2024 Sivefunc  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this program.  If not, see <https://www.gnu.org/licenses/>. ",
    "summary": "Parses BCV html to get prices of currencies in VEF",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://gitlab.com/sivefunc/bcv-api"
    },
    "split_keywords": [
        "bcv",
        " exchange",
        " api",
        " venezuela",
        " http"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e87e12ff5c1bc642978814287abefa18a5b08bd1bb419ac7311cf6378702ea1",
                "md5": "89ecc2cce1c92ed64a42d110dbecd3c7",
                "sha256": "e46672b48021c38255673085ff2019cee0c082865defeaa1ffae537a1eb3c512"
            },
            "downloads": -1,
            "filename": "bcv_api-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89ecc2cce1c92ed64a42d110dbecd3c7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 18082,
            "upload_time": "2024-10-05T18:45:10",
            "upload_time_iso_8601": "2024-10-05T18:45:10.502970Z",
            "url": "https://files.pythonhosted.org/packages/3e/87/e12ff5c1bc642978814287abefa18a5b08bd1bb419ac7311cf6378702ea1/bcv_api-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c9574e01355fb55d58b6404a621233dae41f84c31ccc84d5bc8524154423dcce",
                "md5": "49cf08b8b6e2df1cf7c47700778e873b",
                "sha256": "eb73ae40b50912feac1c9b36a87ceb2cf0534bdbdb9d5a553312d0f10225672f"
            },
            "downloads": -1,
            "filename": "bcv_api-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "49cf08b8b6e2df1cf7c47700778e873b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 17035,
            "upload_time": "2024-10-05T18:45:12",
            "upload_time_iso_8601": "2024-10-05T18:45:12.294718Z",
            "url": "https://files.pythonhosted.org/packages/c9/57/4e01355fb55d58b6404a621233dae41f84c31ccc84d5bc8524154423dcce/bcv_api-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-05 18:45:12",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "sivefunc",
    "gitlab_project": "bcv-api",
    "lcname": "bcv-api"
}
        
Elapsed time: 0.80507s