dimo sdk
Project description
dimo-sdk-python
python sdk for dimo,include hub operations
install
pip install dimo-sdk
usage
from hub.client import Client
base_url = "http://52.76.75.134:8080" # Replace with the actual base URL
client = Client(base_url)
# Example parameters
owner = "owner_name"
filename = "example_meme.jpg"
msg = "This is a test meme"
# Upload meme message
upload_response = client.upload_hub(owner, filename, msg)
# Example for downloading meme data
downloaded_data = client.download_hub_data(owner,filename)
if downloaded_data:
with open('/tmp/downloaded_meme.jpg', 'wb') as f:
f.write(downloaded_data)
print("Download successful!")
else:
print("Download failed!")
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
dimo_sdk-0.0.3.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dimo_sdk-0.0.3.tar.gz.
File metadata
- Download URL: dimo_sdk-0.0.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c488069ea35003464870558d3c1d28e7fcf5d52b2f2dc0ec80fbc89fd644f6cd
|
|
| MD5 |
21ef495061309f12479e29ccdfbdd0cb
|
|
| BLAKE2b-256 |
0182dadaeb40cffa3ec52e97b5a4a07160269b29c8a44195a156561420a1e8d2
|
File details
Details for the file dimo_sdk-0.0.3-py3-none-any.whl.
File metadata
- Download URL: dimo_sdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565a86db1b44825e625de5c5f7696506f0312c8080e39b456ed075032e36e5ca
|
|
| MD5 |
ce7cf00b813c1ce21a4b581232c81ed3
|
|
| BLAKE2b-256 |
cde6e3583cf38679796103c8338e12bfe177582c49e597731a62758406251853
|