Masthash

#Flask

Python Weekly
7 hours ago
Christof Schöch
6 days ago

Oh, great: #spaCy requires #click <8.1.0, but #flask requires #click 8.1.3. Hopefully, I won't need spaCy and flask in the same project / #virtualenv.

I have to rewrite my single-instance app as a client/server thing. I want it to be extremely lightweight (so if anyone even says "web" anything to me I will completely flip my bonkers, I'm warning you).

The easiest thing is communication through the db, but that's probably a bad idea.

What's a simple, built-in #python network comm thing that isn't building an entire protocol from scratch? Using #flask to send #json? (uh oh, I'm an httpocrite!)

#Flask es la solución para hacer un webservice con un script en #Phyton

https://flask.palletsprojects.com/en/2.3.x/

Pamela Fox
3 weeks ago

Another #Flask TIL: Flask includes its own thin wrapper over python-dotenv (but you still need python-dotenv installed). https://github.com/pallets/flask/blob/d0bf462866289ad8bfe29b6e4e1e0f531003ab34/src/flask/cli.py#L654

...Good func to call if you're using gunicorn to run an app locally!

Jobs for Developers
3 weeks ago

Metatheory is hiring Web3/Blockchain Engineer

🔧 #nft #python #solidity #django #flask #node #blockchain #web3 #aws #azure
🌎 Remote; California, United States
⏰ Full-time
💰 $90k - $200k (Estimate)
🏢 Metatheory

Job details https://jobsfordevelopers.com/jobs/web3-blockchain-engineer-at-metatheory-mar-1-2022-4509c2?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Pamela Fox
3 weeks ago

TIL: It's really easy to add additional commands to #Flask, like for seeding data.

https://flask.palletsprojects.com/en/2.3.x/cli/#custom-commands

Shows Python code using @app.cli.command("seed") decorator
Archimage
3 weeks ago

I can now add micro-journals to my site. Yay. Tomorrow, I’ll start working on an iOS version and tinyDB library.

#programming #journal #flask

Web form for creating micro-journals
Result of adding a micro-journal
Archimage
3 weeks ago

I spent the morning working on a micro-journaling site. The core of it works, although it needs some spiffy formatting. I also want to create a matching iOS app that shares the db data.

#journal #web #flask #python #ios

First working prototype of micro-journals.

Flask 2.3.2 was just release, with a security fix. Werkzeug 2.3.3 has some bug fixes as well. I really like using GitHub's new private security advisory feature, so much easier than an email chain and MITRE. #Python #Flask #Werkzeug #GitHub

Opalsec :verified:
1 month ago

Another week, another newsletter - catch up on the week's infosec news here:

https://opalsec.substack.com/p/soc-goulash-weekend-wrap-up-240423-300423

Researchers have found that nearly two years on, 2 in 3 installs of #Apache #Superset are still using default Flask Secret Keys - a configuration flaw which would allow an attacker to forge session cookies and access said servers with full administrative privileges.

#Kritec is a commodity #skimmer found installed on compromised #Magecart sites, with its code heavily obfuscated and customised to match the site's aesthetic in order to con users out of credit card details.

#FIN7 look to be popping instances of the #Veeam backup software that are unpatched for a recent vulnerability; a revised #ViperSoftX #infostealer now targets #1password and #keepass password vaults, and #TA505 deliver a new infostealer through a #GoogleAds campaign

#LockBit & #CL0P ransomware affiliates have been abusing a month-old vulnerability in the #PaperCut print management software to drop ransomware. With the cat out of the bag, security researchers have decided now is a great time to drop a PoC exploit on Github - I mean, why not let the skiddies get in on the action too, right?

The #blueteam have some great research worth reading on #Smishing via #AWS; detections for #SliverC2 and different implementations of #PsExec, as well as #Sigma integration for #SentinelOne and a #KQL hack for monitoring LOLDrivers.

Have a great week ahead folks, I hope this newsletter proves helpful!

https://opalsec.substack.com/p/soc-goulash-weekend-wrap-up-240423-300423

#infosec #cyber #news #newsletter #cybernews #infosec #infosecnews #informationsecurity #cybersecurity #hacking #security #technology #hacker #vulnerability #vulnerabilities #malware #ransomware #affiliate #dfir #soc #threatintel #threatintelligence #threathunting #detection #threatdetection #detectionengineering #flask #python #fraud #malvertising #clop #PoC #exploit #securityresearch #LOLBAS #LOLBIN #BYOVD

Inushin
1 month ago

With this repo, you will deploy, using Docker Compose, an API of Whisper running on a Flask server.

🐳 #Whisper API + #Flask + #DockerCompose

👇 👇 👇 👇 👇 👇
https://github.com/Inushin/dockerWhisperApiFlask

Doğan Kökdemir
1 month ago

Word Count: This repository contains a Word Cloud Generator web application, which allows users to upload text files and generate word clouds based on the text content. The application is built using #Flask, a lightweight #Python web framework, and leverages the #WordCloud and NLTK libraries for text processing and visualization.

https://github.com/dkokdemir/Word_Count

Quinten Steenhuis
1 month ago

#ChatGPT is OK at coding. But great as a learning tool for a new library or task. For example: I used it to help migrate a project from #Flask to #FastAPI and add background processing with #rq recently. It helped me select among multiple options and explained the differences.

The first code wasn't quite right but I could ask questions to figure out why and fix the issues. Enough to do on my own next time.
Much faster than reading docs or generic tutorials.

Jorge Escobar
1 month ago

Just published on Medium a new article on something I learned over the weekend and took the time to document. How to use Docker containers as your local dev environment using VSCode's Dev Containers, but in the context of a multi-service monorepo application. https://medium.com/@esfoobar/develop-mono-repo-flask-services-inside-a-docker-container-using-vscode-dev-containers-e0953e3c3c5a

#docker #flask #vscode #devcontainers

Just released Flask 2.3.0, with some significant speedups from Werkzeug 2.3, as well as a lot of cleanup and refactors. #Python #Flask https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0

Just released Werkzeug 2.3.0, which has some signifcant speed improvements, as well as a lot of cleanup and refactors. #Python #Flask #Werkzeug https://werkzeug.palletsprojects.com/en/2.3.x/changes/#version-2-3-0

retiolus
1 month ago

Millorant i facilitant la gestió de BitsEnCatalà amb #Python i #Flask

Initial publish of my #Flask app for getting notifications inside of #VR via XS Overlay. I'm using this to get notifications from #HomeAssistant whilst in VR, such as to tell me to go sleep after a certain hour.

https://github.com/Ceralor/XSO-Notifier

Jan Ekholm
1 month ago

It can easily get messy when migrating an app to use a newer version of a backend. In my case v1 is Flask and v2 is FastAPI. The version is of course in the URL, so there’s no mixup that way. There are about 80 endpoints and the app code also moves from delegates to async-await, which means a pretty big architectural change. I slowly convert one endpoint after another and try to fix the app code to match. The FastAPI code is so much cleaner though.
#fastapi #flask #python #swiftui

Python Weekly
1 month ago

As if there weren't enough packaging tools already: mitsuhiko/rye: an experimental alternative to poetry/pip/pipenv/venv/virtualenv/pdm/hatch/…

https://github.com/mitsuhiko/rye

Discussions: https://discu.eu/q/https://github.com/mitsuhiko/rye

#flask #programming #python #webdev

Quinten Steenhuis
1 month ago

I'm very excited our paper about RateMyPDF.com was accepted to #ICAIL International Conference on #AI and #Law in Braga, Portugal.

Going to incorporate reviewer suggestions and new features that we've built since submission before sharing the paper itself.

Meanwhile, I've have been hacking on RateMyPDF to add more useful #plainLanguage and #readability suggestions. Biggest issue is supporting larger uploads. Integrating tasks and a job queue with #Python #Flask and #Celery is new to me.

A preview of the new Pallets Projects logos by @georgically in sticker form! Find me at the PyCon open spaces and sprints to get one before they run out. #PyCon #Python #Flask #PythonFlask

Seven stickers with project logos and names:
Pallets, with four colorful boxes on a platform
Flask, a sky blue background with a drinking horn
Werkzeug, an orange background with a hammer
Jinja, a dark red background with a torii gate
Click, a purple background with an arrow pointing right
Markup Safe, a green background with a helmet
It's Dangerous, a yellow background with a sword
Archimage
1 month ago

I’ve been having fun learning/playing/doing things with Flask. Today I figured out how to use flask-wtf and CouchDB.

#programming #web #flask

Back at inbox zero for Flask 🎉 version 2.3 coming soon ™️
#Python #Flask #PythonFlask

robrich
1 month ago

https://dev.to/tinystacks/flask-crud-api-3pl2 - a quick #CRUD app in #Python, #Flask, and #SQLAlchamy, then into a #Docker container and start quickly with #DockerCompose. Nice article https://twitter.com/FrancescoCiull4.

Just finished a massive PR to deprecate bytes and charsets other than UTF-8 in Werkzeug 2.3. (You can still work with raw bytes in requests/responses, so it's still possible to use other charsets.) Surprisingly, very few tests failed due to it, which was a relief. Looking forward to making the PR removing all the deprecations 😈 https://github.com/pallets/werkzeug/pull/2641 #Python #Flask #Werkzeug #PythonFlask #PythonWerkzeug

Abel Siqueira
2 months ago

Mais dev e talk no twitch e youtube. Uma hora o perprof acaba.

https://youtube.com/live/itfl863NWbI
https://twitch.tv/abelsiqueira

#python #flask #streaming #perprof

OK, it begins to make sense. These things just return back dictionaries. Probably to hand to the #plotly #javascript engine that actually displays in the browser.

As a bonus, if #dash can do grids of text as well as it seems to do plots, I might be able to ditch a work frenemy. And there's no reason it shouldn't--it's just #flask

#python

Somē
2 months ago
Mobile and desktop UI of the brahms explorer
stark@ubuntu:~$ █
2 months ago

@gerrowadat

I've been thinking about doing a #Python implementation with #Flask, but I would rather want to get it up and running as an #Octoprint #plugin before doing it. Currently, the #JavaScript #API and implementations are good for me.

I actually find myself that my #Mastodon #bots are written in #JavaScript and #TypeScript rather than #Python because they are easier to run on services like #Heroku

stark@ubuntu:~$ █
2 months ago

@pamelafox

The #Flask and #Python debugging has saved me numerous times before. I can't work without it!

Python Weekly
2 months ago
DeadTOm :devuan:
2 months ago

I don't consider myself to be a particularly good programmer. I've been dabbling with Python for a long time, and there are now numerous Python scripts performing various tasks around my library, and Flask applications in use by staff and patrons.

They're nothing terribly complicated, but they fill a need, and I'm quite proud that stuff I've written is being so useful. :)

#Python #Flask #Library #Libraries #Programming

Jeff Armstrong
3 months ago
My #fortran IDE, which has some #python support, is providing docstring popups for #flask somehow. I honestly don't know why it is.

I guess it scanned the virtualenv packages too?

Just to be clear, I wrote the IDE, so I'm very confused.

Last year at PyCon US 2022, @tonybaloney ran a basic benchmark of Flask. I finally got around to it, and achieved a ✨ 35% ✨ speedup to routing and environ processing.

Due to Python 2/3, Werkzeug had its own modified copy of `urlparse`/`urllib.parse`, with a lot of unnecessary encoding/decoding due to str/bytes support. I finally replaced that with the standard library, and got a huge speed boost.

https://github.com/pallets/werkzeug/pull/2608

#Python #Flask #PythonFlask #PythonWerkzeug

Python Weekly
3 months ago
Jobs for Developers
3 months ago

Patreon is hiring Frontend Engineer - Growth

🔧 #javascript #typescript #flask #react #android #ios #node #graphql #grpc #rest
🌎 New York, United States; San Francisco, United States; Seattle, United States
⏰ Full-time
💰 $139k - $193k
🏢 Patreon

Job details https://jobsfordevelopers.com/jobs/frontend-engineer-growth-at-patreon-nov-9-2022-a88434?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Pamela Fox
3 months ago

#Flask folks: when do you find yourself needing a package beyond the built-in Flask session?

And what package do you use in that case?
Flask-session seems to be in limbo/forktown: https://github.com/fengsp/flask-session/issues/134

Thomas E. Gladwin
3 months ago

Got around to installing #Flask on my own site (although I'll always have a warm spot in my heart for #pythonanywhere): https://apps.tegladwin.com/.

I think I'm going to use this to build out making the computational semantic similarity scripts more practically accessible. It currently calculates the similarity between a target word and one versus another list of attribute words (potentially useful for IAT analyses).

Python Weekly
3 months ago

Hey folk I build a really simple flask app, what do you all think?

https://top1010.page

Discussions: https://discu.eu/q/https://top1010.page

#flask #programming #python #webdev

Dan Jacob
4 months ago

Wrote a little #flask app for a take-home #python job application today.

Not done any Flask in years, it has nice ergonomics for building small apps. Maybe FastAPI is more popular in the microservice/small API space these days?

Deafblind Engineer
4 months ago

If I did move away from WordPress, I have thought about two possibilities: #Flask or #Jekyll. Currently the later is winning, although I have no experience with either other than being proficient with writing both #Python and #Ruby.

dragfyre
4 months ago

Using #Flask to generate static sites has been pretty cool for #DevOps, especially when it comes to adding command-line support. You can literally write up the whole deployment procedure in #Python and put yourself out of a job with one click. Smoooooooth ✨

Pamela Fox
4 months ago

Just gave a workshop on HTTP APIs, where we explored APIs, made a #Flask API, made a #FastAPI, then deployed to #Azure. ❤️ APIs!

https://pamelafox.github.io/my-py-talks/http-apis-workshop/

Pamela Fox
4 months ago

Video of our live stream on Friday showing Dev Containers, Codespaces, #VSCode, #Python, #Flask, #Django, #PostgreSQL: https://youtu.be/JTHTWp9DIZQ?t=93

Sorry about the resolution, we'll improve it next time! I can also record a non-stream version if there's enough interest.

Pamela Fox
4 months ago

Live stream starting in 15 minutes! I'll be showing how I create Dev Containers for VS Code / Codespaces for #Python development (#Flask/#Django/#PostgreSQL).

11 AM Pacific
https://youtu.be/JTHTWp9DIZQ

Pamela Fox
5 months ago

Just gave a workshop on Web Apps in Python: https://pamelafox.github.io/my-py-talks/web-apps-workshop/
It currently covers HTTP, #Flask, #Django, and #Azure deployment. It went too long, so I'm considering breaking it into a Flask workshop vs Django workshop. There's a lot to talk about in Django-land!

Having studied #Rails and #Flask extensively, I'm coming to the realization that my desired framework may be...#Django

Webdev Weekly
5 months ago

Just showcasing this Flask app. Any feedback is appreciated!

https://www.fleetcardeal.com/

Discussions: https://discu.eu/q/https://www.fleetcardeal.com/

#flask #programming #python #webdev

Andrew Leahey
5 months ago

Loving all the innovative stuff folks are coming up with for #Mastodon and the #fediverse more broadly.

Made quick and dirty "tootages" which displays all the publicly-available images of an instance. It uses #python via #flask and is meant to be deployed on #heroku

#Github repo: https://github.com/ajleahey/tootages/blob/main/app.py

Link to app proof of concept: http://tootages.herokuapp.com which is of course polling (public timeline only) images from https://esq.social.

Nate
5 months ago

Finding people to follow on #Mastodon can be hard! We all hear it. We all feel it. Well, I built a little tool for myself to find new people to follow, and in the spirit of getting feedback I'm sharing it with you all here: https://fedipages.com

#projects #flask #zappa #mongo