yfinance-exporter


Nameyfinance-exporter JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2025-02-22 17:01:46
maintainerNone
docs_urlNone
authorFrançois Schmidts
requires_python<4.0,>=3.12
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI - Version](https://img.shields.io/pypi/v/yfinance-exporter)](https://pypi.org/project/yfinance-exporter/) [![Docker Image Version](https://img.shields.io/docker/v/jaesivsm/yfinance-exporter)](https://hub.docker.com/r/jaesivsm/yfinance-exporter/tags)

# YFinance Exporter


## Metrics served


```json
{
    "stocks": [
        {"isin": "FR0000120073", "name": "AIR LIQUIDE", "ycode": "AI.PA"}
    ]
}
```

## Running it

For the next few bits of code, we'll suppose you have a working configuration above in `~/.config/yfinance-exporter.json`.

### ... with python:

```shell
pip install yfinance-exporter
python -m yfinance_exporter
```

### ... with docker:

```shell
 docker run -v ~/.config/:/etc/yfinance-exporter/:ro -p 9100:9100 yfinance-exporter:main
```

You'll then be able retrieve some values:

```shell
curl localhost:9100/metrics

# HELP yfinance_exporter
# TYPE yfinance_exporter gauge
yfinance_exporter{status="loop"} 1.0
yfinance_exporter{status="loop-time"} 10.179875
yfinance_exporter{status="ok-stock"} 45.0
yfinance_exporter{status="ko-stock"} 2.0
[...]
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "yfinance-exporter",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.12",
    "maintainer_email": null,
    "keywords": null,
    "author": "Fran\u00e7ois Schmidts",
    "author_email": "francois@schmidts.fr",
    "download_url": "https://files.pythonhosted.org/packages/83/cb/e0472cfbe401c265217e212a3b5417baba606fd69950e18a4f990580a93f/yfinance_exporter-1.0.3.tar.gz",
    "platform": null,
    "description": "[![PyPI - Version](https://img.shields.io/pypi/v/yfinance-exporter)](https://pypi.org/project/yfinance-exporter/) [![Docker Image Version](https://img.shields.io/docker/v/jaesivsm/yfinance-exporter)](https://hub.docker.com/r/jaesivsm/yfinance-exporter/tags)\n\n# YFinance Exporter\n\n\n## Metrics served\n\n\n```json\n{\n    \"stocks\": [\n        {\"isin\": \"FR0000120073\", \"name\": \"AIR LIQUIDE\", \"ycode\": \"AI.PA\"}\n    ]\n}\n```\n\n## Running it\n\nFor the next few bits of code, we'll suppose you have a working configuration above in `~/.config/yfinance-exporter.json`.\n\n### ... with python:\n\n```shell\npip install yfinance-exporter\npython -m yfinance_exporter\n```\n\n### ... with docker:\n\n```shell\n docker run -v ~/.config/:/etc/yfinance-exporter/:ro -p 9100:9100 yfinance-exporter:main\n```\n\nYou'll then be able retrieve some values:\n\n```shell\ncurl localhost:9100/metrics\n\n# HELP yfinance_exporter\n# TYPE yfinance_exporter gauge\nyfinance_exporter{status=\"loop\"} 1.0\nyfinance_exporter{status=\"loop-time\"} 10.179875\nyfinance_exporter{status=\"ok-stock\"} 45.0\nyfinance_exporter{status=\"ko-stock\"} 2.0\n[...]\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b640a64934b54f263858c2da536c72a8d108c8ef4c1e618f5f3d1977f1afb0b4",
                "md5": "94ecae5b8610c715bf7b2bc098f0eb33",
                "sha256": "9635333657c288bbcc6391789d49b66b8f090ee5bcf79a1f6db899dcfd09116a"
            },
            "downloads": -1,
            "filename": "yfinance_exporter-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "94ecae5b8610c715bf7b2bc098f0eb33",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.12",
            "size": 2875,
            "upload_time": "2025-02-22T17:01:45",
            "upload_time_iso_8601": "2025-02-22T17:01:45.010722Z",
            "url": "https://files.pythonhosted.org/packages/b6/40/a64934b54f263858c2da536c72a8d108c8ef4c1e618f5f3d1977f1afb0b4/yfinance_exporter-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "83cbe0472cfbe401c265217e212a3b5417baba606fd69950e18a4f990580a93f",
                "md5": "d47e664c555b508da9adeae01d123a8c",
                "sha256": "83e592472f16b3a14f745a00358e4e0b89affcba2efe6fa84fbaa889c1216152"
            },
            "downloads": -1,
            "filename": "yfinance_exporter-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d47e664c555b508da9adeae01d123a8c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.12",
            "size": 2610,
            "upload_time": "2025-02-22T17:01:46",
            "upload_time_iso_8601": "2025-02-22T17:01:46.901452Z",
            "url": "https://files.pythonhosted.org/packages/83/cb/e0472cfbe401c265217e212a3b5417baba606fd69950e18a4f990580a93f/yfinance_exporter-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-22 17:01:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "yfinance-exporter"
}
        
Elapsed time: 1.49169s