Skip to content

scamai/calendar_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Parser

Have you received an event description in text form? Do you want to import the text based events into your calendar with one click? You are in the right place!

A Django-based event parser that extracts structured event information from text descriptions. The parser can handle single and multiple events, including details like dates, times, titles, locations, and descriptions.

This is currently localy hosted on my personal server, but I plan on hosting it on a cloud service in the future for easy access. Currently you will need to add your own API key.

Screenshots

Landing page

API Response

Simply copy your event in text into the box, click parse event!

Event Parsing

Installation

  1. Clone the repository:
git clone <repository-url>
cd event-parser
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Apply database migrations:
python manage.py migrate

Usage

  1. Start the development server:
python manage.py runserver
  1. Open your web browser and navigate to local host that your previous step instructed you to do

API Documentation

POST /parse-event/

Parses event information from text.

Request Body:

{
    "text": "string"
}

Response:

{
    "events": [
        {
            "title": "string",
            "date": "YYYY-MM-DD",
            "time": "HH:MM-HH:MM",
            "location": "string",
            "description": "string"
        }
    ]
}

Testing

Run the test suite:

python manage.py test

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Vibe code by Ben, input a doc with calendar info and events, output .ics file that you can import directly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors