Reference🔗
berhoel.get_comics 🔗
Download various daily comics.
Modules:
-
__main__–Allow execution of module directly.
-
garfield–Download Garfield comic strips.
-
gen_pdf–Generate PDF from several comic PDFs.
-
gocomics–Download comics from gocomic.
-
peanuts–Download Peanuts comics since Oct 2, 1950.
-
tests–Tests for
get_comics.
Functions:
-
get_comics–Download various periodic comics.
Functions🔗
berhoel.get_comics.get_comics 🔗
Download various periodic comics.
Source code in src/berhoel/get_comics/__init__.py
berhoel.get_comics.gocomics 🔗
Download comics from gocomic.
Classes:
-
GoComics–Download comics from GoComics.
-
SaveState–Save state information on already downloaded files and dates tried.
Functions:
-
mk_dir_tree–Generate directory including missing upper directories.
-
savestate–Save state dictionary.
Classes🔗
berhoel.get_comics.gocomics.GoComics 🔗
Download comics from GoComics.
Methods:
-
__call__–Control program flow.
Source code in src/berhoel/get_comics/gocomics/__init__.py
Functions🔗
__call__ 🔗
Control program flow.
Source code in src/berhoel/get_comics/gocomics/__init__.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
berhoel.get_comics.gocomics.SaveState 🔗
Save state information on already downloaded files and dates tried.
Source code in src/berhoel/get_comics/gocomics/__init__.py
Functions🔗
Functions🔗
berhoel.get_comics.gocomics.mk_dir_tree 🔗
mk_dir_tree(path: Path) -> None
Generate directory including missing upper directories.
Source code in src/berhoel/get_comics/gocomics/__init__.py
berhoel.get_comics.gocomics.savestate 🔗
Save state dictionary.
Source code in src/berhoel/get_comics/gocomics/__init__.py
berhoel.get_comics.peanuts 🔗
Download Peanuts comics since Oct 2, 1950.
Modules:
-
__main__–Allow execution of module directly.
-
clean_up–Prepare to delete Wrong Peanut downloads based on MD5.
-
gen_book–Generate Book of all Peanuts comics from images.
Classes:
-
Peanuts–Download daily Peanuts comics from GoComics.
Functions:
-
get_peanuts–Download daily Peanuts comics.
Classes🔗
berhoel.get_comics.peanuts.Peanuts 🔗
Download daily Peanuts comics from GoComics.
Methods:
-
__call__–Control program flow.
Source code in src/berhoel/get_comics/gocomics/__init__.py
Functions🔗
__call__ 🔗
Control program flow.
Source code in src/berhoel/get_comics/gocomics/__init__.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
Functions🔗
berhoel.get_comics.peanuts.get_peanuts 🔗
Download daily Peanuts comics.
berhoel.get_comics.peanuts.gen_book 🔗
Generate Book of all Peanuts comics from images.
Classes:
-
DayOfWeek–Day of week.
-
PeanutsBook–Generate LaTeX file for Peanuts comic book.
-
Pos–Position information.
-
PrintPageSide–Side on output.
Functions:
-
main–Execute main processing.
Classes🔗
berhoel.get_comics.peanuts.gen_book.DayOfWeek 🔗
Day of week.
berhoel.get_comics.peanuts.gen_book.PeanutsBook 🔗
PeanutsBook(fname: Path)
Generate LaTeX file for Peanuts comic book.
Methods:
-
do_di–Place Tuesday figure.
-
do_do–Place Thursday figure.
-
do_fr–Place Friday figure.
-
do_mi–Place Wednesday figure.
-
do_mo–Place Monday figure.
-
do_sa–Place Saturday figure.
-
do_so–Place Sunday figure.
-
graphicspath–Write appropriate Graphicspath information.
-
place_img–Place image in grid.
-
run–Do the actual processing.
-
wr_image–Write information for including image.
-
write_epilog–Write LaTeX epilogue.
-
write_prologue–Write LaTeX prologue.
Source code in src/berhoel/get_comics/peanuts/gen_book.py
Functions🔗
do_di 🔗
do_di(out: TextIOWrapper, fname: str, date: date) -> None
do_do 🔗
do_do(out: TextIOWrapper, fname: str, date: date) -> None
do_fr 🔗
do_fr(out: TextIOWrapper, fname: str, date: date) -> None
do_mi 🔗
do_mi(out: TextIOWrapper, fname: str, date: date) -> None
do_mo 🔗
do_mo(out: TextIOWrapper, fname: str, date: date) -> None
do_sa 🔗
do_sa(out: TextIOWrapper, fname: str, date: date) -> None
do_so 🔗
do_so(out: TextIOWrapper, fname: str, date: date) -> None
graphicspath 🔗
graphicspath(out: TextIOWrapper, path: Path) -> None
Write appropriate Graphicspath information.
Source code in src/berhoel/get_comics/peanuts/gen_book.py
place_img 🔗
place_img(out: TextIOWrapper, pos: Pos, fname: str, date: date) -> None
Place image in grid.
Source code in src/berhoel/get_comics/peanuts/gen_book.py
run 🔗
Do the actual processing.
Source code in src/berhoel/get_comics/peanuts/gen_book.py
wr_image 🔗
wr_image(date: datetime) -> None
Write information for including image.
Source code in src/berhoel/get_comics/peanuts/gen_book.py
write_epilog 🔗
write_epilog(out: TextIOWrapper) -> None
write_prologue 🔗
write_prologue(out: TextIOWrapper) -> None
Write LaTeX prologue.
Source code in src/berhoel/get_comics/peanuts/gen_book.py
berhoel.get_comics.peanuts.gen_book.Pos 🔗
Position information.
berhoel.get_comics.peanuts.gen_book.PrintPageSide 🔗
Side on output.
Functions🔗
berhoel.get_comics.peanuts.clean_up 🔗
Prepare to delete Wrong Peanut downloads based on MD5.
berhoel.get_comics.garfield 🔗
Download Garfield comic strips.
Modules:
-
__main__–Allow execution of module directly.
Classes:
-
Garfield–Download daily Garfield comcs fromGoComics.
Functions:
-
get_garfield–Download daily Garfield comics.
Classes🔗
berhoel.get_comics.garfield.Garfield 🔗
Download daily Garfield comcs fromGoComics.
Methods:
-
__call__–Control program flow.
Source code in src/berhoel/get_comics/gocomics/__init__.py
Functions🔗
__call__ 🔗
Control program flow.
Source code in src/berhoel/get_comics/gocomics/__init__.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
Functions🔗
berhoel.get_comics.garfield.get_garfield 🔗
Download daily Garfield comics.
berhoel.get_comics.gen_pdf 🔗
Generate PDF from several comic PDFs.
Classes:
-
GenPDF–Create pdf for comic collection.
-
Keep–Helper class.
-
PaperOrientation–Choose paper orientation.
Classes🔗
berhoel.get_comics.gen_pdf.GenPDF 🔗
GenPDF(
*,
title: str,
base_path: Path,
start_date: date,
paper_orientation: PaperOrientation = PORTRAIT
)
Create pdf for comic collection.
Methods:
-
__call__–Control program.
Source code in src/berhoel/get_comics/gen_pdf/__init__.py
Functions🔗
__call__ 🔗
Control program.
Source code in src/berhoel/get_comics/gen_pdf/__init__.py
berhoel.get_comics.gen_pdf.Keep 🔗
Helper class.
Methods:
-
set_cur_month–Set current month.
Source code in src/berhoel/get_comics/gen_pdf/__init__.py
berhoel.get_comics.gen_pdf.PaperOrientation 🔗
Choose paper orientation.