Skip to main content

@BlitzkriegAutobot asynchronous api wrapper

Project description

@BlitzkriegAutobot asynchronous api wrapper

Docs: https://blitzkriegpublicapi.readme.io/

Install

pip install aioblitzkrieg

Basic methods

from aioblitzkrieg import AioBlitzkrieg

client = AioBlitzkrieg(api_key='863...e12')

me = await client.get_me()
archives = await client.get_archives()
report = await client.report_archive(archive_id_id=1)

print(me, archives, report, sep='\n')

Upload archive method

from aioblitzkrieg import AioBlitzkrieg

client = AioBlitzkrieg(api_key='863...e12')

path = "sample.zip"

result = await client.upload_archive(
    file_path=path
)
print(result)

# Upload archive via unique identifier of the referral partner

ref_id = 'MY_SERVICE_REF_ID'

result = await client.upload_archive(
    file_path=path,
    ref_id=ref_id
)
print(result)

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

aioblitzkrieg-0.1.9.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

aioblitzkrieg-0.1.9-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page