Metadata-Version: 2.1
Name: libopenstorage-openstorage
Version: 0.101.28.4
Summary: OpenStorage SDK Python gRPC Client Library
Home-page: https://github.com/libopenstorage/openstorage-sdk-clients
Author: Portworx
Author-email: lpabon@purestorage.com
License: UNKNOWN
Description: # Python gRPC Client Library for OpenStorage SDK
        
        For more information please see https://libopenstorage.github.io
        
        # Example
        
        ```python
        import grpc
        
        from openstorage import api_pb2
        from openstorage import api_pb2_grpc
        from openstorage import connector
        
        c = connector.Connector(endpoint='localhost:9100')
        channel = c.connect()
        
        try:
            # Cluster connection
            clusters = api_pb2_grpc.OpenStorageClusterStub(channel)
            ic_resp = clusters.InspectCurrent(api_pb2.SdkClusterInspectCurrentRequest())
            print('Conntected to {0} with status {1}'.format(ic_resp.cluster.id, api_pb2.Status.Name(ic_resp.cluster.status)))
        
            # Create a volume
            volumes = api_pb2_grpc.OpenStorageVolumeStub(channel)
            v_resp = volumes.Create(api_pb2.SdkVolumeCreateRequest(
                name="myvol",
                spec=api_pb2.VolumeSpec(
                    size=10*1024*1024*1024,
                    ha_level=3,
                )
            ))
            print('Volume id is {0}'.format(v_resp.volume_id))
        except grpc.RpcError as e:
            print('Failed: code={0} msg={1}'.format(e.code(), e.details()))
        ```
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
