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 details)
Built Distribution
File details
Details for the file futureboard-1.0.0.tar.gz
.
File metadata
- Download URL: futureboard-1.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Linux/5.8.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35be33738be6204b386a9c4053b89e140eb387e7e2ea0e2450357e4d95945213 |
|
MD5 | ffa6ffbcc28c899098c6563e7b49f592 |
|
BLAKE2b-256 | 1e34f0db15914ee9332aa0d8e66701c7557647c3fffb260f9f46747f8dc70a06 |
File details
Details for the file futureboard-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: futureboard-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Linux/5.8.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ef94615b83e3e886e45c6eaf684554f945c09590921f458e3a15b257f125d1 |
|
MD5 | dc48c3086dc2ac0fd6845027c0c0918b |
|
BLAKE2b-256 | aa5b4f268ed62410fe02d33755f4c31353ef54c49ffd427796d85bb849de4f12 |