https://github.com/gpenverne/putio-mount
Mount put.io as a drive on linux
https://github.com/gpenverne/putio-mount
drive fuse linux mount plex putio putio-mount python3 streaming
Last synced: 3 months ago
JSON representation
Mount put.io as a drive on linux
- Host: GitHub
- URL: https://github.com/gpenverne/putio-mount
- Owner: gpenverne
- License: mit
- Created: 2017-02-18T16:13:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T13:39:12.000Z (over 6 years ago)
- Last Synced: 2025-10-27T11:51:00.626Z (8 months ago)
- Topics: drive, fuse, linux, mount, plex, putio, putio-mount, python3, streaming
- Language: Python
- Homepage: https://gkdv.net/Mount-putio-as-local-folder/
- Size: 39.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PutioMount
Mount put.io as a drive using python
## Retrieving a token
1) Go to https://put.io/oauth/apps/new , create an app (fill something in all fields, it does not matter)
2) Go to https://put.io/oauth/apps , and click on the "key" icon, next to your app name
3) Last field contains your token. Paste it in the /home/YOUR-USERNAME/.putio-config, instead of "YOUR_TOKEN_HERE"
## Installation
```bash
$ python setup.py install
```
## Usage
```bash
$ python ./putiomount.py /destination/folder
```
## Advanced usage
If you want to use PutioMount as a library, you can install it using pip:
```bash
$ pip3 install PutioMount
```
And use it:
```python
import PutioMount
# Set your token
PutioMount.set_config("token", "YOUR_TOKEN_HERE")
# Set a custom temporary path
PutioMount.set_tmp_path('/tmp')
# Set a custom credentials path
PutioMount.set_config_file('/path/to/.config_file')
# Need to install specific package
# pip install git+https://github.com/gpenverne/putio.py
# use_mp4 option will add .mp4 files, transcoded by put.io if available
# EXPERIMENTAL
PutioMount.set_config('use_mp4', True)
# Need to install specific package
# pip install git+https://github.com/gpenverne/putio.py
# cache_expiration sets the max age of parts of a file
PutioMount.set_config('cache_expiration', True)
# Need to install specific package
# pip install git+https://github.com/gpenverne/putio.py
# use_subtitles option will add subtitles files from put.io if available
PutioMount.set_config('use_subtitles', True)
# Mount to specific path
PutioMount.mount('/my/mount/point')
```
## Issues
Upgrade requests and urllib3:
```bash
$ pip3 install -U urllib3
$ pip3 install -U requests
```
Check if fuse is installed:
```bash
$ apt-get install fuse
```
```bash
$ pip3 install 'requests[security]'
$ sudo pip3 install requests==2.5.3
```
To debug, edit PutioMount/__ini__.py to change:
`FUSE(PutioMounter(), mount_point, nothreads=False, foreground=False,**{'allow_other': True})`
with
`FUSE(PutioMounter(), mount_point, nothreads=False, foreground=True,**{'allow_other': True})`