Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

is it better to create new DAVClients or reuse one DAVClient for long-term repeated syncing tasks?

Cerrado
#612 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
30/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Start by reading the DAVClient usage guidance and the two lifecycle examples in the issue. Determine whether clients are intended to be reused or recreated for repeated syncs, then provide clear guidance or an example; done means the long-term usage question is answered.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

hi,
thanks for this package. i am working on a calendar syncing app using the DAVClient. as i did not find an example on that topic, how is it supposed to be used for long-term usage with repeated syncing tasks? either closing and creating a new DAVClient for every syncing run or should it be only one DAVClient being used all the time?

e.g. pseudo code

cal_primary = "..."

while True:
    client = caldav.DAVClient(cal_primary, username="...", password="...")
    principal = client.principal()
    calendars = self.principal.calendars()
    # do something with the calendars
    client.close()
   time.sleep(60)

or

cal_primary = "..."
client = caldav.DAVClient(cal_primary, username="...", password="...")
principal = client.principal()

while True:
    calendars = self.principal.calendars()
    # do something with the calendars
   time.sleep(60)

in my use case i use the APScheduler package [1]

[1] https://github.com/agronholm/apscheduler

Lenguaje dominante
Python
Estrellas
412
Forks
113
Merge medio
10 h 29 min
PR fusionados (30 d)
57

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python-caldav/caldav

Todos los issues de python-caldav/caldav

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.