Skip to content

Commit 8b10c27

Browse files
committed
Formatting updates.
1 parent ccd0ce0 commit 8b10c27

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

README.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ The free plan is limited to 1,000 requests a day, and doesn't include some of th
1515

1616
#### Installation
1717

18-
```pip install ipinfo```
18+
```
19+
pip install ipinfo
20+
```
1921

2022
#### Quick Start
2123

@@ -112,28 +114,28 @@ United States
112114

113115
```
114116
>>> details.all
115-
{
116-
'asn': { 'asn': 'AS20001',
117-
'domain': 'twcable.com',
117+
{
118+
'asn': { 'asn': 'AS20001',
119+
'domain': 'twcable.com',
120+
'name': 'Time Warner Cable Internet LLC',
121+
'route': '104.172.0.0/14',
122+
'type': 'isp'},
123+
'city': 'Los Angeles',
124+
'company': { 'domain': 'twcable.com',
118125
'name': 'Time Warner Cable Internet LLC',
119-
'route': '104.172.0.0/14',
120126
'type': 'isp'},
121-
'city': 'Los Angeles',
122-
'company': { 'domain': 'twcable.com',
123-
'name': 'Time Warner Cable Internet LLC',
124-
'type': 'isp'},
125-
'country': 'US',
126-
'country_name': 'United States',
127-
'hostname': 'cpe-104-175-221-247.socal.res.rr.com',
128-
'ip': '104.175.221.247',
129-
'ip_address': IPv4Address('104.175.221.247'),
130-
'loc': '34.0293,-118.3570',
131-
'latitude': '34.0293',
132-
'longitude': '-118.3570',
133-
'phone': '323',
134-
'postal': '90016',
135-
'region': 'California'
136-
}
127+
'country': 'US',
128+
'country_name': 'United States',
129+
'hostname': 'cpe-104-175-221-247.socal.res.rr.com',
130+
'ip': '104.175.221.247',
131+
'ip_address': IPv4Address('104.175.221.247'),
132+
'loc': '34.0293,-118.3570',
133+
'latitude': '34.0293',
134+
'longitude': '-118.3570',
135+
'phone': '323',
136+
'postal': '90016',
137+
'region': 'California'
138+
}
137139
```
138140

139141
#### Caching
@@ -166,13 +168,13 @@ When looking up an IP address, the response object includes a `details.country_n
166168
The file must be a `.json` file with the following structure:
167169

168170
```
169-
{
170-
"BD": "Bangladesh",
171-
"BE": "Belgium",
172-
"BF": "Burkina Faso",
173-
"BG": "Bulgaria"
174-
...
175-
}
171+
{
172+
"BD": "Bangladesh",
173+
"BE": "Belgium",
174+
"BF": "Burkina Faso",
175+
"BG": "Bulgaria"
176+
...
177+
}
176178
```
177179

178180
### Other Libraries

0 commit comments

Comments
 (0)