def put(cont, path=None, local_file=None, profile=None):
    swift_conn = _auth(profile)

    if path is None:
        return swift_conn.put_container(cont)
    elif local_file is not None:
        return swift_conn.put_object(cont, path, local_file)
    else:
        return False
Create a new container, or upload an object to a container.
dataset/ETHPy150Open saltstack/salt/salt/modules/swift.py/put