Python

This magazine is not receiving updates (last activity 2 day(s) ago). Subscribe to start receiving updates.

1984 , in I made a python script to scrape threads.net :)
@1984@lemmy.today avatar

Ok so why do you want all images from threads.net?

FizzyOrange , in Statically Typed Functional Programming with Python 3.12

I don't think I would call this functional. Python is decidedly not at all functional - there's no way to declare arbitrary functions inline, no chaining of map/filter etc.

But the static types are definitely welcome. I didn't know about the type keyword. Apparently it makes it support forward references.

sus ,

like everything in python, to achieve functional you must first import functional

(not even a joke)

GammaGames , in What Git library to choose?
@GammaGames@beehaw.org avatar

Honestly if you already know all the git commands? I’d use sh

wasabi OP ,

You'd still only get strings as returns. No objects modeling git concepts.

poVoq , in Sending SMS through GoIP GSM gateway using HTTP API
@poVoq@slrpnk.net avatar

Did you forget adding a link?

poVoq , in Sending SMS through GoIP GSM gateway using HTTP API
@poVoq@slrpnk.net avatar

That is quite interesting. What are you using it for? You mention some remote islands?

Alteon , in NumPy 2.0.0 released

We'll that's huge. NumPy is fantastic. Had to use it for a bunch of linear algebra calculations for a Mars Atmospheric Descent Calculator. Fully mapped the trajectory and flight path as it entered the Martian Atmosphere. Was a cool little program...

originalfrozenbanana , in best way to access databases in different projects

Here “database” seems to mean a pandas dataframe. Sounds like you need to create a database using Postgres or sqlite or something similar, and recreate that database from a backup or database dump whenever you need it. You could host that database in the cloud or on your own network as well, if you need access remotely.

For instance see this pandas doc https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.html

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • python@programming.dev
  • test
  • worldmews
  • mews
  • All magazines