No project description provided
Project description
futureboard
a robust html to image engine build on top of playwright
Futureboard_builder Quickstart
#install html2image package first!
from futureboard.futureboard_builder import FutureboardBuilder
futureboard_builder = FutureboardBuilder()
futureboard_congratulation = futureboard_builder.create('congratulation')
futureboard_job = futureboard_builder.create('job')
#Read from file
futureboard_job.generate_from_file(file='web/congrats_empoyer.html', save_as='congrats_employer.png')
#Create job image with option
#available option for job template:
# job: str ='พนักงานเติมน้ำมันหน้าลานจอดรถ',
# company: str ='บริษัท เอเชีย เอ็นจีเนียริ่ง',
# location: str ='อโศก/กรุงเทพ',
# salary: str ='30,000 บาท',
# background_color: str ='#e3c3d7',
# background_image: str ='job_thumbnail.png',
# logo_url_image: str ='https://via.placeholder.com/300'
futureboard_job.generate(save_as='job.png', future_board_option={
'company': 'Something Company',
'salary': '100,000 บาท'
})
#Create congrat image with option
#available option for congrat template:
# company: str ='บริษัท เอเชีย เอ็นจีเนียริ่ง',
# text: str ='สนใจสนทนากับพี่',
# background_color: str ='#e3c3d7',
# background_image: str ='congrats.png',
# logo_url_image: str ='https://via.placeholder.com/300'
futureboard_congratulation.generate(save_as='cong.png', future_board_option={
'company': 'บริษัท กสิกร ซอฟต์',
'logo_url_image': 'https://res-4.cloudinary.com/crunchbase-production/image/upload/c_lpad,h_170,w_170,f_auto,b_white,q_auto:eco/ll9dkelmfnghuthajcrb'
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
futureboard-1.0.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for futureboard-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ef94615b83e3e886e45c6eaf684554f945c09590921f458e3a15b257f125d1 |
|
MD5 | dc48c3086dc2ac0fd6845027c0c0918b |
|
BLAKE2b-256 | aa5b4f268ed62410fe02d33755f4c31353ef54c49ffd427796d85bb849de4f12 |