GithubHelp home page GithubHelp logo

pyphotoprism's Introduction

PyPhotoPrism

Unofficial python client for the PhotoPrism API

## Install

pip install git+https://github.com/PyPhotoPrism/PyPhotoPrism.git

## Usage

from photoprism import Client

client = Client(username=None, password=None, domain='https://demo.photoprism.org', root='/api/v1')

# client...
def get_albums(self, count=INFINITE, **params):
    """
    Search an album
    count, offset, category, type=album
    """

    pass

def create_album(self, title):
    """
    Create an album
    """

    pass

def add_photo_to_album(self, album_uid, photo_uid):
    """
    Add a photo to an album
    """

    pass

def get_photos(self, count=INFINITE, **params):
    """
    Search photos
    count, offset, merged, country, camera, lens, label, year, month, color, order, public, quality, q
    """

    pass

def get_photo(self, uid):
    """
    Get a photo by uid
    """

    pass

def add_label_to_photo(self, photo_uid, label_name, label_priority=10):
    """
    Add a label to a photo
    """

    pass

def upload_photo(self, name, bytes, mimetype='image/jpeg', import_afterwards=True, move=True, album_names=[]):
    """
    Upload a photo
    """

    pass

def _import_photo(self, event, move=True, album_names=[]):
    """
    Import a photo
    """

    pass

def update_photo(self, photo_uid, **params):
    """
    Update photo metdata
    Description DescriptionSrc
    """

    pass

Official PhotoPrism API doc: https://pkg.go.dev/github.com/photoprism/photoprism/internal/api

pyphotoprism's People

Contributors

dennyweinberg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.