MCPcopy Create free account

hub / github.com/Rydgel/Fake-images-please / functions

Functions36 in github.com/Rydgel/Fake-images-please

↓ 13 callersMethod_open_image
(image_data)
app/tests.py:14
↓ 3 callersMethod_hex_to_int
(hex_string)
app/helpers/fakeimg.py:102
↓ 2 callersMethod__init__
(self, url_map)
app/helpers/converters.py:6
↓ 2 callersMethod_hex_alpha_to_rgba
Convert hexadecimal + alpha value to a rgba tuple
app/helpers/fakeimg.py:105
↓ 1 callersMethod_calculate_font_size
(self)
app/helpers/fakeimg.py:87
↓ 1 callersMethod_choose_font
Choosing a font, the fallback is Yanone
app/helpers/fakeimg.py:91
↓ 1 callersMethod_draw
Image creation using Pillow (PIL fork)
app/helpers/fakeimg.py:134
↓ 1 callersMethod_font_path_from_name
(self)
app/helpers/fakeimg.py:117
Method__init__
(self, url_map)
app/helpers/converters.py:13
Method__init__
(self, url_map)
app/helpers/converters.py:19
Method__init__
Init FakeImg with parameters. Args: width (int): The width of the image. height (int): The height of the image.
app/helpers/fakeimg.py:16
Functionadd_header
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 hours. Should be served by Va
app/main.py:146
Functionfavicon
()
app/main.py:160
Functionhandle_cache
if resource is the same, return 304
app/main.py:133
Functionhealthcheck
()
app/main.py:175
Functionindex
Home page
app/main.py:24
Methodmimetype
(self)
app/helpers/fakeimg.py:84
Functionpage_not_found
(e)
app/main.py:171
Functionplaceholder
This endpoint generates the placeholder itself, based on arguments. If the height is missing, just make the image square. Query parameter
app/main.py:71
Methodraw
Create the image on memory and return it
app/helpers/fakeimg.py:76
Functionsend_text_file
Send your static text file.
app/main.py:165
MethodsetUp
(self)
app/tests.py:9
Methodtest404
(self)
app/tests.py:26
MethodtestCORSHeaders
(self)
app/tests.py:194
MethodtestFavicon
(self)
app/tests.py:36
MethodtestFontsize
(self)
app/tests.py:167
MethodtestHeaders
(self)
app/tests.py:30
MethodtestHumansTxt
(self)
app/tests.py:45
MethodtestIndex
(self)
app/tests.py:22
MethodtestPlaceholder1
(self)
app/tests.py:55
MethodtestPlaceholder2
(self)
app/tests.py:67
MethodtestPlaceholder3
(self)
app/tests.py:82
MethodtestPlaceholder4
(self)
app/tests.py:105
MethodtestRetina
(self)
app/tests.py:150
MethodtestRobotsTxt
(self)
app/tests.py:40
MethodtestTrailingSlash
(self)
app/tests.py:50