Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vv-py-utils

Collection of common utility functions I use across a variety of my projects

Installation

uv add git+https://github.com/vinoaj/vv-py-utils
poetry add git+https://github.com/vinoaj/vv-py-utils

Usage

from vvpyutils.pdfs import ...
...

Google Services

from vvpyutils.google.auth import GoogleAuthManager, Scopes
from vvpyutils.google.services.calendar import GoogleCalendar

auth_manager = GoogleAuthManager(
    # credentials_file=Path("client_secret.json"),
    # token_file=Path("token.pickle"),
    scopes=[
        Scopes.Calendar.EVENTS,
        Scopes.Gmail.MODIFY,
    ]
)

calendar = GoogleCalendar(auth_manager=auth_manager)
upcoming_events = calendar.get_events(max_results=5)
for event in upcoming_events:
    print(
        f"{event['summary']} - {event['start'].get('dateTime', event['start'].get('date'))}"
    )

Utilities

docx

  • Utilises the docx2pdf package
    • For this to work, you need Microsoft Word present on your device

Development

Running tests

Run all tests

uv run tests

# or
uv run pytest tests/ -v

Run specific test

uv run pytest tests/test_duckdb_utils.py -v

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages