semvec/pypi-packages huggingface dataset:
tvw-scraper 0.0.17
Scraping tradingview.com
License: MIT
Requires Python: >=3.9,<4.0
Keywords: python,scraping,market data,tradingview

# tvw_scraper
use asyncio and websockets to retrieve candles and symbol info from tradingview.com

Usage example:

retrieve symbols to use them later in websocket queries
```python
from tvw_scraper.rest import SymbolScanner
from tvw_scraper.models import Sectors

SymbolScanner.get_sector_symbols(Sectors.russia)
{'totalCount': 937, 'data': [{'s': 'MOEX:AFKS', 'd': []}, {'s': 'MOEX:JNJ-RM', 'd': []} . . .
```

retrieve candles and some info from tradingview websocket:
```python
import asyncio
from tvw_scraper.scraper import TradingviewWsScraper
from tvw_scraper.models import Intervals

scraper = TradingviewWsScraper()

async def main():
    result = await asyncio.gather(*[
        scraper.get_candles('NASDAQ:NVDA',Intervals.interval_1day), 
        scraper.get_candles('NASDAQ:NVDA',Intervals.interval_1hour), 
        scraper.get_symbol('NASDAQ:NVDA')
        ])


asyncio.get_event_loop().run_until_complete(main())
```
cion 0.3.1
A data validation library
License: MIT
Requires Python: >=3.10

Cion
====

.. image:: https://img.shields.io/github/languages/code-size/meizuflux/cion?style=flat
    :alt: Repo Size
.. image:: https://img.shields.io/tokei/lines/github/meizuflux/cion?style=flat
    :alt: Lines of Code
.. image:: https://img.shields.io/pypi/dm/cion?style=flat
    :alt: PyPI Downloads
.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat
    :alt: License
.. image:: https://img.shields.io/pypi/v/cion.svg?style=flat
    :alt: Version
.. image:: https://img.shields.io/pypi/pyversions/cion?style=flat
    :alt: Python Versions
.. image:: https://img.shields.io/pypi/format/cion?style=flat
    :alt: PyPI Format
.. image:: https://img.shields.io/github/commit-activity/m/meizuflux/cion?style=flat
    :alt: Commit Activity
.. image:: https://readthedocs.org/projects/cionpy/badge/?style=flat
    :alt: Read the Docs
.. image:: https://github.com/meizuflux/cion/workflows/tests/badge.svg
    :alt: Tests
.. image:: https://github.com/meizuflux/cion/workflows/pyright/badge.svg
    :alt: Pyright
.. image:: https://codecov.io/gh/meizuflux/cion/branch/master/graph/badge.svg
    :alt: Code Coverage



Cion is a minimal data validation library. It is unopinionated about how
you get the input and what you do with the output.

Installation
------------

**Requires Python 3.10 or greater**

.. code:: bash

   pip install cion

Usage
-----

View the `examples </examples>`__ directory and the `tests </tests>`__
directory for examples on how to use Cion

Contributing
------------

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

`MIT <https://choosealicense.com/licenses/mit/>`__
ptray 1.1.2
A Python module to interact with the Windows tray.
License: MIT

# pytray

A Python module to interact with the Windows tray.

## Installation

### From PyPI

```sh
pip3 install ptray
```

### From GitHub

```sh
pip3 install git+https://github.com/donno2048/pytray
```

## Usage

Here is a simple example:

```py
import pytray, time, os
pytray.create_tray_element()
pytray.create_menu(
    ("Exit", 1), ("Close", 2)
)
pytray.add_icon()
i = 0
while True:
    start_time = time.time()
    while time.time() - start_time < 0.3:
        click = pytray.what_is_clicked()
        if click == 1:
            exit()
        elif click == 2:
            pytray.hide_menu()
        elif click == None:
            pass
        time.sleep(0.1) # make sure only one click is registered
    pytray.set_icon(os.path.abspath(f"cat\\{i}.ico")) # requires the cat directory from this repo (by Kyome22)
    i = (i + 1) % 5
```