Commit graph

6 commits

Author SHA1 Message Date
4a6c825394
refactor: streamline kalente module structure
All checks were successful
Python Package CI/CD / Publish to PyPI (push) Successful in 40s
Introduced a `Calendar` class to encapsulate calendar-related functionalities, removing redundant code and improving module organization. This refactor simplifies `__main__.py` by delegating calendar operations to the `Calendar` class, enhancing readability and maintainability. Adjusted import statements in `__init__.py` to reflect these changes, ensuring the module's public API remains clear and intuitive. The refactor also includes minor optimizations, such as consolidating validation logic and updating default image data, contributing to a leaner codebase.

This change aims to make future extensions and maintenance of the `kalente` module more manageable, paving the way for further enhancements and features.
2024-05-28 12:49:59 +02:00
269e155f53
feat: bump version to 0.1.4 and set default logo SVG
Upgraded the project version to 0.1.4 in preparation for a new release. Additionally, introduced a default SVG data URL for the NO_LOGO constant in __main__.py, replacing the previously empty string. This change ensures a more meaningful default state for the logo, enhancing UI consistency and avoiding potential errors or unexpected behaviors in scenarios where a logo is required but not specified.
2024-05-28 12:23:03 +02:00
df3d17ba58
Remove logo data from templates, add logo args
Removed the hard-coded data: URIs from the template files. Implemented a
--logo argument to provide a logo file, and a --no-logo argument to
prevent the default logo from being displayed. Data URIs are now created
on demand and passed as context to the templates.

Bumped version to 0.1.3
2024-02-14 20:57:17 +01:00
8c2c5bb212
Update kalente to version 0.1.2
Increment project version in preparation for new release, including minor bug fixes and performance enhancements.
2023-12-26 22:07:41 +01:00
05842e102a
Update version in pyproject.toml, fix count assignment in main()
- Update version in pyproject.toml to 0.1.1
- Fix count assignment in main() to use ternary operator instead of if-else statement
2023-09-03 08:27:07 +02:00
60cfcc70dd
feat: Add .gitignore, LICENSE, README, pyproject.toml, and kalente source files
- Added .gitignore file to specify files and directories to ignore in version control.
- Added LICENSE file with MIT license.
- Added README.md file with project information and license details.
- Added pyproject.toml file with project metadata and dependencies.
- Added kalente source files for generating PDF calendars.
- Implemented functions for generating weekly calendars, converting HTML to PDF, and CLI parsing.
- Created a template for rendering weekly calendars in HTML format.
2023-08-31 21:43:48 +02:00