Skip to content

A python API (to run on AWS Lambda/Zappa) that takes a string of text and makes a poster-style image in S3.

License

Notifications You must be signed in to change notification settings

Saberr/Text-To-Poster-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poster making API

(for AWS Lamba, via Zappa)

A little API to make a poster image from some text, able to run serverless on AWS Lambda using Zappa.

Example response

https://mybucket.s3.amazonaws.com/someuuid.png?AWSAccessKeyId=something&Signature=something&Expires=1505730148

Example of a poster

Example request

curl -X POST \
https://something.execute-api.eu-west-1.amazonaws.com/dev/poster \
  -H 'content-type: application/json' \
  -d '{
	"text": "We choose to go to the moon in this decade and do the other things, not because they are easy, but because they are hard",
	"bgcolor": "#2A4F8F",
	"fgcolor": "#FFFFFF"
}'

Installation

pip install -r requirements.txt
zappa init
zappa deploy dev

Licence

MIT

About

A python API (to run on AWS Lambda/Zappa) that takes a string of text and makes a poster-style image in S3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages