# 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.4: 12-17-2012
- Updating dependencies for python-requests.
- Updating codebase to make use of requests 1.0+ (this release introduced
backwards-incompatible changes).
v0.3: 12-14-2012
- Making `get` method return `{}` on error.
v0.2: 12-14-2012
- Adding support for extra data fields.
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.4: 12-17-2012
- Updating dependencies for python-requests.
- Updating codebase to make use of requests 1.0+ (this release introduced
backwards-incompatible changes).
v0.3: 12-14-2012
- Making `get` method return `{}` on error.
v0.2: 12-14-2012
- Adding support for extra data fields.
v0.1: 11-27-2012
- First release!
Metadata
Release files for data247 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| data247-0.4.tar.gz | 3.4 kB | Details |
Release files / data247-0.4.tar.gz
| Download URL | data247-0.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b64af761f5ae82d90e12fab8a15a50bb5a9a96acfac13328cbfcb71ab1e4ccca
|
|
BLAKE2b-256 checksum How to use checksums |
be48f8de13e0db1ba685716abeee2a34752a43d918afbd4c71fff88ec85638dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |