Get files from server running on default route
Project description
This is a python library for capturing files over default route (http://0.0.0.0)
Functions:
Capture files from raspberryPi and access on your system.
Capture files on one system and access on other.
Installation :
Python
python -m pip install imagethief --user
Server Demo:
from ImageThief import Thief app = Thief(name=__name__) app.add_plan('/image','image') app.add_plan('/audio','audio') app.steal()
Client Demo:
from requests import get from ImageThief import Decoder as fileSaver url = 'http://localhost:5000' plan = '/audio' a = get(url + plan, headers={'Ext': '.mp3', 'filename': 'sampa.mp3'}).json() secondfile = 'some.mp3' if a['message'] == 'OK': fileSaver(a['data'], secondfile) print('File Saved with name ' + secondfile) else: print('Error')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ImageThief-2.0.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for ImageThief-2.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6401f6513678e5be26d325b4fafd1f80ed558e77b40ef077ce4a3385e561926c |
|
MD5 | 1e9edb03b5e3231b3e7b86752f47fe9d |
|
BLAKE2b-256 | bb340eed5cce577666436cb22f16b09f9db19a9d2b12900455766aca7c17e2e8 |