Skip to main content

aiogetui

Python SDK for Getui push service based on asyncio(aiohttp). Based on GeTui rest api.

Installation

$ pip install aiogetui

Basic Usage

import asyncio
import uuid
from aiogetui import IGeTui, ToSingleMessage, NotificationTemplate

APP_ID = ''
APP_KEY = ''
MASTER_SECRET = ''
CLIENT_ID = ''


async def run():
    client = IGeTui(APP_ID, APP_KEY, MASTER_SECRET)
    await client.auth_sign()
    message = ToSingleMessage(
        client_id=CLIENT_ID, 
        template=NotificationTemplate({'title': 'my title', 'text': 'My text.'}),
        is_offline=True,              # optional, default to False
        message_id=uuid.uuid4().hex,  # optional, length 10~32
    )
    result = await client.push(message)
    print(result)
    await client.close()

asyncio.get_event_loop().run_until_complete(run())

Metadata

Release files for aiogetui 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 aiogetui 0.4
File Size Uploaded Provenance
aiogetui-0.4.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aiogetui 0.4
File Interpreter ABI Platform
aiogetui-0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 12.0 kB

Release files / aiogetui-0.4.tar.gz

Download URL aiogetui-0.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2d609bfeca558520ec888737600bda4a5114f73c4e4ececf9778f0ffbfcf5dfe
BLAKE2b-256 checksum
How to use checksums
73a7ddde419ba9b5f63a7cf07820aa2ef1fde88f754d5033505ae396cb9a481a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release files / aiogetui-0.4-py2.py3-none-any.whl

Download URL aiogetui-0.4-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
412be1ad94caa79adec7cbfd3fbc2e88addd8051ccea64a05299018b8b27a169
BLAKE2b-256 checksum
How to use checksums
1b5dc9f9bb3aef619d55af1d5175f5a825f926191fb96dfb20ef01c125231afb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Security for aiogetui 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