Skip to main content

Mashery Authentication for Requests

Simple class for making authenticated requests to Mashery APIs using the requests library.

Example

import requests
from requests_auth_mashery import MasheryAuth


def main():
    api_key = 'EXAMPLE'
    api_secret = 'EXAMPLE'

    mashery_auth = MasheryAuth(api_key, api_secret)

    payload = {
        'entitytype': 'artist',
        'query': 'weezer',
        'format': 'json',
    }
    url = 'http://api.rovicorp.com/search/v2.1/music/search'
    r = requests.get(url, auth=mashery_auth, params=payload)

    print r.content


if __name__ == '__main__':
    main()

Metadata

Release files for requests-auth-mashery 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-auth-mashery 0.0.4
File Size Uploaded Provenance Actions
requests-auth-mashery-0.0.4.tar.gz 5.1 kB Without provenance Details for requests-auth-mashery-0.0.4.tar.gz

Release files / requests-auth-mashery-0.0.4.tar.gz

Download URL requests-auth-mashery-0.0.4.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9ef6009181f610bf0d6d555bc65dfb86def8b5ad1fe381a53f536c99a9d40c4
BLAKE2b-256 checksum
How to use checksums
53cc8559e960dc56373f2c5f64de5a98fa81a9ca9f912fbfb69d0250186d9cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for requests-auth-mashery 0.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page