Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g4brielvs/last-collage
:tophat: Generate stunning collages with your favorite artists!
https://github.com/g4brielvs/last-collage
api aws aws-lambda chalice python
Last synced: 7 days ago
JSON representation
:tophat: Generate stunning collages with your favorite artists!
- Host: GitHub
- URL: https://github.com/g4brielvs/last-collage
- Owner: g4brielvs
- Created: 2019-01-24T15:56:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:33:43.000Z (about 2 years ago)
- Last Synced: 2024-10-31T16:47:30.402Z (about 2 months ago)
- Topics: api, aws, aws-lambda, chalice, python
- Language: Python
- Homepage: https://ybnryhkb94.execute-api.us-east-1.amazonaws.com/api/
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Last Collage - a playground with [Last.fm API](https://www.last.fm/api) and [Chalice](https://github.com/aws/chalice).
Last Collage allows you to create beautiful collages of your favorite artists based on your Last.fm history.
## Getting Started
Just remember your `` and put it in the end of the link.
```
https://ybnryhkb94.execute-api.us-east-1.amazonaws.com/api/collage/
```And you will get a JSON response with the link to a stunning collage like the one below.
## How do I get up and running?
You only need to set up your environment variables and install the packages in your virtualenv.
```
pip install -r requirements.txt
```And hit RUN!
```
chalice local
```### Environment settings
* `AWS_ACCESS_KEY_ID` (_str_)
* `AWS_SECRET_ACCESS_KEY` (_str_)
* `BUCKET` (_str_)
* `LAST_FM_API` (_str_)### JSON API endpoints
#### Status
##### `GET /api/`
#### Collage
##### `GET /api//`
#### Upload
##### `POST /api/upload/`
## Examples
```
curl -X GET https://ybnryhkb94.execute-api.us-east-1.amazonaws.com/api/"
``````
curl -X GET https://ybnryhkb94.execute-api.us-east-1.amazonaws.com/api/collage/g4brielvs"
``````
curl -X POST https://ybnryhkb94.execute-api.us-east-1.amazonaws.com/api/upload --upload-file example.png --header "Content-Type:application/octet-stream"
```