Skip to main content

Memealerts async/sync client

Project description

Memealerts Python Client

This project is a library which provides you clients for interaction with memealerts.

Install

pip install memealerts

Usage

Using sync client

from memealerts import MemealertsClient

token = "<Your bearer token>"

cli = MemealertsClient(token)

supporters = cli.get_supporters()
first_supporter = supporters.data[0].supporterId
cli.give_bonus(first_supporter, 5)

Using async client

import asyncio
from memealerts import MemealertsAsyncClient

token = "<Your bearer token>"

cli = MemealertsAsyncClient(token)

async def main():
    supporters = await cli.get_supporters()
    first_supporter = supporters.data[0].supporterId
    await cli.give_bonus(first_supporter, 5)

asyncio.run(main())

Badges

wakatime Black GitHub Org's stars PyPI - License PyPI PyPI - Status PyPI - Python Version PyPI - Downloads

License

MIT License

TODO

  • handle errors from api
  • iterator for all supporters
  • user/find
  • other methods and schemas

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

memealerts-1.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memealerts-1.1.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file memealerts-1.1.2.tar.gz.

File metadata

  • Download URL: memealerts-1.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for memealerts-1.1.2.tar.gz
Algorithm Hash digest
SHA256 ab9cd8d84a2a08b2a968199017c0c31471472111d80c8d11f62462c7a56ef42d
MD5 16074ab44fbe19fe2c79304d95cb567e
BLAKE2b-256 288b2cad868000b368c8a2537f35467cde6e3adf009d0a1e6dedce2ea4c9a1f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for memealerts-1.1.2.tar.gz:

Publisher: ci-cd.yaml on Quantum-0/memealerts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memealerts-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: memealerts-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for memealerts-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aab54241d1dd1cd21fb714e9f6851a0c38881fb5e145468542cfc25fe688aef8
MD5 3d90d964e4b7a1c40b546a688ea06430
BLAKE2b-256 7d6ccfe5ed3721bf77daba00e9b1066f6ae3d45411fbf36059d9bee9fae44f2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for memealerts-1.1.2-py3-none-any.whl:

Publisher: ci-cd.yaml on Quantum-0/memealerts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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