pandora-upload/README.md

27 lines
677 B
Markdown
Raw Normal View History

2021-11-14 22:48:52 +00:00
# pandora-upload
pandora_upload is a commandline client for pan.do/ra.
You can use it to upload one or more files to your pandora instance.
No conversion is done on the client side.
To upload/sync large repositories use pandora_client
2021-11-15 10:11:55 +00:00
Upload a file from the command line:
``` sh
pandora-upload -h http://pandora/api/ -m "title=This is an example" -m "date=2021-11-15" /home/example/Videos/video.mp4
```
or you can use pandora-upload in a python script:
2021-11-14 22:48:52 +00:00
``` python
import pandora_client
item_id = pandora_client.upload(
'http://pandora/api/',
2021-11-15 10:11:55 +00:00
['/home/example/Videos/video.mp4'],
2021-11-14 22:48:52 +00:00
{
'title': 'This is an example',
'date': '2021-11-15'
}
)
```