1
0
Fork 0
mirror of https://github.com/SlavikMIPT/tgcloud.git synced 2025-03-09 15:40:14 +00:00

Update README.md

This commit is contained in:
SlavikMIPT 2019-06-17 13:19:32 +03:00 committed by GitHub
parent 29131a87f3
commit 332bd68b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,38 +1,31 @@
# tgcloud
## UNDER DEVELOPMENT
## Opensourсe Virtual Filesystem for Telegram
Synchronizes and structures files downloaded to Telegram.
- Stores only metadata, accessing raw data only when loading files.
- Loading speed is up to 240Mbit/s per session
- Multiplatform: provides standard volumes which can be mounted on linux/win/mac...
- Opensource
### Project structure:
**tgcloud:** linux based docker container
* **redis** - updates, rpc, communication
* **tfs:** FUSE based VFS module
* [python-fuse](https://github.com/SlavikMIPT/tfs) - interface to linux kernel FS
* redis storage - FS struct, meta, telegram file_id,settings
* rq communication interface
* docker
* **file_telegram_rxtx** - telegram read/write driver
* [telethon(sync)](https://github.com/SlavikMIPT/Telethon) by [@Lonami](https://github.com/Lonami) - telegram access, multithreaded downloading/uploading
* improved and tested by [@SlavikMIPT](https://github.com/SlavikMIPT) - load speed 240Mb/s
* rq communication interface
* docker
* **polling daemon**
* [telethon(asyncio)](https://github.com/SlavikMIPT/Telethon) - updates from telegram, synchronization, hashtags
* rq communication interface
* docker
* **client**
* telegram authorization interface
* [filebrowser](https://github.com/SlavikMIPT/filebrowser) - opensource golang filebrowser
* windows service
* telegram desktop client with filebrowser
* settings, statistics, monitoring...
* rq communication interface
* docker
![Diagram](/img/ProjectDiagram.png)
- Необходимо получить api_hash и api_id на my.telegram.org и вставить эти данные вместе с номером телефона вашего аккаунта в tg_access.py
- Создать сессию запустив из папки с проектом и введя код подтверждения
```python3.6 download_service.py```
- Установить fuse bindings
```sudo yum install python-fuse```
- Создать папку для монтирования
```mkdir storage```
- Запустить VFS:
с отладкой
```python dedupfs/dedupfs.py -df --block-size 10240000 storage/```
в фоне
```python dedupfs/dedupfs.py --block-size 10240000 storage/```
- Можно, например указать эту папку как источник для [filebrowser](https://github.com/filebrowser/filebrowser)
You are welcome to collaborate - contact
Telegram: [@SlavikMIPT](t.me/SlavikMIPT)
Channel: [@MediaTube_stream](t.me/MediaTube_stream)
Channel: [@MediaTube_stream](t.me/MediaTube_stream)