semvec/pypi-packages huggingface dataset:
buff163-unofficial-api 0.1.3
An unofficial API wrapper for Buff163, a CS skin marketplace.
License: MIT
Requires Python: >=3.6

# Buff163 Unofficial API Wrapper

An unofficial Python API wrapper for Buff163, a CS skin marketplace.

<!-- GETTING STARTED -->

## Installation

Install the package with npm

```sh
pip install buff163-unofficial-api
```

<!-- USAGE EXAMPLES -->

## Usage/Examples

Example of using the API to get frontpage items.

```python
from buff163_unofficial_api import Buff163API

# Example cookie format
cookie = "Device-Id=_; Locale-Supported=_; game=_; NTES_YD_SESS=_; S_INFO=_; P_INFO=_; remember_me=_; session=_; csrf_token=_"

buff163api = Buff163API(session_cookie=cookie)

market = buff163api.get_featured_market()

for item in market:
    print(f"{item.market_hash_name}")
    print(f"¥ {item.sell_min_price}\n")
```

<!-- Get Cookie -->

## How To Get Your Cookie

1. Be logged into [https://buff.163.com](https://buff.163.com) & open the site.
2. Open inspect element.

   > F12 on Windows | Command + SHIFT + C on Mac.

3. Click on the "Network" tab at the top.
4. Refresh the page.
5. Filter with "api".
6. Click on any of the results (Ex: popular_sell_order?=#).
7. On the right scroll down to the "Request Headers" section.
8. Copy the large "Cookie:" parameter under the request headers.
9. Set this as the session cookie (Ex: Buff163API(session_cookie="your_cookie")).

<!-- DOCUMENTATION -->

## Documentation

For detailed documentation, please refer to:

[Read the Docs](https://buff163-unofficial-api.readthedocs.io/en/latest/)

[Function Overviews](https://buff163-unofficial-api.readthedocs.io/en/latest/buff163_unofficial_api.html)

<!-- CONTRIBUTING -->

## Contributing

Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better or see a missing route, please fork the repo and create a pull request. You can also simply open an issue with the tag "contribution". Thanks for taking the time to improve this API wrapper!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

<!-- LICENSE -->

## License

Distributed under the [MIT](https://choosealicense.com/licenses/mit/) License. See LICENSE.md for more information.

<!-- CONTACT -->

## Contact

Mark Zhdan - markzhdan@gmail.com

Project Link: [https://github.com/markzhdan/buff163-unofficial-api](https://github.com/markzhdan/buff163-unofficial-api)

PyPI Link: [https://pypi.org/project/buff163-unofficial-api](https://pypi.org/project/buff163-unofficial-api/)
pyscrcpy 1.0.1
adb and scrcpy, Android screen monitor and control. Compatible with latest python
License: MIT
Requires Python: >=3.7

# Python Scrcpy Client
![scrcpy-badge](https://img.shields.io/badge/scrcpy-v1.20-violet)
Introduction to pyscrcpy: A Python Library for scrcpy

# Introduction
pyscrcpy is an innovative Python library designed to simplify and streamline the integration of scrcpy into your Python projects. Scrcpy, a versatile screen mirroring tool for Android devices, gains a new level of accessibility through the seamless capabilities provided by pyscrcpy.

# Key Features

1. Easy Integration: With pyscrcpy, incorporating scrcpy functionality into your Python scripts becomes a straightforward process. The library abstracts away the complexities, allowing you to focus on leveraging scrcpy's powerful features without the need for intricate setup.
2. Enhanced Control: pyscrcpy empowers developers to exert precise control over Android devices from within their Python applications. Whether it's automating UI interactions, conducting tests, or creating custom applications, pyscrcpy provides a convenient interface for managing scrcpy commands.
3. Customization Options: Tailor scrcpy behavior to suit your project's requirements using the customizable options provided by pyscrcpy. Fine-tune parameters such as display size, bit rate, and more, all while maintaining the simplicity of Python scripting.

# Demo
```python
import cv2 as cv
from pyscrcpy import Client # import scrcpy client


def on_frame(client, frame):
    client.control.text("123")
    cv.imshow('Video', frame)
    cv.waitKey(1)


if __name__ == '__main__':
    client = Client(max_fps=1, max_size=900)
    client.on_frame(on_frame)
    client.start()
```
```python
import cv2 as cv
from pyscrcpy import Client


def on_frame(client, frame):
    cv.imshow('Video', frame)
    cv.waitKey(1)


if __name__ == '__main__':
    client = Client(max_fps=20)
    client.start(threaded=True)  # create a new thread for scrcpy
    while 1:
        if client.last_frame is None:
            continue
        on_frame(client, client.last_frame)
```

## Reference & Appreciation
- Fork: [S1M0N38/scrcpy (don't support python3.11)](https://github.com/S1M0N38/scrcpy)
- Fork: [py-scrcpy-client](https://github.com/leng-yue/py-scrcpy-client)
- Core: [scrcpy](https://github.com/Genymobile/scrcpy)
- Idea: [py-android-viewer (many bugs)](https://github.com/razumeiko/py-android-viewer)
- CI: [index.py](https://github.com/index-py/index.py)
matrixview 0.0.5
!⚆_⚆ This is a very powerful matrix element viewer !
License: MIT

A script that displays a list or matrix.
Case:
"
import matrixview as mv
import numpy as np
a = np.ones((3, 4))
mv.view(a)
"
You can double-click on the displayed element to see the exact value.
You can also use the right mouse button to draw.