Mashery API Client Library
A simple Python client library for the Mashery API.
Example
Query recently created apps:
from masheryclient.jsonrpc import MasheryJsonRpcApi
json_rpc_api_client = MasheryJsonRpcApi(
MASHERY_SITE_ID,
MASHERY_SERVICE_KEY,
MASHERY_API_KEY,
MASHERY_API_SECRET
)
mashery_query = 'SELECT * FROM applications ORDER BY created DESC ITEMS 10'
r = json_rpc_api_client.query(mashery_query)['items']
for app in r:
print app['name']
Top API callers within the specified time period:
reporting_client = MasheryReportingApi(
MASHERY_SITE_ID,
MASHERY_SERVICE_KEY,
MASHERY_API_KEY,
MASHERY_API_SECRET,
)
r = reporting_client.developer_activity_for_service(start_date_str, end_date_str, limit)
app_list = []
for app in r:
api_key = app['serviceDevKey']
call_count_success = app['callStatusSuccessful']
call_count_blocked = app['callStatusBlocked']
call_count_other = app['callStatusOther']
Metadata
Release files for masheryclient 0.1.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 |
|---|---|---|---|---|
| masheryclient-0.1.0.tar.gz | 4.8 kB | Without provenance | Details for masheryclient-0.1.0.tar.gz |
Release files / masheryclient-0.1.0.tar.gz
| Download URL | masheryclient-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
549878771dd36f567ec43b345e26eb4aed1d82582fc9bf106ea3cab5beb617b0
|
|
BLAKE2b-256 checksum How to use checksums |
71f1d92e357911d3cdae06e9779d906c3ee1e8b7086a5392cc3a54d46445c0e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for masheryclient 0.1.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.