This project is carried out for the 3rd year of computer license at CY Cergy Paris University. The objective of the latter is the design and production of a vcf and ics file reader. The application works in two ways, the first in the command line allows you to view and export a contact book or a calendar. The second version with a graphical interface offers the same options as the first, but also the possibility of modifying contacts and calendar items as well as viewing exported files.
Through the two versions of the application, we can find the functionalities. The command line app version has fewer options than the GUI version.
Here are the features offered by the command line version:
-
Listing
VCF
/ICS
files in a directory -
Reading
VCF
/ICS
files -
Export of
VCF
/ICS
files inHTML
andCSV
formats
It is possible to choose between two export modes for HTML files, the first simply exporting the data using microformats, the second generating a complete HTML page.
Here are the features offered by the Graphical Interface version:
-
Reading
VCF
/ICS
files -
Editing
VCF
/ICS
files -
Import of HTML/CSS files exported by the application
-
Export of
VCF
/ICS
files inHTML
andCSV
formats
Just like the command line version, the graphical version offers two modes for exporting an HTML file, the first by simply exporting the data in HTML format using microformats, the second by exporting the same information, but in a complete HTML page.
This project requires Python 3.10 or higher.
This application uses the Tkinter
library to produce a graphical display. Check that this library is installed on your machine. This library is installed by default on windows, but not on Linux or MacOS. In this case, you can install it as follows:
# install Tkinter on Debian or Debian based Linux distro
apt install python3-tk
# install Tkinter on MacOS
brew install tkinter
# or use you own package installer based on your OS
The operation of the application differs depending on the version used. Here below are the different uses of the versions of the application.
In order to launch the application, it is necessary to call the corresponding script as follows: python3 src/cli.py
(use python src/cli.py
on Windows). We then place the arguments according to what we want to achieve:
-
-h
or--help
provides help -
-d path/to/directory
allows to viewVCF
/ICS
files in a directory -
-i path/to/file
allows to view the contents of a file. -
-i path/to/input_file -c path/to/output_file
allows to export a file inCSV
format. -
-i path/to/input_file -h path/to/output_file
allows to export a file inHTML
format. -
-i path/to/input_file -h path/to/output_file -p
allows you to export a file inHTML
format by generating a complete page.
The GUI version is launched by calling the dedicated script like this: python3 src/gui.py
(use python src/gui.py
on Windows)