Skip to main content

aiogc

Async Google Calendar API Client for Python 3

Installation

Run this in your terminal:

pip install aiogc

Usage

Following code prints summary and start and end datetimes of upcoming events within nearest 5 days.

import asyncio
import datetime

import aiohttp

from aiogc import events, models

c = models.Credentials(
	client_id='<your_client_id>',
    client_secret='<your_client_secret>',
    scopes=['<your_scope1>', 'your_scope2'],
    refresh_token='<your_refresh_token>'
)

async def main():
	async with aiohttp.ClientSession() as s:
		es = await events.list(
			calendar_id='<your_calendar_id>',
			credentials=c,
			session=s,
			singleEvents='true',
			timeMin=datetime.datetime.now().isoformat(),
			timeMax=(datetime.datetime.now() + datetime.timedelta(days=5)).isoformat(),
			orderBy='startTime',
		)
		for e in es:
			print(f'{e.summary}:\n{e.start.dateTime} – {e.end.dateTime}')

if __name__=='__main__':
	loop = asyncio.get_event_loop()
	loop.run_until_complete(main())

Metadata

Release files for aiogc 0.1.5

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

Source distribution (sdist)

Source distribution for aiogc 0.1.5
File Size Uploaded Provenance Actions
aiogc-0.1.5.tar.gz 3.8 kB Without provenance Details for aiogc-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiogc 0.1.5
File Interpreter ABI Platform Actions
aiogc-0.1.5-py3-none-any.whl Python 3 none any Details for aiogc-0.1.5-py3-none-any.whl

Total release size: 9.8 kB

Release files / aiogc-0.1.5.tar.gz

Download URL aiogc-0.1.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ed3f817c06cc643069713e129e5aaf37ba667a1f9c1174c2dd5c90ac38e53b15
BLAKE2b-256 checksum
How to use checksums
d8bf5b1723e738de1312ae432f85350672210d4db03644fb95ea3dfd0ade5cef
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.2

Release files / aiogc-0.1.5-py3-none-any.whl

Download URL aiogc-0.1.5-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6caa7ec35e25245cb07c663c73d6f609fe931764979f754b9cf5eec0dd02b1b1
BLAKE2b-256 checksum
How to use checksums
3c6b38553c4a953e13ab330eb69b42d330ad81462cf0f469b927d46a387c8058
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.2

Security for aiogc 0.1.5

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