Skip to content

Commit 8d48e18

Browse files
committed
Added cloning a repository
1 parent dd43cd6 commit 8d48e18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Examples
2727

2828
Here are some common examples of typical tasks
2929

30+
Create a repository
31+
-------------------
32+
3033
```
3134
$ python3
3235
>>> import s3git
@@ -40,7 +43,15 @@ $ s3git ls
4043
c518dc5f1d95258dc91f6d285e7ea7300f37dea4dd517173f2e23afe0cb52bc9d8eb18683cdcf377e96a2d5a81585e61f6d27fa5d017cad53836bd050e9f105f
4144
$ s3git cat c518dc5f1d95258dc91f6d285e7ea7300f37dea4dd517173f2e23afe0cb52bc9d8eb18683cdcf377e96a2d5a81585e61f6d27fa5d017cad53836bd050e9f105f
4245
hello s3git
46+
```
4347

48+
Clone a repository
49+
------------------
50+
51+
```py
52+
>>> import s3git
53+
>>> repo = s3git.clone('s3://s3git-spoon-knife', '.', access='AKIAJYNT4FCBFWDQPERQ', secret='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')
54+
>>> repo.list('')
4455
```
4556

4657
Limitations and Optimizations

0 commit comments

Comments
 (0)