semvec/pypi-packages huggingface dataset:
webscreenshotter 0.1.5
A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution
Requires Python: >=3.8

# webscreenshotter

A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution

### Usage

1. Install the package first

```
pip install webscreenshotter
```

2. Use the function in your code

```
from webscreenshotter import take_screenshot

if __name__ == "__main__":
    take_screenshot (
        "https://en.wikipedia.org/wiki/qr_code",
        width=1280, height=720,
        directory=".screencaps", file_suffix="capture_",
        stitch=True
    )
```

Change the directory and suffix to whatever you want.

3. Inspect the location you set as output directory for screenshot

Notes:

1. Stitching happens vertically.
2. Setting different resolutions can result in different style webpages, especially with PWAs and mobile-optimized webpages.

# License
[GPLv3 License](https://github.com/0x4f53/webscreenshotter/blob/master/LICENSE)

By 0x4f (Owais Shaikh)

https://pypi.org/project/webscreenshotter/
https://github.com/0x4f53/webscreenshotter
streamlit-sweethome3d 0.0.6
This library is created for streamlit framework, it allow to creating house and insert furniture based on sweethome3djs with a good 3D view.
Requires Python: >=3.6
Keywords: 3d,house planner,streamlit

[![Open in Huggingface](https://huggingface.co/datasets/huggingface/badges/raw/refs%2Fpr%2F11/open-in-hf-spaces-md-dark.svg)](https://huggingface.co/spaces/z-uo/SweetHome3DPlanner)

# Streamlit SweetHome3D
This project have the aim to port an house planner to streamlit in order to use it as a component of some demos including a good view with basic features quickly.

![example of UI](https://gitlab.com/nicolalandro/streamlit-sweethome3d/-/raw/main/examples/imgs/screen.png)

```
import streamlit as st
from streamlit_sweethome3d import streamlit_sweethome3d

# if you want to use wide screen to see more buttons
# st.set_page_config(layout="wide")

import json

in_state = {
    "homes": [
      {
        "walls": [
          [0, 180, 0, 400, 20, 250], # params: x1, y1 x2, y2, spessore, altezza
          [350, 180, 350, 400, 20, 250],
          [0-10, 180, 350+10, 180, 20, 250]
        ],
        "rooms": [
          [[0,180], [350, 180], [350, 400], [0, 400]] # points
        ],
        "furnitures": [
          {
            "id": "eTeks#shower", # https://gitlab.com/nicolalandro/streamlit-sweethome3d/-/blob/main/FURNITURE_DOC.md
            "x": 50,
            "y": 230,
            "elevation": 0,
          }
        ]
      }
    ]
}

out_state = streamlit_sweethome3d(state = in_state, out_state=True)

col1, col2 = st.columns(2)
with col1:
    st.text('in state')
    st.code(json.dumps(in_state, indent=1))
with col2:
    st.text('out state')
    st.code(json.dumps(out_state, indent=1))
```
requests-header-refresh 1.0.5
Adds support for the Refresh header in requests. Check out the README for more info.
Requires Python: >=3.7

# Requests Header Refresh

## Description

This Python module provides a function to handle HTTP refresh headers in the `requests` library. It parses the refresh header, extracts or infers the refresh time and URL, and makes a subsequent request to the refresh URL if the refresh time is in a valid range. It also supports a maximum refresh to ignore the refresh if the refresh time is greater than a specified number of seconds.

## Installation

You can use this module by importing it in your Python script. Make sure to have the `requests-header-refresh` library installed in your environment. If not, you can install it using pip:

```bash
pip install requests-header-refresh
```

You will also need the [requests]('https://pypi.org/project/requests/') library to use this package.

## Usage

First, import the necessary functions and classes:

```python
import requests
from requests_header_refresh import create_hook
```

Then, create a session and a refresh handler with a timeout of 5 seconds:

```python
session = requests.Session()
refresh_hook = create_hook(max_refresh=5)
```

Add the handler as a response hook:

```python
session.hooks = {'response': [refresh_hook]}
```

Finally, make a request:

```python
response = session.get(url)
```

In this example, `refresh_hook` will ignore the refresh if the refresh time is greater than 5 seconds. Replace `url` with the actual URL you want to make a request to. Also, adjust the `max_refresh` based on your needs.


The hook could also be used for a single request instead of entire session:

```python
response = requests.get(url, hooks={'response': [refresh_hook]})
```

## Contributing

Contributions are welcome.
dead-link-detective 1.0.0
A simple asynchronous dead link detector for any website.

# Dead Link Detective

Dead Link Detective is a simple asynchronous dead link detector for any website. It can be used to check the status of all the links on a given website.

## Installation

To install Dead Link Detective, you need to have Python installed on your machine. You can then install it using pip:

```sh
pip install dead-link-detective
```

## Usage

Dead Link Detective can be used as a command line tool or as a Python library.

### Command Line

To use Dead Link Detective as a command line tool, you can run the following command:

```sh
dead-link-detective <url> -a
```

This will check all the links on the given website asynchronously and print out the results. You can also use the `-s` flag to check the links synchronously. You can use the `-h` flag to see all the available options.


## Tests

To run the tests, you can use the following command:

```sh
python -m unittest discover
```

## License

Distributed under the MIT License. See `LICENSE` for more information.

## Contact

Ahmed Munna - munnaa329@gmail.com
pyprops 2.0.2
Python properties library
Requires Python: >=3.6

# pyprops Library
***
This library helps you to do the following:
* Read the properties from a file and get them as a dictionary (Introduced in version 2.0.1)
* Read and replace the properties file contents in place supplying the values to be replaced
* Read the properties file and create new file with replaced properties
***
<div><a href="https://github.com/sourabhninawe/python-properties-library">Source Code</a></div>
requests-refresh-header 1.0.1
Adds support for the Refresh header in requests. Check out the README for more info.
Requires Python: >=3.8

# requests_refresh_header.py

## Description

This Python module provides a function to handle HTTP refresh headers in the `requests` library. It parses the refresh header, extracts or infers the refresh time and URL, and makes a subsequent request to the refresh URL if the refresh time is in a valid range. It also supports a refresh timeout to ignore the refresh if the refresh time is greater than the timeout.

## Installation

You can use this module by importing it in your Python script. Make sure to have the `pip install requests-refresh-header` library installed in your environment. If not, you can install it using pip:

```bash
pip install pip install requests-refresh-header
```

You will also need the [requests]('https://pypi.org/project/requests/') library to use this package..

## Usage

First, import the necessary functions and classes:

```python
import requests
from requests_refresh_header import create_hook
```

Then, create a session and a refresh handler with a timeout of 5 seconds:

```python
session = requests.Session()
refresh_hook = create_hook(refresh_timeout=5)
```

Add the handler as a response hook:

```python
session.hooks = {'response': [refresh_hook]}
```

Finally, make a request:

```python
response = session.get(url)
```

In this example, `refresh_hook` will ignore the refresh if the refresh time is greater than 5 seconds. Replace `url` with the actual URL you want to make a request to. Also, adjust the `refresh_timeout` based on your needs.


The hook could also be used for a single request instead of entire session:

```python
response = requests.get(url, hooks={'response': [refresh_hook]})
```

## Contributing

Contributions are welcome.
pyemailnator 0.0.1
EmailNator Lib
Requires Python: >=3.11
Keywords: emailnator smartnator email temp_mail free_mail

[![Telegram channel](https://img.shields.io/endpoint?url=https://runkit.io/damiankrawczyk/telegram-badge/branches/master?url=https://t.me/n4z4v0d)](https://t.me/n4z4v0d)
[![PyPI supported Python versions](https://img.shields.io/pypi/pyversions/better-automation.svg)](https://www.python.org/downloads/release/python-3116/)
[![works badge](https://cdn.jsdelivr.net/gh/nikku/works-on-my-machine@v0.2.0/badge.svg)](https://github.com/nikku/works-on-my-machine)  

Library for working with the service https://www.emailnator.com/
```python
import asyncio
from pyemailnator import CreateClient

async def main() -> str:
    client: CreateClient = CreateClient()
    random_email: str = await client.get_email()
    last_message: dict = await client.get_last_message_data(email=random_email)

    message_id: str = last_message['messageID']

    message_text: str = await client.get_message(email=random_email,
                                                 message_id=message_id)
    
    return message_text
    
if __name__ == '__main__':
    print(asyncio.run(main()))

```
# DONATE (_any evm_) - 0xDEADf12DE9A24b47Da0a43E1bA70B8972F5296F2
fucktheimage 4.0.0
一个免费而简单图床(喜欢就关注:python学霸微信公众号)

### 介绍

fucktheimage是一个基于SunPics开发的免费图床库，可以上传图片并获取图片链接。
fucktheimage is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.

### 安装

使用以下命令通过pip安装图床库：

```
pip install fucktheimage
```

### 示例

以下是使用图床库上传图片并获取图片链接的简单示例：

```python
from fucktheimage import upload

file_path = input("请输入文件名或目录：")
image_url = upload.upload_image(file_path)

if image_url:
    print("上传成功")
    print("图片链接：" + image_url)
else:
    print("上传失败")
```

这段代码示例通过调用`upload_image`函数上传图片，并打印出上传结果和图片链接。
image-fucker 1.0.0
一个免费而简单图床(喜欢就关注:python学霸微信公众号)

### 介绍

Image_Fucker是一个基于SunPics开发的免费图床库，可以上传图片并获取图片链接。
Image_Fucker is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.

### 安装

使用以下命令通过pip安装图床库：

```
pip install image_fucker
```

### 示例

以下是使用图床库上传图片并获取图片链接的简单示例：

```python
from image_fucker import upload

file_path = input("请输入文件名或目录：")
image_url = upload.upload_image(file_path)

if image_url:
    print("上传成功")
    print("图片链接：" + image_url)
else:
    print("上传失败")
```

这段代码示例通过调用`upload_image`函数上传图片，并打印出上传结果和图片链接。
tuchuang 5.0.0
一个免费而简单图床(喜欢就关注:python学霸微信公众号)

### 介绍

TuChuang是一个基于SunPics开发的免费图床库，可以上传图片并获取图片链接。
TuChuang is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.

### 安装

使用以下命令通过pip安装图床库：

```
pip install tuchuang
```

### 示例

以下是使用图床库上传图片并获取图片链接的简单示例：

```python
from tuchunag import upload

file_path = input("请输入文件名或目录：")
image_url = upload.upload_image(file_path)

if image_url:
    print("上传成功")
    print("图片链接：" + image_url)
else:
    print("上传失败")
```

这段代码示例通过调用`upload_image`函数上传图片，并打印出上传结果和图片链接。
fuck-image 3.0.0
一个免费而简单图床(喜欢就关注:python学霸微信公众号)

### 介绍

Fuck-image是一个基于SunPics开发的免费图床库，可以上传图片并获取图片链接。
Fuck-image is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.

### 安装

使用以下命令通过pip安装图床库：

```
pip install fuck-image
```

### 示例

以下是使用图床库上传图片并获取图片链接的简单示例：

```python
from fuck_image import upload

file_path = input("请输入文件名或目录：")
image_url = upload.upload_image(file_path)

if image_url:
    print("上传成功")
    print("图片链接：" + image_url)
else:
    print("上传失败")
```

这段代码示例通过调用`upload_image`函数上传图片，并打印出上传结果和图片链接。