Skip to content

Commit ccb7b61

Browse files
authored
Merge pull request #43 from bobquest33/Issue-42
Rst formatting issue fix #42
2 parents f83407a + 943bbb2 commit ccb7b61

7 files changed

+21
-529
lines changed

README.rst

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
1-
*****
1+
*********
22
Fetchcode
3-
*****
3+
*********
44
It is a library to reliably fetch code via HTTP, FTP and version control systems.
55

66
Installation
77
############
88
Clone the repo using
9-
`git clone https://github.com/nexB/fetchcode`
9+
10+
:code:`git clone https://github.com/nexB/fetchcode`
1011

1112
Then install all the requirements using
12-
`pip3 install -r requirements.txt`
13+
14+
:code:`pip3 install -r requirements.txt`
1315

1416
Running test suite
15-
#################
17+
##################
1618

1719
To run test suite
18-
`python3 -m pytest`
20+
21+
:code:`python3 -m pytest`
1922

2023
Usage of API to fetch HTTP/S and FTP URLs
2124
#########################################
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-
```
25+
26+
.. code-block:: python
27+
28+
from fetchcode import fetch
29+
url = 'A Http or FTP URL'
30+
# This returns a response object which has attributes
31+
# 'content_type' content type of the file
32+
# 'location' the absolute location of the files that was fetched
33+
# 'scheme' scheme of the URL
34+
# 'size' size of the retrieved content in bytes
35+
# 'url' fetched URL
36+
resp = fetch(url = url)

package_registry/github_tags.py

-50
This file was deleted.

package_registry/rust_versions.py

-46
This file was deleted.

0 commit comments

Comments
 (0)