Skip Navigation
Python

A community for talking about the Python programming language.

Members
2,063
Posts
25
Active Today
1
Created
2 yr. ago
  • Python @sh.itjust.works
    unknownguyfromnowher @lemmy.ml

    If you enjoy to have music while coding and/or studying, and also would like to try something different than lofi hiphop or generic electronica, perhaps this SYNTHWAVE playlist is for you

  • Python @sh.itjust.works
    slyuser @lemmy.ml

    Krunker Aimbot with Yolov8 and Roboflow datasets!

  • Python @sh.itjust.works
    adr1an @programming.dev

    1 hour in Java

  • Python @sh.itjust.works
    slyuser @lemmy.ml

    dht11 sensor with arduino

  • Python @sh.itjust.works
    (des)mosthenes @lemmy.world

    Python Bindings for llama.cpp

    Simple Python bindings for @ggerganov's llama.cpp library. This package provides:

     undefined
            Low-level access to C API via ctypes interface.
        High-level Python API for text completion
            OpenAI-like API
            LangChain compatibility
            LlamaIndex compatibility
        OpenAI compatible web server
            Local Copilot replacement
            Function Calling support
            Vision API support
            Multiple Models
    
    
      

    Documentation is available at https://llama-cpp-python.readthedocs.io/en/latest.

  • Python @sh.itjust.works
    freewifi @sh.itjust.works

    Translation of Python code to Coq | Formal Land

  • Python @sh.itjust.works
    freewifi @sh.itjust.works
  • Python @sh.itjust.works
    freewifi @sh.itjust.works
  • Python @sh.itjust.works
    martinn @programming.dev

    A library for creating fully typed declarative API clients quickly and easily

    cross-posted from: https://programming.dev/post/13395352

    Would love to hear any suggestions, feedback or comments.

  • Python @sh.itjust.works
    freewifi @sh.itjust.works
  • Python @sh.itjust.works
    freewifi @sh.itjust.works

    Announcing py2wasm: A Python to Wasm compiler

  • Python @sh.itjust.works
    freewifi @sh.itjust.works

    Guido in the NY Times crossword

  • Python @sh.itjust.works
    hardkorebob @programming.dev

    Idle Clicke in Tkinter for Pydroid3 or Desktop

    It runs!.. it's just a toy.

  • Python @sh.itjust.works
    your @sh.itjust.works
  • Python @sh.itjust.works
    pepiniho @sh.itjust.works

    win32api alternative for mac and linux that isnt pyautogui, and preferably faster

    is there any win32 alternative that is multi platform and doesnt consume too much resources and are fast? thx

  • Python @sh.itjust.works
    Leon @lemm.ee
  • Python @sh.itjust.works
    Leon @lemm.ee
  • Python @sh.itjust.works
    Zeusbottom @sh.itjust.works

    Applying DRY to something that isn’t

    Had some fun with generators while practicing DRY.

  • Python @sh.itjust.works
    imperator @sh.itjust.works

    Dealing with Databases - Inserting, Updating Etc.

    Wondering if anyone here has some advise or a good place to learn about dealing with databases with Python. I know SQL fairly well for pulling data and simple updates, but running into potential performance issues the way I've been doing it. Here are 2 examples.

    1. Dealing with Pandas dataframes. I'm doing some reconciliation between a couple of different datasources. I do not have a primary key to work with. I have some very specific matching criteria to determine a match. The matching process is all built within Python. Is there a good way to do the database commits with updates/inserts en masse vs. line by line? I've looked into upsert (or inserts with clause to update with existing data), but pretty much all examples I've seen rely on primary keys (which I don't have since the data has 4 columns I'm matching on).
    2. Dealing with JSON files which have multiple layers of related data. My database is built in such a way that I have a table for header information, line level