python

Back Open Paginator
11.11.2025 21:47
linuxgal (@linuxgal@techhub.social)

Make the first field of standard input uppercase with #Python #QS

python3 -c "import sys;[print(l.split()[0].upper(),*l.split()[1:]) for l in sys.stdin]"





Show Original Post


11.11.2025 21:45
leanpub (@leanpub@mastodon.social)

Forecasting Professional leanpub.com/b/forecasting_prof by Valery Manokhin is the featured bundle of ebooks 📚 on the Leanpub homepage! leanpub.com

The following 2 books are included in this bundle...
Mastering Modern Time Series Forecasting and Probabilistic Forecasting with Conformal Prediction in Python

Find it on Leanpub!





Show Original Post


11.11.2025 21:24
notes (@notes@fire.asta.lgbt)

I feel like I heard about some new framework that yt-dlp is using to render JavaScript that isn't a full ass chromium instance; anyone remember what I'm talking about?

Interest: rendering HTML for (polite, non genAI) scraping purposes (think personal storage for semi-archival, note keeping, etc, purposes) and calling it via Python

#python #javascript #html

EDIT: please consider my no-sense-of-time-self definition of "new" to be... uh, fuzzy.




Show Original Post


11.11.2025 21:17
alexandreborges (@alexandreborges@mastodon.social)

Mojo GPU Puzzles:

puzzles.modular.com/introducti





Show Original Post


11.11.2025 21:17
alexandreborges (@alexandreborges@infosec.exchange)

Mojo GPU Puzzles:

puzzles.modular.com/introducti

#crypto #gpu #python #infosec #informationsecurity #programming





Show Original Post


11.11.2025 21:00
Reuven (@Reuven@fosstodon.org)

Do you use Python, but...

• want to go beyond the syntax?
• want to feel confident in interviews?
• want to work on real data projects?

A new cohort of my #Python Data Analytics Bootcamp is starting soon! Join me on November 18th for a free info session.

More info: PythonDAB.com




Show Original Post


11.11.2025 20:57
linuxgal (@linuxgal@techhub.social)

𝘊𝘰𝘯𝘷𝘦𝘳𝘵 𝘱𝘭𝘢𝘪𝘯 𝘵𝘦𝘹𝘵 𝘵𝘰 𝘶𝘯𝘪𝘤𝘰𝘥𝘦 𝘪𝘵𝘢𝘭𝘪𝘤

#!/usr/bin/python3
import sys
str = ' '.join(sys.argv[1:])
def bold(input_text):
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
bold_chars = "𝘈𝘉𝘊𝘋𝘌𝘍𝘎𝘏𝘐𝘑𝘒𝘓𝘔𝘕𝘖𝘗𝘘𝘙𝘚𝘛𝘜𝘝𝘞𝘟𝘠𝘡𝘢𝘣𝘤𝘥𝘦𝘧𝘨𝘩𝘪𝘫𝘬𝘭𝘮𝘯𝘰𝘱𝘲𝘳𝘴𝘵𝘶𝘷𝘸𝘹𝘺𝘻"
output = ""
for character in input_text:
if character in chars:
output += bold_chars[chars.index(character)]
else:
output += character
return output
print (bold(str))

#QT #Python





Show Original Post


11.11.2025 20:14
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

Bài viết giới thiệu dự án Sirios dùng Apache + Python + CGI trên Banana Pi để bật/tắt LED qua web trong mạng nội bộ. Cấu hình Apache, bật CGI, cấp quyền sudo cho www‑data, viết script Python điều khiển GPIO 7, giao diện HTML với 2 nút On/Off và iframe phản hồi trạng thái. Đơn giản nhưng mở rộng được cho các thiết bị IoT sau này. #IoT #BananaPi #Apache #Python #GPIO #LED #WebInterface #DIY #Tech #Coding #ViệtNam #CôngNghệ

dev.to/henriqueotogami/projeto




Show Original Post


11.11.2025 20:13
tlohde (@tlohde@fediscience.org)

Had another idea for today's #minimal #30dayMapChallenge prompt.

How far can one* line of #python code get you?

Colors are those of the Norwegian flag.

* 3 in total if you count importing #geopandas and #matplotlib

here is the monstrosity:

gpd.read_file('../../ne_10m_admin_0_countries.zip',where="SOVEREIGNT = 'Norway'").explode().cx[10:35, 75:80].plot(figsize=[8,8], column='SOVEREIGNT', ec='#ffffff', path_effects=[patheffects.withSimplePatchShadow((5, -5),shadow_rgbFace='#00205B',alpha=1)], cmap=colors.ListedColormap(colors=['#BA0C2F'], name='cmap'), legend=True, legend_kwds={'labels':['Svalbard and its surroundings / by:tlohde / Made with Natural Earth'], 'frameon':False, 'loc':'upper left', 'fontsize':9, 'edgecolor': '#00205B', 'borderpad':0.0, 'handletextpad':0})





Show Original Post


11.11.2025 19:38
GurgleApps (@GurgleApps@mastodon.social)

There is around 6 weeks until & we are playing with our pumpkin eyes & word clock all operated by @raspberry_pi Pico's to be more Xmassy. You can adapt the code, many of our makers have. To get your very own clock or a loved one a gift click gurgleapps.etsy.com/uk/listing





Show Original Post


11.11.2025 19:26
villares (@villares@ciberlandia.pt)

villares-shop.fourthwall.com/

#Python #CreativeCoding #MastodonArtist #SupportEducators





Show Original Post


11.11.2025 18:57
driscollis (@driscollis@mastodon.social)

The latest edition of The Python Papers Newsletter is out!

Learn about conditional statements today!




Show Original Post


1 ...1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 ...1566
UP