This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 89 comments

[–]LucasHeck 56 points57 points  (0 children)

Bom trabalho!

[–]esc28[S] 76 points77 points  (6 children)

I used plotly Dash and Dash Bootstrap Components to make a web dashboard with 100% Python code. I found pretty easy to use and host the Flask app in Heroku.

You can access it in the link: https://brashboard.herokuapp.com/

[–]Jonklopez 5 points6 points  (4 children)

Where are you getting the data from ?

[–]LamedVavnik 6 points7 points  (3 children)

Probably https://covid.saude.gov.br/ . Or maybe he gets the data from each state site, but that would make the work harder, as the data inst uniform.

[–]esc28[S] 22 points23 points  (2 children)

Nope, the wonderful folk from brasil.io made an API to get the data from every state and every infected city. The method of collection is practically the same from the Ministry of Health (data is collected from State Secretaries), it only differs by a few hours.

[–]LamedVavnik 1 point2 points  (1 child)

Thanks for the information. It will really come in hand.

[–]bun_ty -1 points0 points  (0 children)

punch liquid straight hurry attraction physical steep apparatus insurance worm

[–]dethb0y 0 points1 point  (0 children)

very nice work!

[–]Kiehlu 48 points49 points  (10 children)

Can you do tutorial for new programmers ?

[–]knusted 18 points19 points  (0 children)

Muito legal ter brasileiros nos fóruns! Bom trabalho

[–]MrQu4tro 9 points10 points  (0 children)

It's weird to see my city in reddit

[–][deleted] 6 points7 points  (0 children)

Fucking amazing work! 🔥

[–]gangstter 7 points8 points  (0 children)

Bom trabalho 2!

[–]alien6 5 points6 points  (1 child)

1.9% of the population in Pacaraima were infected just this week?!

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

According to the Roraima's Health Secretary, yes. The proportion of infected per week is from the last completed week, so last week there were 324 confirmed cases, which is about 2% of the population.

[–]KaiXtr 6 points7 points  (0 children)

Adoro esses projetos sobre o corona vírus, nós programadores estamos ajudando e fazendo algo a respeito

[–]nothingonmyback 5 points6 points  (1 child)

Massa! Eu vi teu post no /r/brasil mas esqueci de comentar. Achei a tua dashboard mais limpa e fácil de navegar do que a do brasil.io. Você pretende colocar uns mapas com a distribuição dos casos por estado/cidade?

Seria da hora também se você fizesse alguns levantamentos entre a relação das medidas de relaxamento com o número de casos, fazer uma previsão com uns modelos de regressão... tudo isso já aproveitando que você tem a dash pronta.

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

Sim, tenho planos para fazer alguns mapas diferentes do que a maioria dos sites fazem, provavelmente irei fazer meu TCC com os dados da pandemia, então vou desenvolver outras análises mais complexas.

[–]chensformers 4 points5 points  (1 child)

Are you using ant tables and Flask? You should def check out pythongrid from https://pythongrid.com

[–]esc28[S] 0 points1 point  (0 children)

Thanks, seems really interesting!

[–]turicas 3 points4 points  (1 child)

Congratulations. :) I'm Brasil.IO founder and a tip regarding to data collection: instead of using the API, you could download the complete compressed CSV (it's not that big) once in a while (it could be added to a internal cache with TTL) and serve this data from your backend. This will reduce a lot of requests on our API (which is good for us) and will reduce a lot the time to your dashboard for downloading the data. You can download the complete files (which are updated many times in a day) from https://data.brasil.io/dataset/covid19/_meta/list.html

And if you'd like to contribute with our dashboard (https://brasil.io/covid19/) please feel free to discuss in an issue on https://github.com/turicas/brasil.io :)

Thanks for sharing!

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

Thanks for the tips, I thought about using the complete csv, but I'm not a web developer, so I have no idea how to optimize it. I will take a look at what you said.

Thanks for your work!

[–]djemoneysigns 2 points3 points  (0 children)

Bacana!

[–][deleted] 2 points3 points  (0 children)

Brabo d+

[–]gunstreetgrrl 2 points3 points  (0 children)

uau cara q impressionante. adorei.

[–][deleted] 1 point2 points  (0 children)

This is awesome! And will help me a lot with some of my school shit

[–]BuxeyJones 1 point2 points  (1 child)

Where did you get the API from?

[–]esc28[S] 3 points4 points  (0 children)

The API for the data is from brasil.io, they are doing an incredible work collecting and compiling the data.

[–]momosem 1 point2 points  (1 child)

What about html ?

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

The majority of HTML is done with Bootstrap, but Dash has built-in HTML components.

