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
# or
pip install git+https://github.com/pennacap/cosmopawn-py
Usage
import cosmopawn
wrapper = cosmopawn.CosmoPawn() # Or pass in an IP address / domain
wrapper.download('dog', prefix='dog_pics/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.1.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cosmopawn-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10a2509da6904cbdbf6b73722dd74464883aafe4ca008524f9ff4619bc055a64 |
|
MD5 | b49ee3dfb9b29f19e21f84170725eb90 |
|
BLAKE2b-256 | 508ad3018b6b7a3df50e33c722a282816d60a45bc7012583c51b0934fd8fcf37 |