An API client for Data 24-7.
Project description
# python-data247
An API client for [Data 24-7](https://www.data24-7.com/).
## Install
To install the library, you can use
[pip](http://www.pip-installer.org/en/latest/).
```bash
$ pip install data247
```
## Usage
Essentially all you need to do is create a `Data247` client object--this holds
your account credentials and also specifies which data you're requesting.
You can then make queries using the `get` method, passing in the search term.
```python
>>> from data247 import Data247, IP
>>>
>>> client = Data247('myusername', 'mypassword', IP)
>>> client.get('174.134.29.20')
{
u'city': u'Bakersfield',
u'areacode': u'661',
u'country': u'US',
u'dst': u'1',
u'zipcode': u'93312',
u'longitude': u'-119.227203',
u'state': u'CA',
u'cost': u'0.0030',
u'billable': u'1',
u'latitude': u'35.383202',
u'timezone': u'-8',
u'ip_address': u'174.134.29.20'
}
```
## Changelog
v0.1: 11-27-2012
- First release!
An API client for [Data 24-7](https://www.data24-7.com/).
## Install
To install the library, you can use
[pip](http://www.pip-installer.org/en/latest/).
```bash
$ pip install data247
```
## Usage
Essentially all you need to do is create a `Data247` client object--this holds
your account credentials and also specifies which data you're requesting.
You can then make queries using the `get` method, passing in the search term.
```python
>>> from data247 import Data247, IP
>>>
>>> client = Data247('myusername', 'mypassword', IP)
>>> client.get('174.134.29.20')
{
u'city': u'Bakersfield',
u'areacode': u'661',
u'country': u'US',
u'dst': u'1',
u'zipcode': u'93312',
u'longitude': u'-119.227203',
u'state': u'CA',
u'cost': u'0.0030',
u'billable': u'1',
u'latitude': u'35.383202',
u'timezone': u'-8',
u'ip_address': u'174.134.29.20'
}
```
## Changelog
v0.1: 11-27-2012
- First release!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
data247-0.1.tar.gz
(3.1 kB
view details)
File details
Details for the file data247-0.1.tar.gz
.
File metadata
- Download URL: data247-0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9edffa068fe77ef2ef40d62217f9980039a712f0215bfa2168e264625e9bef51 |
|
MD5 | ace3c7602950d2397ed6ffed83f0c369 |
|
BLAKE2b-256 | f2743c91415149752be634b4bafed8fadf09e508fb4abb11d07a02e79772d1f9 |