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+ *********
22Fetchcode
3- *****
3+ *********
44It is a library to reliably fetch code via HTTP, FTP and version control systems.
55
66Installation
@@ -12,22 +12,22 @@ Then install all the requirements using
1212`pip3 install -r requirements.txt `
1313
1414Running test suite
15- #################
15+ ##################
1616
1717To run test suite
1818`python3 -m pytest `
1919
2020Usage of API to fetch HTTP/S and FTP URLs
2121#########################################
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