filesocket-0.1.8
توضیحات
Transferring data between PCs library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | filesocket-0.1.8 |
| نام | filesocket |
| نسخه کتابخانه | 0.1.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mikhail Ivanov |
| ایمیل نویسنده | qolorer@gmail.com |
| آدرس صفحه اصلی | https://github.com/Qolorerr/FileSocketClient |
| آدرس اینترنتی | https://pypi.org/project/filesocket/ |
| مجوز | - |
# FileSocket
Library for file transfer and remote PC control
## Links
- [Client GitHub](https://github.com/Qolorerr/FileSocketClient)
- [Server GitHub](https://github.com/Qolorerr/FileSocketServer) - Client needs it to establish connection to PC
## Quick usage
```python
from pathlib import Path
from filesocket import sign_in, show_all_pc, ManagedClient, ManagingClient
# Sign in
sign_in("login", "password")
# Create managed client
client = ManagedClient(port=7999, require_token='token')
client.run()
# Get managed pc id
all_pc = show_all_pc()
# Create managing client
client = ManagingClient(device_id=all_pc[0].id, device_secure_token='token')
client.run(text_ui=False)
# Send cmd command
client.cmd_command('ipconfig')
# Send file
client.send_file(Path("local/path/to/file/to/send"), Path("path/where/to/put"))
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.1 | requests |
| >=5.2.1 | pyngrok |
| >=0.20.0 | uvicorn |
| >=0.89.1 | fastapi |
| >=0.22.0 | starlette |
| >=0.0.5 | python-multipart |
نحوه نصب
نصب پکیج whl filesocket-0.1.8:
pip install filesocket-0.1.8.whl
نصب پکیج tar.gz filesocket-0.1.8:
pip install filesocket-0.1.8.tar.gz