Metadata-Version: 1.0
Name: canonicalwebteam.upload-assets
Version: 0.2.0
Summary: A command-line tool for uploading assets to an assets server.
Home-page: https://github.com/canonical-webteam/upload-assets
Author: Canonical webteam
Author-email: robin+pypi@canonical.com
License: UNKNOWN
Description: A command-line tool for managing the `assets server <https://github.com/ubuntudesign/assets-server>`__
        ======================================================================================================
        
        This is intended to be a simple command-line tool for uploading assets
        to an https://assets.ubuntu.com-like `assets
        server <https://github.com/ubuntudesign/assets-server>`__.
        
        Installation
        ------------
        
        First `install python3
        pip <http://stackoverflow.com/questions/6587507/how-to-install-pip-with-python-3>`__,
        then:
        
        .. code:: bash
        
            sudo pip3 install canonicalwebteam.upload-assets
        
        Usage
        -----
        
        You should now have access to the ``upload-assets``\ command:
        
        .. code:: bash
        
            $ upload-assets  \
                --api-url https://assets.EXAMPLE.com/v1/  \
                --api-token XXXXXXXX  \
                ~/EXAMPLE_DIRECTORY ./EXAMPLE_IMAGE.png
            [
                {"url": "https://assets.ubuntu.com/v1/2071d161-EXAMPLE_IMAGE.png", "filepath": "/home/robin/EXAMPLE_IMAGE.png"},
                {"url": "https://assets.ubuntu.com/v1/2071d161-IMAGE1.png", "filepath": "/home/robin/EXAMPLE_DIRECTORY/IMAGE1.png"},
                {"url": "https://assets.ubuntu.com/v1/2071d161-IMAGE2.png", "filepath": "/home/robin/EXAMPLE_DIRECTORY/IMAGE2.png"}
            ]
        
        Configuration
        -------------
        
        To avoid specifying them every time, you can store both the URL and the token
        for the assets API in environment variables:
        
        .. code:: bash
        
            $ export UPLOAD_ASSETS_API_TOKEN=<api-token>
            $ export UPLOAD_ASSETS_API_DOMAIN=https://assets.example.com/v1/
            $ upload-assets EXAMPLE_IMAGE.png
        
        
Platform: UNKNOWN
