Python bindings for the Smartmine API
Project description
A Python library for Smartmine’s API.
Setup
You can install this package by using the pip tool and installing:
pip install smartmine
Setting up a Smartmine Account
Sign up for Smartmine at https://ap.smartmine.net/pricing.
Using the Smartmine API
General Usage:
import smartmine
from smartmine import ServiceName
smartmine.username = input("Username: ")
smartmine.password = input("Password: ")
smartmine.process_image(
service_name=ServiceName.image_restoration,
load_path="examples/images/earth.png",
save_path="results/earth_restored.png",
)
Advanced Usage:
import os
from pathlib import Path
import smartmine
from smartmine import ServiceName
smartmine.username = os.environ.get("SMARTMINE_USERNAME")
smartmine.password = os.environ.get("SMARTMINE_PASSWORD")
# Bulk process images
smartmine.bulk_process_images(
service_name=ServiceName.image_restoration,
load_dir="examples/images/",
save_dir=str(Path.home() / "Downloads"),
)
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
smartmine-0.2.2.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for smartmine-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d6313f991f93ab5178e182eb991c89781fd1d46d1d69ed19789e2d7b4a4c96 |
|
MD5 | 785bde1ca769f81a7fc2c345f3e861dd |
|
BLAKE2b-256 | 1b3f28ec7bd36d81923a2e93ddcd3b930f633bc9fdd842df094f56dce162f97c |