semvec/pypi-packages huggingface dataset:
aws-cloudwatch-logs-url 1.0.3
generate AWS CloudWatch Logs URL
License: MIT
Requires Python: >=3.8.12

# aws-cloudwatch-logs-url

[![PypiBadge]][Pypi]
[![PepyAllDownloadBadge]][Pypi]
[![PepyMonthlyDownloadBadge]][Pepy]


[PypiBadge]: https://img.shields.io/pypi/v/aws-cloudwatch-logs-url
[Pypi]: https://pypi.org/project/aws-cloudwatch-logs-url/
[Pepy]: https://www.pepy.tech/projects/aws-cloudwatch-logs-url
[PepyAllDownloadBadge]: https://static.pepy.tech/badge/aws-cloudwatch-logs-url
[PepyMonthlyDownloadBadge]: https://static.pepy.tech/badge/aws-cloudwatch-logs-url/month


Generate AWS CloudWatch Logs URL

## Install

```bash
$ pip install aws-cloudwatch-logs-url
```

## How to use
### create_url_log_group()
```python
from aws_cloudwatch_logs_url import create_url_log_group
url = create_url_log_group(
    region="string",
    log_group_name="string"
)
```
- region (string)
  **[REQUIRED]**
  AWS Region
- log_group_name (string)
  **[REQUIRED]**
  LogGroup Name

### create_url_log_events()
```python
from aws_cloudwatch_logs_url import create_url_log_events
url = create_url_log_events(
  region="string",
  log_group_name="string",
  log_stream_name="string",
  start=123,
  end=123,
  filter_pattern="string"
)
```
- region (string)  
  **[REQUIRED]**  
  AWS Region
- log_group_name (string)  
  **[REQUIRED]**  
  LogGroup Name
- log_stream_name (string)  
  LogStream Name
- start (integer)  
  The starting point of the period in milliseconds since UNIX epoch. To specify a relative time, provide a negative value in milliseconds. ex) The last 30 minutes = -1800000
- end (integer)  
  The ending point of the period in milliseconds since UNIX epoch.
- filter_pattern (string)  
  FilterPattern

## License

MIT © sinofseven
hsuBug 0.1.5
BeautifulSoup + requests + tqdm + pandas的一個庫
License: MIT
Requires Python: >=3.7

# 爬蟲相關庫

這個專案包含了一些用於網頁爬蟲的實用工具和類別。

## 主要功能

1. `Bug` 類別：用於設置和管理爬蟲請求。
2. 檔案下載：支援從網頁下載檔案。
3. Excel 輸出：可將爬取的數據輸出為 Excel 檔案。
4. 環境變數管理：安全地獲取環境變數。
5. 鏈接檢查：驗證 URL 的有效性。

## 安裝指南

1. 確保您的系統已安裝 Python 3.6 或更高版本。

2. 使用 pip 安裝套件：

```shell
pip install hsuBug
```

## 使用示例

### 基本爬蟲設置

```python
from hsuBug import Bug

# 創建 Bug 實例
url = "https://example.com"
bug = Bug(url)

# 設置請求頭
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
}

# 設置並獲取網頁內容
bug.setup(headers)

# 現在您可以使用 bug.soup 來解析 HTML 內容
```

### 下載檔案

```python
from hsuBug.functions import downloadFile

url = "https://example.com/file.pdf"
filename = "example.pdf"
downloaded_file = downloadFile(url, filename)
print(f"檔案下載至：{downloaded_file}")
```

### 輸出到 Excel

```python
from hsuBug.functions import downloadByExcel

data = {
    "名稱": ["項目1", "項目2", "項目3"],
    "價格": [100, 200, 300]
}

df = downloadByExcel(data)
if df is not None:
    print("數據已成功輸出到 Excel 檔案")
```

### 檢查鏈接有效性

```python
from hsuBug.functions import checkLink

url = "https://example.com"
if checkLink(url):
    print("鏈接有效")
else:
    print("鏈接無效")
```

## 單元測試

```shell
python -m unittest test_hsuBug.py
```

## 發布

```shell
python setup.py sdist
twine upload dist/*
```

## 未來功能

1. aiohttp 版本

## 許可證

[MIT](https://choosealicense.com/licenses/mit/)
nusuGraph 3.3
An asynchronous and simplified Telegraph API Wrapper in Python
License: MIT

# nusuGraph

An asynchronous and simplified wrapper for the Telegraph API.

## Installation

```bash
pip install -U nusugraph
```

## Usage

```python
import asyncio
from nusugraph import Telegraph


async def main():
    graph = Telegraph(
        token=None,  # if no token was passed, then an anonymous account will be created
        tokenList=None,  # list of tokens to be used in a cycle
        timeout=10,  # timeout for httpx.AsyncClient
    )

    # Create a Page
    text = "Hello, world!"

    # Account will be created if no token was passed
    response = await graph.createPage(
        author="Nusab Taha", htmlContent="<b>Hello</b>", title="Just Saying Hello"
    )
    url = response["url"]
    print(url)  # https://telegra.ph/Just-Saying-Hello-12-28-4

    # Upload Media from local file
    imagePath = "assets/sample.jpg"
    url = await graph.uploadMediaFromFile(imagePath)
    print(url)  # https://telegra.ph/file/daf9c776a1c25264321cd.jpg

    # Upload Media from it's bytes content
    with open(imagePath, "rb") as file:
        imageBytes = file.read()

    url = await graph.uploadMediaFromBytes(content=imageBytes, fileType="image/jpeg")
    print(url)  # https://telegra.ph/file/3406d7261c8c62869ab91.jpg


if __name__ == "__main__":
    asyncio.run(main())
```

## WHY?

I needed a simple and asynchronous wrapper for the Telegraph API, with the ability to use multiple tokens in a cycle. That's the reason.