Metadata-Version: 2.1
Name: photoscript
Version: 0.0.1
Summary: Python wrapper around Apple Photos applescript interface
Home-page: https://github.com/RhetTbull/
Author: Rhet Turnbull
Author-email: rturnbull+git@gmail.com
License: License :: OSI Approved :: MIT License
Download-URL: https://github.com/RhetTbull/photoscript
Project-URL: GitHub, https://github.com/RhetTbull/photoscript
Description: # PhotoScript
        
        [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
        [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
        
        ## What is PhotoScript
        
        PhotoScript provides a python wrapper around Apple Photos applescript interface.  With PhotoScript you can interact with Photos using python.  Runs only on MacOS.  Tested on MacOS Catalina.
        
        ## Installation
        
        PhotoScript uses setuptools, thus simply run:
        
        `python3 setup.py install`
        
        ## Example
        
        ```python
        """ Simple example showing use of photoscript """
        
        import photoscript
        
        photoslib = photoscript.PhotosLibrary()
        
        photoslib.activate()
        print(f"Running Photos version: {photoslib.version}")
        
        album = photoslib.album("Album1")
        photos = album.photos
        
        for photo in photos:
            print(f"{photo.title}, {photo.description}, {photo.keywords}")
        
        new_album = photoslib.create_album("New Album")
        photoslib.import_photos(["/Users/rhet/Downloads/test.jpeg"], album=new_album)
        
        photoslib.quit()
        ```
        
        ## See Also
        
        - [osxphotos](https://github.com/RhetTbull/osxphotos): Python package that provides read-only access to the Photos library including all associated metadata. 
        
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
