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.1.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.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for calendario_ics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9669071839fcd1ee7d8210d7eeb6055410f2f428d5cdd7c0b15af581db35de0e
MD5 a39532c21655184808236614219a44d2
BLAKE2b-256 d41d83d7b39cdbaad59cdebfbfc71f17bf92646c416503ad026814b69afff977

See more details on using hashes here.

Provenance

The following attestation bundles were made for calendario_ics-1.0.1.tar.gz:

Publisher: publish.yml on rgparedess/calendario_ics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

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

File hashes

Hashes for calendario_ics-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca2ec8c3c8d7afd3d3e171a4e4cc32b86c330601cb283c862dae45a3102cabd5
MD5 77928679ea5cb68ccc3c52782aa731e6
BLAKE2b-256 48883aff3c0dfa8111c47c84ae2ba5e3af3c940352ae6943d80ac928e725b82c

See more details on using hashes here.

Provenance

The following attestation bundles were made for calendario_ics-1.0.1-py3-none-any.whl:

Publisher: publish.yml on rgparedess/calendario_ics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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