==============================
[](https://travis-ci.org/redjack/akadata-py)
Python client for Akamai EdgeScape. Supports Python 2.7/3.3+, and PyPy.
## Installation
```
pip install akadata
```
## Usage
To lookup an IP address, initialize an `akadata.EdgeScape` object with the host
and port of the EdgeScape Facilitator server, and call its `ip_lookup` method.
See the docstring for `akadata.EdgeScape.ip_lookup` for details about the
resulting dictionary, parsing, and possible exceptions.
```pycon
>>> from pprint import pprint
>>> from akadata import EdgeScape
>>>
>>> client = EdgeScape('192.168.59.103', 49158)
>>>
>>> pprint(client.ip_lookup('208.78.4.5', timeout=1))
{u'areacode': [301],
u'asnum': [40287],
u'bw': 5000,
u'city': u'SILVERSPRING',
u'company': u'RedJack_LLC',
u'continent': u'NA',
u'country_code': u'US',
u'county': [u'MONTGOMERY'],
'default_answer': False,
u'dma': 511,
u'domain': u'redjack.com',
u'fips': ['24031'],
'ip': u'208.78.4.5',
u'lat': 39.0245,
u'long': -77.0094,
u'msa': 8872,
u'pmsa': 8840,
u'region_code': u'MD',
u'throughput': u'vhigh',
u'timezone': u'EST',
u'zip': ['20901', '20902', '20903', '20904', '20905', '20906', '20907',
'20908', '20910', '20911', '20914', '20915', '20916', '20918',
'20993', '20997']}
```
Metadata
Release files for akadata 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| akadata-0.3.0.tar.gz | 12.0 kB | Without provenance | Details for akadata-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| akadata-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for akadata-0.3.0-py2.py3-none-any.whl |
Total release size: 21.1 kB
Release files / akadata-0.3.0.tar.gz
| Download URL | akadata-0.3.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c4c26999b76b7d7b61868b0181b6023bc0529a63722257545762bcaf42a8e56
|
|
BLAKE2b-256 checksum How to use checksums |
ae79797e099d27cb03dd9c05709fa1c1cda8e10d514bcfcf16e3ea69401ecd65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / akadata-0.3.0-py2.py3-none-any.whl
| Download URL | akadata-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
26404a04ef0db0c36d84c60f56644104ddd0ffc0b4c5d4c9d4809bad18d4e008
|
|
BLAKE2b-256 checksum How to use checksums |
8ca20d371e156d79be268eabe4f5af14c0625a08785e40bdf89182eb012bbdca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for akadata 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.