Skip to main content

calendario_ics

Módulo de Python para gestionar eventos en archivos .ics de KOrganizer.
Python module to manage events in KOrganizer .ics files.

Proporciona operaciones CRUD (crear, leer, actualizar, eliminar) sobre eventos almacenados en archivos iCalendar (.ics) en el directorio de KOrganizer.
Provides CRUD (create, read, update, delete) operations on events stored in iCalendar (.ics) files in the KOrganizer directory.

Todas las funciones devuelven (bool, str) o (uid, str) según corresponda.
All functions return (bool, str) or (uid, str) as appropriate.


Instalación / Installation

pip install calendario_ics

Con script / With script

# Copiar el script al directorio donde están los .py
chmod +x install.sh
./install.sh

Uso como librería / Usage as a library

import calendario_ics as cal
# Listar calendarios disponibles / List available calendars
print(cal.listar_calendarios())
# Listar eventos de hoy / List today's events
print(cal.listar_eventos(start="2026-08-05", end="2026-08-05"))
# Listar eventos en un rango / List events in a range
print(cal.listar_eventos(start="2026-08-01", end="2026-08-10"))
# Agregar un evento / Add an event
uid, msg = cal.agregar_evento(
    evento={
        "summary": "Reunión con equipo / Team meeting",
        "description": "Revisar avances del proyecto / Review project progress",
        "dtstart": cal.parsear_fecha_hora("2026-08-05 10:00"),
        "dtend": cal.parsear_fecha_hora("2026-08-05 11:30"),
        "location": "Oficina virtual / Virtual office",
        "priority": 5,
    }
)
print(msg)  # Evento agregado con UID: agente-1234567890.1234
# Mostrar un evento por su UID / Show an event by UID
print(cal.mostrar_evento("agente-1234567890.1234"))
# Modificar un evento / Modify an event
ok, msg = cal.modificar_evento(
    "agente-1234567890.1234",
    summary="Reunión importante / Important meeting",
    dtstart=cal.parsear_fecha_hora("2026-08-06 11:00")
)
print(msg)  # Evento agente-1234567890.1234 modificado.
# Eliminar un evento / Delete an event
ok, msg = cal.eliminar_evento("agente-1234567890.1234")
print(msg)  # Evento agente-1234567890.1234 eliminado.

Uso como CLI / Usage as CLI

# Listar calendarios / List calendars
calendario-cli calendars
# Listar eventos de hoy / List today's events
calendario-cli list --start 2026-08-05 --end 2026-08-05
# Listar eventos en un rango / List events in a range
calendario-cli list --start 2026-08-01 --end 2026-08-10
# Agregar evento / Add event
calendario-cli add --summary "Reunión con equipo / Team meeting" --description "Revisar avances / Review progress" --dtstart "2026-08-05 10:00" --dtend "2026-08-05 11:30" --location "Oficina virtual / Virtual office" --priority 5
# Mostrar evento / Show event
calendario-cli show agente-1234567890.1234
# Modificar evento / Modify event
calendario-cli modify agente-1234567890.1234 --summary "Reunión importante / Important meeting" --dtstart "2026-08-06 11:00"
# Eliminar evento / Delete event
calendario-cli delete agente-1234567890.1234

LICENSE

MIT License

Copyright (c) 2026 Reinel G. Paredes

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calendario_ics-1.0.0.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.

calendario_ics-1.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file calendario_ics-1.0.0.tar.gz.

File metadata

  • Download URL: calendario_ics-1.0.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.2

File hashes

Hashes for calendario_ics-1.0.0.tar.gz
Algorithm Hash digest
SHA256 109225f2fb681227a6d35fe2c7cc0bfe2869723be6c9d3f0fb880d6f95980f77
MD5 2f03e7be0308719d36302ee7d26d1e65
BLAKE2b-256 fb90724e9442cdffc348bfc80e488fdf0f347ee949f1ac32ee3ccad83e999f48

See more details on using hashes here.

File details

Details for the file calendario_ics-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: calendario_ics-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.2

File hashes

Hashes for calendario_ics-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 187e78d836765922f901f4b6b481645b0c1f86651fdf0637d3acf0349c166275
MD5 be4b86142cc5e7cc610636e0b401879f
BLAKE2b-256 e030be77a82c6f7987ae65593137fe7e27cf70bc4344627c0bb6580897a4cd3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page