bcv-api


Namebcv-api JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummaryParses BCV html to get prices of currencies in VEF
upload_time2024-06-30 22:45:21
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. 
<img
    src="readme_res/logo.png"
    alt="bcv logo"
    width="100"
    height="100"/>

# Requeriments
- python3 >= 3.9
- urllib and typing (standard libraries)

# Using bcv-api
<img
    src="readme_res/exchange-rates.png"
    alt="exchange rates"
    width="200"
    height="200"/>

```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 [Sivefunc](https://gitlab.com/sivefunc)
## Licensed under [GPLv3](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/d2/4a/d17a56dcee53c3637cfc228f29230fe74716a70e5bce42354f9cf896f700/bcv_api-1.0.1.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<img\n    src=\"readme_res/logo.png\"\n    alt=\"bcv logo\"\n    width=\"100\"\n    height=\"100\"/>\n\n# Requeriments\n- python3 >= 3.9\n- urllib and typing (standard libraries)\n\n# Using bcv-api\n<img\n    src=\"readme_res/exchange-rates.png\"\n    alt=\"exchange rates\"\n    width=\"200\"\n    height=\"200\"/>\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 [Sivefunc](https://gitlab.com/sivefunc)\n## Licensed under [GPLv3](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.1",
    "project_urls": {
        "Homepage": "https://gitlab.com/sivefunc/bcv-api"
    },
    "split_keywords": [
        "bcv",
        " exchange",
        " api",
        " venezuela",
        " http"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e742f3e8c2b5b2f58ec1cce4e2af08f3ab9b35ac5130750b6faf6c3a8069d31b",
                "md5": "344599657b175cf9da99430775a9d212",
                "sha256": "82235c2d9e9ea6d847440d9a61deebf9e87c700034cfcc67a12ccc7979dc95e8"
            },
            "downloads": -1,
            "filename": "bcv_api-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "344599657b175cf9da99430775a9d212",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 16464,
            "upload_time": "2024-06-30T22:45:14",
            "upload_time_iso_8601": "2024-06-30T22:45:14.437976Z",
            "url": "https://files.pythonhosted.org/packages/e7/42/f3e8c2b5b2f58ec1cce4e2af08f3ab9b35ac5130750b6faf6c3a8069d31b/bcv_api-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d24ad17a56dcee53c3637cfc228f29230fe74716a70e5bce42354f9cf896f700",
                "md5": "0d709b745fac6fe34d74436f99e4cb7c",
                "sha256": "dfa70216a4cc29416f632582bcb038ae4525ce60880a82533a030483a0ed5b75"
            },
            "downloads": -1,
            "filename": "bcv_api-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0d709b745fac6fe34d74436f99e4cb7c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 15484,
            "upload_time": "2024-06-30T22:45:21",
            "upload_time_iso_8601": "2024-06-30T22:45:21.479881Z",
            "url": "https://files.pythonhosted.org/packages/d2/4a/d17a56dcee53c3637cfc228f29230fe74716a70e5bce42354f9cf896f700/bcv_api-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-30 22:45:21",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "sivefunc",
    "gitlab_project": "bcv-api",
    "lcname": "bcv-api"
}
        
Elapsed time: 0.31972s