/usr/lib/python2.6/site-packages/swiftclient
NameSizeModeActions
client.py633230644editdlrm
client.pyc549830644editdlrm
command_helpers.py66150644editdlrm
command_helpers.pyc66920644editdlrm
exceptions.py24640644editdlrm
exceptions.pyc18220644editdlrm
multithreading.py75690644editdlrm
multithreading.pyc90710644editdlrm
service.py895930644editdlrm
service.pyc579250644editdlrm
shell.py629740755editdlrm
shell.pyc495480644editdlrm
utils.py74360644editdlrm
utils.pyc92340644editdlrm
version.py12870644editdlrm
version.pyc4620644editdlrm
__init__.py10730644editdlrm
__init__.pyc4060644editdlrm
Edit: /usr/lib/python2.6/site-packages/swiftclient/shell.pyc (49548B)
Ñò ;vVc@s%ddklZlZddkZddkZddkZddklZlZl Z ddk l Z l Z l ZddklZlZlZddklZddklZlZlZddklZlZdd klZdd kl Z l!Z!l"Z"dd k#l$Z$dd k%l&Z&dd kl'Z(ddk)l*Z*l+Z+l,Z,l-Z-ddk.l/Z/l0Z0l1Z1yddk2l3Z4Wn#e5j oddk6l3Z4nXdZ7ddddddddddf Z8d„Z9dZ:di;dƒZ<d „Z=d!Z>d"i;dƒZ?d#„Z@d$ZAd%i;dƒZBd&„ZCd'ZDd(i;dƒZEd)„ZFd*ZGd+i;dƒZHd,„ZId-ZJd.i;dƒZKd/„ZLd0ZMeMZNd1i;dƒZOeOZPd2„ZQeQZRd3i;dƒZSd4„ZTd5ZUd6i;dƒZVd7„ZWeXd8„ZYeZd9„Z[e\d:jo e[ƒndS(;iÿÿÿÿ(tprint_functiontunicode_literalsN(t OptionParsert OptionGroupt SUPPRESS_HELP(tenvirontwalkt_exit(tisfiletisdirtjoin(t text_type(targvtexittstderr(tgmtimetstrftime(tRequestException(tconfig_true_valuetgenerate_temp_urlt prt_bytes(t OutputManager(tClientException(t __version__(t SwiftServicet SwiftErrortSwiftUploadObjecttget_conn(tprint_account_statstprint_container_statstprint_object_stats(tquoteuswiftudeleteudownloadulistupostustatuuploadu capabilitiesuinfoutempurluauthcCstidƒtdƒdS(Nu Aborted i(Rtwritetos_exit(tsignumtframe((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pytimmediate_exit2s u¨[-all] [--leave-segments] [--object-threads ] [--container-threads ] [object] u« Delete a container or objects within a container. Positional arguments: Name of container to delete from. [object] Name of object to delete. Specify multiple times for multiple objects. Optional arguments: -a, --all Delete all containers and objects. --leave-segments Do not delete segments of manifest objects. --object-threads Number of threads to use for deleting objects. Default is 10. --container-threads Number of threads to use for deleting containers. Default is 10. u cCsV|idddddddtdd ƒ|id d dddd dtdd ƒ|id ddtddddƒ|id ddtddddƒt||ƒ\}}|d}| o |i p|o%|io|idtttƒdSt |ƒ}|i |d] [--output ] [--output-dir ] [--object-threads ] [--container-threads ] [--no-download] [--skip-identical] [--remove-prefix] [--header ] uP Download objects from containers. Positional arguments: Name of container to download from. To download a whole account, omit this and specify --all. Name of object to download. Specify multiple times for multiple objects. Omit this to download all objects from the container. Optional arguments: -a, --all Indicates that you really want to download everything in the account. -m, --marker Marker to use when starting a container or account download. -p, --prefix Only download items beginning with -r, --remove-prefix An optional flag for --prefix , use this option to download items without -o, --output For a single file download, stream the output to . Specifying "-" as will redirect to stdout. -D, --output-dir An optional directory to which to store objects. By default, all objects are recreated in the current directory. --object-threads Number of threads to use for downloading objects. Default is 10. --container-threads Number of threads to use for downloading containers. Default is 10. --no-download Perform download(s), but don't actually write anything to disk. -H, --header Adds a customized request header to the query, like "Range" or "If-Match". This option may be repeated. Example --header "content-type:text/plain" --skip-identical Skip downloading files that are identical on both sides. --no-shuffle By default, when downloading a complete account or container, download order is randomised in order to to reduce the load on individual drives when multiple clients are executed simultaneously to download the same set of objects (e.g. a nightly automated download script to multiple servers). Enable this option to submit download jobs to the thread pool in the order they are listed in the object store. cCs½|idddddddtdd ƒ|id d dd dd ddƒ|iddddddƒ|iddddddƒ|iddddddƒ|idddddddtddƒ|id dd tdd!dd"ƒ|id d#d tdd!dd$ƒ|id d%dddtdd&ƒ|id'd(dd)dd*dgdd+ƒ|id,dddd-dtdd.ƒ|id/dd0dd1dtdd2ƒt||ƒ\}}|d3}|id4jo d5|_n|io!t|ƒd6jotd7ƒn|i p t|_ n|i o!t|ƒd6jotd8ƒn| o |i p|o%|i o|i d9tttƒdSt|ƒ}|i|d:d3ƒ|fƒdS|d3} | p|i|ƒ}n|i|| ƒ}x|D]} |id4jo9d?| jo,| d?} x×| D]} |i| ƒq’Wq^| d@o|ioò| dA} | dB| }| dC| }| dD}| dE}| dF}|| }||}dG}| dHodI|||f}n+t|ƒ||}dJ||||f}| dK}|d3jo|idL|||ƒq´|idM||ƒqeq^| dN}| dK}| dO}| dP}t|tƒo_|idQjo!|io|idR|ƒq^n|idSjo|i dT||ƒq^qOn|i dU|||ƒq^WWnFtj o}|i |i ƒn#t!j o}|i |ƒnXWdQXdS(VNu-au--allR%u store_trueR&uyes_allR'R(uEIndicates that you really want to download everything in the account.u-mu--markerumarkeruu<Marker to use when starting a container or account download.u-pu--prefixuprefixu0Only download items beginning with the .u-ou--outputuout_fileumFor a single download, stream the output to . Specifying "-" as will redirect to stdout.u-Du --output-diru out_directoryupAn optional directory to which to store objects. By default, all objects are recreated in the current directory.u-ru--remove-prefixu remove_prefixu[An optional flag for --prefix , use this option to download items without .u--object-threadsR)i u@Number of threads to use for downloading objects. Default is 10.u--container-threadsuCNumber of threads to use for downloading containers. Default is 10.u --no-downloadu?Perform download(s), but don't actually write anything to disk.u-Hu--headeruappenduheaderu“Adds a customized request header to the query, like "Range" or "If-Match". This option may be repeated. Example: --header "content-type:text/plain"u--skip-identicaluskip_identicalu8Skip downloading files that are identical on both sides.u --no-shuffleu store_falseushuffleu_By default, download order is randomised in order to reduce the load on individual drives when multiple clients are executed simultaneously to download the same set of objects (e.g. a nightly automated download script to multiple servers). Enable this option to submit download jobs to the thread pool in the order they are listed in the object store.iu-iiu0-o option only allowed for single file downloadsu:Please use -o option for single file downloads and renamesuUsage: %s download %s %suobject_dd_threadsR*u/uHWARNING: / in container name; you might have meant '%s' instead of '%s'.u ucontentsusuccessu start_timeuheaders_receiptu auth_end_timeu finish_timeu read_lengthuattemptsi@Bu pseudodiru.auth %.3fs, headers %.3fs, total %.3fs, pseudou1auth %.3fs, headers %.3fs, total %.3fs, %.3f MB/supathu%s [%s after %d attempts]u%s [%s]uerroru containeruobjecti0uSkipped identical file '%s'i”uObject '%s/%s' not foundu$Error downloading object '%s/%s': %s("R-R.R/tTrueR0tout_fileR=tlenR tprefixt remove_prefixt out_directoryR1R2R3tst_download_optionstst_download_helpR6R7RR8R9tdownloadR;t print_rawtfloatR?t isinstanceRt http_statustskip_identicalRR@t Exception(RARBRCR*RDRERFt down_iterR+R,tdowntcontentstchunkt start_timetheaders_receiptt auth_timet finish_timet read_lengthtattemptst total_timet down_timet_megattime_strtspeedtpathR2tobjte((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyt st_downloadÖsò          $    &                        u[[--long] [--lh] [--totals] [--prefix ] [--delimiter ] uœ Lists the containers for the account or the objects for a container. Positional arguments: [container] Name of container to list object in. Optional arguments: -l, --long Long listing format, similar to ls -l. --lh Report sizes in human readable format similar to ls -lh. -t, --totals Used with -l or --lh, only report totals. -p, --prefix Only list items beginning with the prefix. -d, --delimiter Roll up items with the given delimiter. For containers only. See OpenStack Swift API documentation for what this means. c sd‡fd†}|idddddddtd d ƒ|id dd dddtd d ƒ|iddddd ddddtƒ|iddddd dƒ|iddddd dƒt||ƒ\}}|d}|io| otdƒnt|ƒiƒ}|d o|id ƒt|d] [--write-acl ] [--sync-to] [--sync-key ] [--meta ] [--header
] [container] [object] u² Updates meta information for the account, container, or object. If the container is not found, it will be created automatically. Positional arguments: [container] Name of container to post to. [object] Name of object to post. Optional arguments: -r, --read-acl Read ACL for containers. Quick summary of ACL syntax: .r:*, .r:-.example.com, .r:www.example.com, account1, account2:user2 -w, --write-acl Write ACL for containers. Quick summary of ACL syntax: account1 account2:user2 -t, --sync-to Sync To for containers, for multi-cluster replication. -k, --sync-key Sync Key for containers, for multi-cluster replication. -m, --meta Sets a meta data item. This option may be repeated. Example: -m Color:Blue -m Size:Large -H, --header Adds a customized request header. This option may be repeated. Example -H "content-type:text/plain" -H "Content-Length: 4000" c Csˆ|iddddddƒ|idddd dd ƒ|id d dd ddƒ|iddddddƒ|idddddddgddƒ|idddddddgddƒt||ƒ\}}|d}|ip|ip|ip |io| otdƒnt|ƒ}td |ƒi i ƒ}z<|~}y|p|i ƒ}nÔ|d!}d"|jo3|i d#|d!i d"d$dƒ|d!fƒdS|d}|oft|ƒdjo5|d!g} |i d%|d&| ƒ} t| ƒ}q<|i d'tttƒdSn|i d%|ƒ}|d(p|d)‚nWn%tj o} |i | iƒnXWdQXdS(*Nu-ru --read-aclR&uread_aclR(uzRead ACL for containers. Quick summary of ACL syntax: .r:*, .r:-.example.com, .r:www.example.com, account1, account2:user2u-wu --write-aclu write_acluOWrite ACL for containers. Quick summary of ACL syntax: account1, account2:user2u-tu --sync-tousync_tou?Sets the Sync To for containers, for multi-cluster replication.u-ku --sync-keyusync_keyu@Sets the Sync Key for containers, for multi-cluster replication.u-mu--metaR%uappendumetaR'uXSets a meta data item. This option may be repeated. Example: -m Color:Blue -m Size:Largeu-Hu--headeruheaderu~Adds a customized request header. This option may be repeated. Example: -H "content-type:text/plain" -H "Content-Length: 4000"iu6-r, -w, -t, and -k options only allowed for containersR*iu/uHWARNING: / in container name; you might have meant '%s' instead of '%s'.u R+R,uUsage: %s post %s %susuccessuerror(R-R0tread_aclt write_acltsync_totsync_keyR R6RR8R9tpostR2R;RQtnextR3tst_post_optionst st_post_helpRR@( RARBRCR*RDRERFtresultR+R,tresults_iteratorRo((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pytst_postks\   &  %     u|[--changed] [--skip-identical] [--segment-size ] [--segment-container ] [--leave-segments] [--object-threads ] [--segment-threads ] [--header
] [--use-slo] [--ignore-checksum] [--object-name ] uÀ Uploads specified files and directories to the given container. Positional arguments: Name of container to upload to. Name of file or directory to upload. Specify multiple times for multiple uploads. Optional arguments: -c, --changed Only upload files that have changed since the last upload. --skip-identical Skip uploading files that are identical on both sides. -S, --segment-size Upload files in segments no larger than (in Bytes) and then create a "manifest" file that will download all the segments as if it were the original file. --segment-container Upload the segments into the specified container. If not specified, the segments will be uploaded to a _segments container to not pollute the main listings. --leave-segments Indicates that you want the older segments of manifest objects left alone (in the case of overwrites). --object-threads Number of threads to use for uploading full objects. Default is 10. --segment-threads Number of threads to use for uploading object segments. Default is 10. -H, --header Adds a customized request header. This option may be repeated. Example -H "content-type:text/plain" -H "Content-Length: 4000". --use-slo When used in conjunction with --segment-size it will create a Static Large Object instead of the default Dynamic Large Object. --object-name Upload file and name object to or upload dir and use as object prefix instead of folder name. --ignore-checksum Turn off checksum validation for uploads. cCsþ|idddddddtdd ƒ|id dddd dtdd ƒ|id dddddƒ|iddddddƒ|idddddddtddƒ|idddtddddƒ|idddtddddƒ|idd dd!dd"dgdd#ƒ|idd$dddtdd%ƒ|idd&dd'dd(ƒ|idd)dd*dtdd+dd,ƒt||ƒ\}}|d-}t|ƒd.jo|id/ttt ƒdS|d0}|d-}|i dj o3t|ƒd-jo|id1ƒdS|d0}n|i oÁyt|i ƒWnt j ouy3d2i|i d3iƒƒ}t|i d3 ƒ}Wn!t j o|id4ƒdSXtd5||ƒ|_ nXt|i ƒd0jo|id6ƒdSnt|ƒ} |i| d7|jo#|i d?|d>|d=fƒqoqsd>|jo|i |d>ƒqsd@|jo#|i dA|d@|dBfƒqsqÇq°|dC}dD|joá|dDdEjoÐt!|t"ƒoŸ|dFo-dG|dFjodH|dFdGi#ƒ}qXdIidJ„|i$|i%fDƒƒ}|i&o*|o|dK7}n||i&dL 7}ndM|}n dM|}|i'dN||ƒq°|idO|ƒt!|t"ƒo |i$dPj}|o!|id0jo|idQƒq°q°WWn%t(j o}|i|i)ƒnXWdQXdS(RNu-cu --changedR%u store_trueR&uchangedR'R(u:Only upload files that have changed since the last upload.u--skip-identicaluskip_identicalu6Skip uploading files that are identical on both sides.u-Su--segment-sizeu segment_sizeu1Upload files in segments no larger than (in Bytes) and then create a "manifest" file that will download all the segments as if it were the original file. Sizes may also be expressed as bytes with the B suffix, kilobytes with the K suffix, megabytes with the M suffix or gigabytes with the G suffix.u-Cu--segment-containerusegment_containeru³Upload the segments into the specified container. If not specified, the segments will be uploaded to a _segments container to not pollute the main listings.uu--leave-segmentsuleave_segmentsufIndicates that you want the older segments of manifest objects left alone (in the case of overwrites).u--object-threadsR)i uCNumber of threads to use for uploading full objects. Default is 10.u--segment-threadsuFNumber of threads to use for uploading object segments. Default is 10.u-Hu--headeruappenduheaderuŽSet request headers with the syntax header:value. This option may be repeated. Example -H "content-type:text/plain" -H "Content-Length: 4000"u --use-slouWhen used in conjunction with --segment-size, it will create a Static Large Object instead of the default Dynamic Large Object.u --object-nameu object_nameuyUpload file and name object to or upload dir and use as object prefix instead of folder name.u--ignore-checksumuchecksumu store_falseu)Turn off checksum validation for uploads.iiuUsage: %s upload %s %siu+object-name only be used with 1 file or diruBKMGiÿÿÿÿuInvalid segment sizeiusegment-size should be positiveuobject_uu_threadsR*uLocal file '%s' not foundt object_nameu dir_markerusuccessuattemptsuobjectu%s [after %d attempts]u for_objectu %s segment %su segment_indexuerroruactionucreate_containeruheadersuX-Storage-Policyu with Storage Policy %su cssx|]}t|ƒVqWdS(N(tstr(t.0tx((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pys zs u: i<u: %su*Warning: failed to create container '%s'%su%siu<Consider using the --segment-size option to chunk the object(*R-R.R/ROR0RQR2R3tst_upload_optionstst_upload_helpR¡Rqt segment_sizet ValueErrortindextupperR¢R6R7RR8R9RtappendR RtextendR RR;tuploadR=R?RZRtstripR[t http_reasonthttp_response_contenttwarningRR@(RARBRCR*R+tfilest orig_pathtsize_modt multiplierRDRERFtobjst dir_markerstft_dirt_dst_fst_[2]t_ft_[3]RJt_[4]tdRHR2tmsgt too_largeRo((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyt st_uploadâsø               &    98I           u []uŽ Retrieve capability of the proxy. Optional positional arguments: Proxy URL of the cluster to retrieve capabilities. c s=‡fd†}t||ƒ\}}|o.t|ƒdjoˆidtttƒdSt|ƒ}td|ƒii ƒ}zµ|~}y€t|ƒdjo'|d}|i |ƒ} | d} n|i ƒ} | d} |dh| dd6ƒ| d=|d | ƒWn%t j o} ˆi| i ƒnXWdQXdS( Ncs¢x›t|iƒdd„ƒD]~\}}ˆid||fƒ|oTˆidƒxDt|iƒdd„ƒD]#\}}ˆid||fƒqoWqqWdS(NtkeycSs|dS(i((R¤((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyt£su%s: %su Options:cSs|dS(i((R¤((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyRŨsu %s: %s(tsortedR’R?(tnamet capabilitiestfeatureR*RÄR@(RC(s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyt_print_compo_cap¡s   iuUsage: %s capabilities %s %sR*iu capabilitiesuCoreuswiftuAdditional middleware( R0RQR2R3tst_capabilities_optionstst_capabilities_helpR6RR8R9RÈRR@( RARBRCRÊR*RDRERFturltcapabilities_resultRÈRo((RCs=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pytst_capabilities s*    &   u Display auth related authentication variables in shell friendly format. Commands to run to export storage url and auth token into OS_STORAGE_URL and OS_AUTH_TOKEN: swift auth Commands to append to a runcom file (e.g. ~/.bashrc, /etc/profile) for automatic authentication: swift auth -v -U test:tester -K testing -A http://localhost:8080/auth/v1.0 c Csˆt||ƒ\}}t|ƒ}|idjo |idjoItdt|iƒƒtdt|iƒƒtdt|iƒƒq„tdt|iƒƒtdt|iƒƒtd t|iƒƒx²t |i ƒƒD]T\}}|oA|i d ƒo1|djo$td |i ƒt|ƒfƒqâqâWnGt |ƒ}|iƒ\}} tdt|ƒƒtdt| ƒƒdS(Niu1u1.0uexport ST_AUTH=%suexport ST_USER=%suexport ST_KEY=%su!export OS_IDENTITY_API_VERSION=%suexport OS_AUTH_VERSION=%suexport OS_AUTH_URL=%suos_u os_auth_urlu os_optionsu export %s=%suexport OS_STORAGE_URL=%suexport OS_AUTH_TOKEN=%s(u1u1.0(u os_auth_urlu os_options(R0R6R=t auth_versiontprinttsh_quotetauthtuserRÄRÆR’t startswithRªRtget_auth( RARBtthread_managerR*RDtktvtconnRÍttoken((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pytst_auth×s(    , u u« Generates a temporary URL for a Swift object. Positional arguments: An HTTP method to allow for this temporary URL. Usually 'GET' or 'PUT'. The amount of time in seconds the temporary URL will be valid for; or, if --absolute is passed, the Unix timestamp when the temporary URL will expire. The full path to the Swift object. Example: /v1/AUTH_account/c/o. The secret temporary URL key set on the Swift cluster. To set a key, run 'swift post -m "Temp-URL-Key:b3968d0207b54ece87cccc06515a89d4"' Optional arguments: --absolute Interpet the positional argument as a Unix timestamp rather than a number of seconds in the future. c Cs|iddddddtddƒt||ƒ\}}|d }t|ƒd jo|id tttƒdS|d \}}}}yt|ƒ}Wn!t j o|id ƒdSX|i ƒdjo|i d|i ƒƒnt ||||d|i ƒ}|i |ƒdS(Nu --absoluteR%u store_trueR&uabsolute_expiryR'R(uIf present, seconds argument will be interpreted as a Unix timestamp representing when the tempURL should expire, rather than an offset from the current timeiiuUsage: %s tempurl %s %suSeconds must be an integeruGETuPUTuHEADuPOSTuDELETEuLWARNING: Non default HTTP method %s for tempurl specified, possibly an errortabsolute(uGETuPUTuHEADuPOSTuDELETE(R-R.R0RQR2R3tst_tempurl_optionstst_tempurl_helpR/R¨RªR?Rtabsolute_expiry( RARBR×R*tmethodtsecondsRmRÄRÍ((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyt st_tempurls,        cCsS|p dg}n|i|ƒ\}}t|ƒdjoK|ddjo:tƒid|dd|dƒ}t|ƒtƒnt|ƒdjo|ddjo ||fS|idjo d |_n|io|io|i o|id jo d |_n|i o|i o|i |_n|i o|i o|i |_n|i o|i o|i |_ nh|i d 6|id 6|id 6|id6|id6|id6|id6|id6|id6|id6|id6|id6|id6|id6|_t|ƒdjo|ddjo ||fS|iidƒo>|iidƒo+|id jp|id jo ||fS|o¯|id jof|iptddƒn|ip|i ptdddƒn|i ptdd ƒqEqI|io|io|i ptd!id"ƒƒqIn||fS(#Nu-hiu--helpu st_%s_helpiuno help for %sutempurlu3.0u3u2.0uuser_iduuser_domain_iduuser_domain_nameu tenant_idu tenant_nameu project_idu project_nameuproject_domain_iduproject_domain_nameu service_typeu endpoint_typeu auth_tokenuobject_storage_urlu region_nameu capabilitiesu1Auth version 3 requires OS_AUTH_URL to be set or uoverridden with --os-auth-urlu.Auth version 3 requires either OS_USERNAME or u(OS_USER_ID to be set or overridden with u+--os-username or --os-user-id respectively.u1Auth version 3 requires OS_PASSWORD to be set or uoverridden with --os-passwordur Auth version 1.0 requires ST_AUTH, ST_USER, and ST_KEY environment variables to be set or overridden with -A, -U, or -K. Auth version 2.0 requires OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, and OS_TENANT_NAME OS_TENANT_ID to be set or overridden with --os-auth-url, --os-username, --os-password, --os-tenant-name or os-tenant-id. Note: adding "-V 2" is necessary for this.u (R0RQtglobalsR<RÑR RÐRÓRÔRÄt os_auth_urlt os_usernamet os_passwordt os_user_idtos_user_domain_idtos_user_domain_namet os_tenant_idtos_tenant_namet os_project_idtos_project_nametos_project_domain_idtos_project_domain_nametos_service_typetos_endpoint_typet os_auth_tokentos_storage_urltos_region_namet os_optionsR®(RARBtenforce_requiresR*t_help((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pyR0%st $  $                $       c Csí|o |}nt}g}|D]-}|t|tƒo|n |idƒq"~}t}tdd|ddidƒtƒƒ}|iddd d d d d ƒ|iddd d t ƒ|idddd d ddt d dƒ|iddddd dddd dƒ|iddd d ddt d dƒ|iddd d ddt d dƒ|id d!dd"d dd#d$ddd d%ƒ|id&d'd d(dt i d)ƒd d*ƒ|id+d,d d-dt i d.t i d/d0ƒƒd1t d d2ƒ|id3d4d d5dt i d6ƒd d7ƒ|id8d9d d:dt i d;ƒd d<ƒ|id=d>d1tdd?d d@d dAƒtt i dBƒƒ}|idCdd d dDd|d dEƒ|idFddGd dHdtd dIƒt|dJƒ}|idKdLdMdt i dNƒd dOƒ|idPd t ƒ|idQdLdRdt i dSƒd dTƒ|idUd t ƒ|idVdLdWdt i dXƒd dYƒ|idZd t ƒ|id[dLd\dt i d]ƒd d^ƒ|id_d t ƒ|id`dLdadt i dbƒd dcƒ|iddd t ƒ|idedLdfdt i dgƒd dhƒ|idid t ƒ|idjdLdkdt i dlƒd dmƒ|idnd t ƒ|idodLdpdt i dqƒd drƒ|idsd t ƒ|idtdLdudt i dvƒd dwƒ|idxd t ƒ|idydLdzdt i d{ƒd d|ƒ|id}d t ƒ|id~dLddt i d€ƒd dƒ|id‚d t ƒ|idƒdLd„dt i d…ƒd d†ƒ|id‡d t ƒ|idˆdLd‰dt i dŠƒd d‹ƒ|idŒd t ƒ|iddLdŽdt i dƒd dƒ|id‘d t ƒ|id’dLd“dt i d”ƒd d•ƒ|id–d t ƒ|id—dLd˜dt i d™ƒd dšƒ|id›d t ƒ|idœdLddt i džƒd dŸƒ|id d t ƒ|id¡dLd¢dt i d£ƒd d¤ƒ|iƒt||dd¥t ƒ\}} |i|ƒ|io d¦g}nt||dd¥t ƒ\}} |iƒ| p| d$tjo2|iƒ| otd§| d$ƒntƒntititƒ|ip |ioSti d¨ƒ|ioti!d©ti"ƒq,|ioti!d©ti#ƒq,nt$ƒi%i&ƒ} zƒ| ~ } tƒdª| d$|_'y'tƒd«| d$||d| ƒWn4t(t)t*i+fj o} | i+t | ƒƒnXWdQX| i,ƒd$jotdƒndS(¬Nuutf-8tversionupython-swiftclient %stusageut usage: %%prog [--version] [--help] [--os-help] [--snet] [--verbose] [--debug] [--info] [--quiet] [--auth ] [--auth-version ] [--user ] [--key ] [--retries ] [--os-username ] [--os-password ] [--os-user-id ] [--os-user-domain-id ] [--os-user-domain-name ] [--os-tenant-id ] [--os-tenant-name ] [--os-project-id ] [--os-project-name ] [--os-project-domain-id ] [--os-project-domain-name ] [--os-auth-url ] [--os-auth-token ] [--os-storage-url ] [--os-region-name ] [--os-service-type ] [--os-endpoint-type ] [--os-cacert ] [--insecure] [--no-ssl-compression] [--help] [] Command-line interface to the OpenStack Swift API. Positional arguments: delete Delete a container or objects within a container. download Download objects from containers. list Lists the containers for the account or the objects for a container. post Updates meta information for the account, container, or object; creates containers if not present. stat Displays information for the account, container, or object. upload Uploads files or directories to the given container. capabilities List cluster capabilities. tempurl Create a temporary URL. auth Display auth related environment variables. Examples: %%prog download --help %%prog -A https://auth.api.rackspacecloud.com/v1.0 -U user -K api_key stat -v %%prog --os-auth-url https://api.example.com/v2.0 --os-tenant-name tenant \ --os-username user --os-password password list %%prog --os-auth-url https://api.example.com/v3 --auth-version 3\ --os-project-name project1 --os-project-domain-name domain1 \ --os-username user --os-user-domain-name domain1 \ --os-password password list %%prog --os-auth-url https://api.example.com/v3 --auth-version 3\ --os-project-id 0123456789abcdef0123456789abcdef \ --os-user-id abcdef0123456789abcdef0123456789 \ --os-password password list %%prog --os-auth-token 6ee5eb33efad4e45ab46806eac010566 \ --os-storage-url https://10.1.5.2:8080/v1/AUTH_ced809b6a4baea7aeab61a \ list %%prog list --lh u u --os-helpR%u store_trueR&uos_helpR(u&Show OpenStack authentication options.u --os_helpu-su--snetusnetR'u Use SERVICENET internal network.u-vu --verboseucountuverboseiuPrint more info.u--debugudebuguSShow the curl commands and results of all http queries regardless of result status.u--infouinfouMShow the curl commands and results of all http queries which return an error.u-qu--quietu store_consttconstiuSuppress status output.u-Au--authuauthuST_AUTHu URL for obtaining an auth token.u-Vu--auth-versionu auth_versionuST_AUTH_VERSIONuOS_AUTH_VERSIONu1.0R)u6Specify a version for authentication. Defaults to 1.0.u-Uu--useruuseruST_USERu&User name for obtaining an auth token.u-Ku--keyukeyuST_KEYu Key for obtaining an auth token.u-Ru --retriesiuretriesu1The number of times to retry a failed connection.uSWIFTCLIENT_INSECUREu --insecureuinsecureu’Allow swiftclient to access servers without having to verify the SSL certificate. Defaults to env[SWIFTCLIENT_INSECURE] (set to 'true' to enable).u--no-ssl-compressionu store_falseussl_compressionuxThis option is deprecated and not used anymore. SSL compression should be disabled by default by the system SSL library.u OpenStack authentication optionsu --os-usernametmetavaruu OS_USERNAMEu1OpenStack username. Defaults to env[OS_USERNAME].u --os_usernameu --os-user-iduu OS_USER_IDu/OpenStack user ID. Defaults to env[OS_USER_ID].u --os_user_idu--os-user-domain-iduuOS_USER_DOMAIN_IDu=OpenStack user domain ID. Defaults to env[OS_USER_DOMAIN_ID].u--os_user_domain_idu--os-user-domain-nameuuOS_USER_DOMAIN_NAMEuAOpenStack user domain name. Defaults to env[OS_USER_DOMAIN_NAME].u--os_user_domain_nameu --os-passworduu OS_PASSWORDu1OpenStack password. Defaults to env[OS_PASSWORD].u --os_passwordu--os-tenant-iduu OS_TENANT_IDu3OpenStack tenant ID. Defaults to env[OS_TENANT_ID].u--os_tenant_idu--os-tenant-nameuuOS_TENANT_NAMEu7OpenStack tenant name. Defaults to env[OS_TENANT_NAME].u--os_tenant_nameu--os-project-iduu OS_PROJECT_IDu5OpenStack project ID. Defaults to env[OS_PROJECT_ID].u--os_project_idu--os-project-nameuuOS_PROJECT_NAMEu9OpenStack project name. Defaults to env[OS_PROJECT_NAME].u--os_project_nameu--os-project-domain-iduuOS_PROJECT_DOMAIN_IDuCOpenStack project domain ID. Defaults to env[OS_PROJECT_DOMAIN_ID].u--os_project_domain_idu--os-project-domain-nameuuOS_PROJECT_DOMAIN_NAMEuGOpenStack project domain name. Defaults to env[OS_PROJECT_DOMAIN_NAME].u--os_project_domain_nameu --os-auth-urlu u OS_AUTH_URLu1OpenStack auth URL. Defaults to env[OS_AUTH_URL].u --os_auth_urlu--os-auth-tokenu u OS_AUTH_TOKENuOpenStack token. Defaults to env[OS_AUTH_TOKEN]. Used with --os-storage-url to bypass the usual username/password authentication.u--os_auth_tokenu--os-storage-urlu uOS_STORAGE_URLu¢OpenStack storage URL. Defaults to env[OS_STORAGE_URL]. Overrides the storage url returned during auth. Will bypass authentication when used with --os-auth-token.u--os_storage_urlu--os-region-nameu uOS_REGION_NAMEu7OpenStack region name. Defaults to env[OS_REGION_NAME].u--os_region_nameu--os-service-typeuuOS_SERVICE_TYPEu9OpenStack Service type. Defaults to env[OS_SERVICE_TYPE].u--os_service_typeu--os-endpoint-typeuuOS_ENDPOINT_TYPEu;OpenStack Endpoint type. Defaults to env[OS_ENDPOINT_TYPE].u--os_endpoint_typeu --os-cacertuu OS_CACERTujSpecify a CA bundle file to use in verifying a TLS (https) server certificate. Defaults to env[OS_CACERT].R÷u-huno such command: %su swiftclienttlevelu st_%s_helpust_%s(-tsys_argvRZR tdecodetclient_versionRR®RäR-RR.RR<R¢R/RRORtdisable_interspersed_argsR0tadd_option_grouptos_helptenable_interspersed_argstcommandst print_usageR tsignaltSIGINTR$tdebugtinfotloggingt getLoggert basicConfigtDEBUGtINFORR8R9RúRRtsocketR2tget_error_count( t argumentsR RERKRùRAt default_valtos_grpR*RBR¼toutputRM((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pytmainwsj A@       !                                                  'u__main__(]t __future__RRR RRtoptparseRRRtosRRRR!tos.pathRR R tsixR tsysR RþR RttimeRRt swiftclientRtswiftclient.utilsRRRtswiftclient.multithreadingRtswiftclient.exceptionsRRRtswiftclient.serviceRRRRtswiftclient.command_helpersRRRtshlexRRÒt ImportErrortpipesR3RR$R4R®R5RNRURVRpRŠR‹RRRR•RœRR R¥R¦RÃRËtst_info_optionsRÌt st_info_helpRÏtst_infot st_auth_helpRÜRÞRßRãROR0RqRt__name__(((s=/tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/shell.pytst   "  Q2 ¦ q  = I+ ³ $   R ÿ"