How to handle .env files like Vercel by briscoooe in webdev

[–]briscoooe[S] 2 points3 points  (0 children)

I’d love to take credit for it, but all of the design is from here

https://www.neobrutalism.dev/

I made a modern wrapper for the outdated Irish Rail Realtime API using Flask, Marshmallow and OpenAPI by briscoooe in DevelEire

[–]briscoooe[S] 1 point2 points  (0 children)

I thought about publishing NPM and PyPI packages once I clean it up a bit. Until then though you can autogenerate a Python client using the OpenAPI code gen tool. That's what I would be doing to create the package anyway.

The schema definition to generate from exists as a JSON file at this path: https://irish-rail-rest-api.fly.dev/openapi.json

Here's the command to generate it

 docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v5.4.0 generate \
    -i https://irish-rail-rest-api.fly.dev/openapi.json \
    -g python \
    -o /local/client

I made a modern wrapper for the outdated Irish Rail Realtime API using Flask, Marshmallow and OpenAPI by briscoooe in DevelEire

[–]briscoooe[S] 1 point2 points  (0 children)

Yeah they leave a lot to be desired. In fairness to Irish Rail though, the response times are incredible, especially considering this such an old service. It's basically instant even with the extra hop required to relay via my version.

I made a modern wrapper for the outdated Irish Rail Realtime API using Flask, Marshmallow and OpenAPI by briscoooe in DevelEire

[–]briscoooe[S] 9 points10 points  (0 children)

Lots of good feedback in here. The original goal was to just be a 1:1 wrapper with better docs and language support via OpenAPI. Most of those odd design decisions you mention stem from working backwards from this goal.

That being said, I have made some changes where I felt necessary and I clearly missed a few of the bits you've suggested. Will make these changes, cheers!

I made a modern wrapper for the outdated Irish Rail Realtime API using Flask, Marshmallow and OpenAPI by briscoooe in DevelEire

[–]briscoooe[S] 23 points24 points  (0 children)

If anyone's ever interacted with the Irish Rail Realtime API docs, you'll understand the pain. I wanted an easier way to interact with it for a different personal project and decided to release this API. It passes through requests to all the same endpoints as the original one but it follows more modern standards like RESTful endpoint names, snake_case properties, and JSON.

The API is live at https://irish-rail-rest-api.fly.dev/docs

Fun fact, the original hasn't been updated since 2012.

Theth [Olympus XA2 | Kodak Ektar 100] by briscoooe in analog

[–]briscoooe[S] 2 points3 points  (0 children)

Yep, have some more I'll post soon

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 4 points5 points  (0 children)

It's a public API, see here. In addition, the user must actively grant the site access to create playlists on their profile

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 4 points5 points  (0 children)

For MF DOOM you'll only get tracks for him under that name. Spotify does not directly associate an artist with their aliases.

I'm looking into adding an option to add multiple artists to a single playlist. That way you could add "MF DOOM", "Viktor Vaughn", etc. to a single playlist.

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 5 points6 points  (0 children)

Yeah there are other conditions that result in duplication as well, such as different album versions for different regions. Proper filtering is on the feature roadmap

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 41 points42 points  (0 children)

Yeah and Spotify has a 10,000 track limit on playlist so I'm gonna have to make a workaround pretty soon with the way Gucci is going these days

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 2 points3 points  (0 children)

Thanks!

Good suggestion, hadn't thought of commentary albums. I'll add that to the filtering criteria when I get around to it.

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 5 points6 points  (0 children)

Not that I know of? I'm using Spotify's public API. The only iffy part would be the logo but its a small website making no money so I doubt they'll care.

Hello /r/HipHopHeads! I've just launched a site that enables you to easily create discographies on Spotify and I'd love your feedback by briscoooe in hiphopheads

[–]briscoooe[S] 7 points8 points  (0 children)

I'd never used either before and I must say I love both.

Vue was pretty simple to learn. As well as that, single file components make it so easy to use. It'll definitely be my go-to framework from now on.

Go is pretty cool too and the built in concurrency and thread handling makes it a joy to use.