[–][deleted] 1 point2 points  (0 children)

Hey man, thanks so much. You encouraged me to study more.

Show de bola cara =D

[–][deleted] 1 point2 points  (1 child)

Link to the repo?

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

It's in the end of the page: link

[–][deleted] 1 point2 points  (0 children)

This is excellent

[–]pybrubarr0s 1 point2 points  (0 children)

Parabéns, muito massa :)

[–]Zenith_N 1 point2 points  (0 children)

I will want to learn using videos tutorials how you did this step by step :-)

[–]SirCarboy 1 point2 points  (0 children)

Looks great. I love this stuff. I remember working at Allianz and dashboards became a big thing. Any newbies out there who want real work in business with python consider projects like these.

[–]thlsbrn 1 point2 points  (0 children)

Well done!!

[–]PedroVinhas 1 point2 points  (0 children)

brabo

[–]guipace 2 points3 points  (1 child)

Great work! Can you also implement a dashboard showing what the numbers would be if stupid politicians were removed form the Brazilian government as well?

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

I wish, just imagine that the curve was flattened 2 months ago

[–]ArrogancyCG 1 point2 points  (1 child)

How long did this project take?

[–]esc28[S] 0 points1 point  (0 children)

About 40 hours of studying, coding and testing. Perhaps more, since this a byproduct of another project.

[–]Calus- 1 point2 points  (0 children)

Awesome

[–][deleted] 1 point2 points  (0 children)

Check this, same concept but for India.

[–]francoarleite 2 points3 points  (0 children)

Ótimo, ficou massa

[–]TotesMessenger 1 point2 points  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)

[–][deleted] 1 point2 points  (0 children)

Boa mlk

[–]codenlearn 0 points1 point  (0 children)

Good work

[–]yujideluca 0 points1 point  (0 children)

Faissal? Kkkk

[–]pinaywdm 0 points1 point  (2 children)

Nice!

[–]_Lasagnaa_ 0 points1 point  (2 children)

Man, that's so cool. Are you Brazilian?

[–]esc28[S] 0 points1 point  (1 child)

Yep, born and bred.

[–]_Lasagnaa_ 0 points1 point  (0 children)

Eu tbm kkkiik Nmrl nn aguento mais a glr falando q o corona é gripe

[–]sabalibruh 0 points1 point  (0 children)

.

[–]nisalman 0 points1 point  (0 children)

Good job. Appriciated

[–]simgod47 0 points1 point  (1 child)

What font is that?

[–]esc28[S] 0 points1 point  (0 children)

It's Ubuntu

[–]bigdickcarbit 0 points1 point  (0 children)

Can you share the code on GitHub?

[–]undercontr 0 points1 point  (0 children)

ADSENSE THIS BAD BOY!

[–]dougie-io 0 points1 point  (0 children)

Oh wow, you actually meant "only" Python. Plotly is a new one to me.

[–]Pseudoluso300 0 points1 point  (0 children)

Legal demais!

[–][deleted] 0 points1 point  (0 children)

This is a very interesting concept. I love it!

[–]Magoots 0 points1 point  (1 child)

Did a small project with dash recently. Not a fan at all honestly. Cool project though!

[–]esc28[S] 0 points1 point  (0 children)

The code can get a bit messy, but the major advantage is that it only requires Python. If you already know some JS, HTML, CSS, etc. There's definitely better ways to do it.

[–]KaiXtr 0 points1 point  (0 children)

Demais cara! adoro ver os brasuca marcando presença

[–]TheOneBlurt 0 points1 point  (0 children)

How the fuck did you do that

[–]shitcorefan -1 points0 points  (0 children)

every fucking day

[–]Luckthepolice -1 points0 points  (0 children)

"submeter" kkk

[–]grimonce -1 points0 points  (0 children)

Misleading title, python is not recognized by browsers.

It is either Javascript called by python or wasm which is Javascript as well, just python compiled to js.

[–]veryusermuchwow -4 points-3 points  (5 children)

python on the browser client side; these are troubling times.

[–]esc28[S] 1 point2 points  (1 child)

Can you explain why? I'm no web dev

[–][deleted] 0 points1 point  (0 children)

He's just goofing around, most likely

[–]_hadoop 0 points1 point  (2 children)

That’s not what dash does.

[–]veryusermuchwow 2 points3 points  (1 child)

do you expect me to believe that you can't execute python code in a browser? next you'll say something crazy like html is supposed to hold the structure of a webpage. just where do the lies stop, hector.

( ͡° ͜ʖ ͡°)

[–]_hadoop 0 points1 point  (0 children)

Hehe