1
25
Python 3.14.0 alpha 3 (discuss.python.org)
2
32
3
25
4
20
5
21
Python Resources for Everybody (learnbyexample.github.io)
6
7
UV tricks (www.bitecode.dev)
7
10

cross-posted from: https://mander.xyz/post/21881380

This is my fourth blog post. Any helpful feedback or insights are welcome.

8
32
9
37
submitted 2 weeks ago by neme@lemm.ee to c/python@programming.dev
10
9
11
24
12
14

Made this ChatGPT coded bot for telegram to propose to my IT Project Manager lady. She said yes.

13
13
submitted 3 weeks ago* (last edited 3 weeks ago) by SwordInStone@lemmy.world to c/python@programming.dev

https://docs.python.org/3/library/pathlib.html

I'm creating this post mainly so that I don't forget the name again.

14
11
15
12
submitted 3 weeks ago* (last edited 3 weeks ago) by okelote360@lemmy.world to c/python@programming.dev

W

16
16

My third blog post. I added variation in the tense of the generated text as well as another possible action for the character.

17
27

also you can test pynotes and pyclock

18
10
submitted 1 month ago* (last edited 1 month ago) by logging_strict@programming.dev to c/python@programming.dev

In a requirements-*.in file, at the top of the file, are lines with -c and -r flags followed by a requirements-*.in file. Uses relative paths (ignoring URLs).

Say have docs/requirements-pip-tools.in

-r ../requirements/requirements-prod.in
-c ../requirements/requirements-pins-base.in
-c ../requirements/requirements-pins-cffi.in

...

The intent is compiling this would produce docs/requirements-pip-tool.txt

But there is confusion as to which flag to use. It's non-obvious.

constraint

Subset of requirements features. Intended to restrict package versions. Does not necessarily (might not) install the package!

Does not support:

  • editable mode (-e)

  • extras (e.g. coverage[toml])

Personal preference

  • always organize requirements files in folder(s)

  • don't prefix requirements files with requirements-, just doing it here

  • DRY principle applies; split out constraints which are shared.

19
12
submitted 1 month ago by daco@lemm.ee to c/python@programming.dev

Hi,

I wanted to use d2 in an environment where I could only install python and npm packages.

Given that, and that I could not find any other solution, I made d2-python-wrapper, a small python wrapper that bundles the d2 binaries.

Now you can use d2 from python like this:

from d2_python import D2

d2 = D2()

# Simple diagram
with open("test.d2", "w") as f:
    f.write("x -> y")

# Default SVG output
d2.render("test.d2", "output.svg")

# PDF output with specific theme
d2.render("test.d2", "output.pdf", format="pdf", theme="1")

The class just wraps the bin, so it works and supports the same as the bin. There is a GitHub Action that gets the bins for each platform (mac, win, linux) from the releases in this repo and publishes it to pip.

You can install this using

pip install d2-python-wrapper

Here is a short post with more context.

Just in case It's useful for anyone. 😁

20
28

Welcome to a new era of interconnected content discussion with PieFed – a link aggregator, a forum, a hub of social interaction and information, built for the fediverse. Our focus is on individual control, safety, and decentralised power.


Like other platforms in the fediverse, we are a self-governed space for social link aggregation and conversation. We operate without the influence of corporate entities – ensuring that your experience is free of advertisements, invasive tracking, or secret algorithms. On our platform, content is grouped into communities, allowing you to engage with topics of interest and disregard the irrelevant ones. We utilise a voting system to highlight the best content.


Video introduction the codebase

21
21
Python 3.14.0 alpha 2 (discuss.python.org)
22
19
Python's pathlib module (www.pythonmorsels.com)
23
34
Is Python Really That Slow? (blog.miguelgrinberg.com)
24
13
What's new in pip 24.3 (ichard26.github.io)
25
7
Are we PEP 740 yet? πŸ” (trailofbits.github.io)
view more: next β€Ί

Python

6478 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS