icw package
Submodules
icw.config module
Config classes for icw.
icw.converter module
Converts csv files to ics files.
- exception icw.converter.ContentError[source]
Bases:
BaseICWError
Error in the body of the input data.
- exception icw.converter.DatetimeFormatError[source]
Bases:
BaseICWError
Error in input datetime format.
- icw.converter.check_dates_and_times(start_date: str | None, start_time: str | None, end_date: str | None, end_time: str | None, all_day: bool | None, rownum: int | None) None [source]
Check the dates and times to make sure everything is kosher.
- icw.converter.check_headers(headers: list[str]) list[str] [source]
Ensure sure that all headers are exactly correct.
This ensures the headers will be recognized as the necessary keys.
icw.forms module
Forms for icw.
- class icw.forms.UploadForm(*args, **kwargs)[source]
Bases:
FlaskForm
Form that accepts the CSV input file.
- csv_file = <UnboundField(FileField, ('',), {'validators': [<flask_wtf.file.FileRequired object>, <flask_wtf.file.FileAllowed object>]})>
- submit = <UnboundField(SubmitField, (), {'label': 'Convert'})>
- validators = [<flask_wtf.file.FileRequired object>, <flask_wtf.file.FileAllowed object>]
icw.views module
Flask views for icw.
Module contents
icw :: Flask-based Webapp to convert a csv file into an icalendar file.