An API wrapper for the CosmoPawn API in Python
Project description
CosmoPawn-Py : An API wrapper for CosmoPawn in Python
Installation
pip install cosmopawn
# or
pip3 install cosmopawn
Usage
import cosmopawn
wrapper = cosmopawn.CosmoPawn() # Or pass in an IP address / domain
wrapper.download('dog', save_to='dog_pics', prefix='dog', no=10) # downloads 10 dog pictures, prefixing their file name with dog and saving it to dog_pics/
wrapper.upload(['file1.jpg', 'file2.png'], ['keyword1', 'keyword2']) # upload file1.jpg and file2.png with keywords keyword1 and keywords2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cosmopawn-1.0.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for cosmopawn-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3ed8e656b2992f9dc55ad9a7a04b1268c391f47077a04ddf84b05f55b341c07 |
|
MD5 | 0ea0c8fa28e4d5df7e431c1914cf965d |
|
BLAKE2b-256 | 11ebe26bb5c65772cd254626ced639c17cc173a6c73593c32b743d69953c49ca |