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.0.5.tar.gz (8.7 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.0.5-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for memealerts-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ac8f75583113eabe7940ee6a094b8ee5d0f929ab6cfda03081d5851fcf93e963
MD5 34383372861391f60dd40cb673427ed7
BLAKE2b-256 752965fd2ea47ecea2cc4f78cbad0f87b76f069ce54e105c73b8061ce1f4b65c

See more details on using hashes here.

Provenance

The following attestation bundles were made for memealerts-1.0.5.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.0.5-py3-none-any.whl.

File metadata

  • Download URL: memealerts-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.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.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a58dc5c48008a2d8bac0708675567f238b75ab10f2e5a6dc1e399bc58f2bc12b
MD5 27f8448e2d2644139ddd16b923466662
BLAKE2b-256 f5c78382898b815ebfd5e5c37db848f257c61d990193d39bf97ff56b3742bdd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for memealerts-1.0.5-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