Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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"
```