File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
- *****
1
+ *********
2
2
Fetchcode
3
- *****
3
+ *********
4
4
It is a library to reliably fetch code via HTTP, FTP and version control systems.
5
5
6
6
Installation
@@ -12,22 +12,22 @@ Then install all the requirements using
12
12
`pip3 install -r requirements.txt `
13
13
14
14
Running test suite
15
- #################
15
+ ##################
16
16
17
17
To run test suite
18
18
`python3 -m pytest `
19
19
20
20
Usage of API to fetch HTTP/S and FTP URLs
21
21
#########################################
22
- ```
23
- from fetchcode import fetch
24
- url = 'A Http or FTP URL'
25
- location = 'Location of file'
26
- # This returns a response object which has attributes
27
- # 'content_type' content type of the file
28
- # 'location' the absolute location of the files that was fetched
29
- # 'scheme' scheme of the URL
30
- # 'size' size of the retrieved content in bytes
31
- # 'url' fetched URL
32
- resp = fetch(url = url)
33
- ```
22
+
23
+ .. code-block :: python
24
+
25
+ from fetchcode import fetch
26
+ url = ' A Http or FTP URL '
27
+ # This returns a response object which has attributes
28
+ # 'content_type' content type of the file
29
+ # 'location' the absolute location of the files that was fetched
30
+ # 'scheme' scheme of the URL
31
+ # 'size' size of the retrieved content in bytes
32
+ # ' url' fetched URL
33
+ resp = fetch( url = url)
You can’t perform that action at this time.
0 commit comments