semvec/pypi-packages huggingface dataset:
apphb 0.1.1
Application heartbeats
Requires Python: >=3.7
Keywords: heartbeats,profiling

# Python Application Heartbeats

[![Documentation Status](https://readthedocs.org/projects/apphb-python/badge/?version=latest)](https://apphb-python.readthedocs.io/en/latest/?badge=latest)

A Python application-level heartbeats interface.


## Installing

The `apphb` package is published in the Python Package Index and installable with pip:

```sh
pip install apphb
```

and through Conda Forge:

```sh
conda install energymon
```

To install from source:

```sh
pip install .
```


## Usage

The core component is the `Heartbeat` class.
The user defines a window period (`window_size`) that specifies a sliding window length over which performance is computed.
Users may optionally specify other fields to compute sums and rates for.

For example:

```Python
total_iters = 10
window_size = 2
hbt = Heartbeat(window_size)
for tag in range(total_iters):
    start_time = time.monotonic()
    application_kernel()
    end_time = time.monotonic()
    hbt.heartbeat(tag, (end_time - start_time,))
    print(str(tag) + ': Instant performance: ' + str(hbt.get_instant_rate()))
    print(str(tag) + ': Window performance: ' + str(hbt.get_window_rate()))
print('Global performance: ' + str(hbt.get_global_rate()))
```

See the `examples` directory for more detailed use cases, including specifying custom fields.


## Project Source

Find this and related project sources at the [libheartbeats organization on GitHub](https://github.com/libheartbeats).  
This project originates at: https://github.com/libheartbeats/apphb-python

Bug reports and pull requests for bug fixes and enhancements are welcome.
yaqc 2023.6.0
Generic yaq client.
Requires Python: >=3.6

# yaqc-python

[![PyPI](https://img.shields.io/pypi/v/yaqc)](https://pypi.org/project/yaqc)
[![Conda](https://img.shields.io/conda/vn/conda-forge/yaqc)](https://anaconda.org/conda-forge/yaqc)
[![yaq](https://img.shields.io/badge/framework-yaq-orange)](https://yaq.fyi/)
[![black](https://img.shields.io/badge/code--style-black-black)](https://black.readthedocs.io/)
[![ver](https://img.shields.io/badge/calver-YYYY.M.MICRO-blue)](https://calver.org/)
[![log](https://img.shields.io/badge/change-log-informational)](https://github.com/yaq-project/yaq-python/blob/main/yaqc/CHANGELOG.md)

Generic yaq client, written in Python.
trulia-rapidapi 0.1.4
Trulia Real Estate API on RapidAPI
Keywords: trulia,real estate api,trulia real estate,trulia api,parsing,scraper

# Trulia API on RapidAPI

## Available on [PyPi](https://pypi.org/project/trulia_rapidapi/)
## Read more on [main project page](https://letsscrape.com/scrapers/trulia-real-estate-api/)
## See on [RapidAPI](https://rapidapi.com/letsscrape/api/trulia-real-estate-scraper)

## Install
### using pip
```
pip install trulia_rapidapi
```
### using poetry
```
poetry add trulia_rapidapi
```

### How to get RAPID API key
1. **Register** you account on RapidAPI https://rapidapi.com/auth/sign-up
2. Go to https://rapidapi.com/letsscrape/api/trulia-real-estate-scraper and **Subscribe to test**
3. After subscribing, please revisit https://rapidapi.com/letsscrape/api/trulia-real-estate-scraper to obtain your **X-RapidAPI-Key**.
4. You will find **X-RapidAPI-Key** on the right side in the Code Snippets.

```
from api import TruliaRapidAPI

import asyncio

from schemas.task_status import TaskStatus

api = TruliaAPI('____YOUR_RAPIDAPI_KEY____')

async def main():
    r = await api.get_listing_by_url("https://www.trulia.com/AZ/Scottsdale/", 1)
    print(r.status)
    print(r.data)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

See the `tests.py` file to see how to use it.