mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#python

305 Beiträge262 Beteiligte54 Beiträge heute

Several deadlines are approaching for deprecated setuptools features

30th Aug
- bdist_wheel with universal=True

15th Oct
- Running `setup.py test`
- subclassing wheel.bdist_wheel

31st Oct
- Running `setup.py <anything>`
- setuptools.command.easy_install, setuptools.installer, fetch_build_eggs

For more info and migration guidence see
- blog.ganssle.io/articles/2021/
- packaging.python.org/en/latest

Thanks to PyPA and everyone involved for their dedication and hard slog.

Paul Ganssle · Paul Ganssle - Why you shouldn't invoke setup.py directlyThe setup.py interface is an old convention from distutils, one that has bugs that cannot be fixed to bring it into line with modern Python packaging approaches. As a result, all direct...

In #python you can refer to a global variable v in a different module M as M.v. But you can't in module M itself. This is annoying (and feels inconsistent to me). There is a solution though: import M in M itself. Then M.v is defined in M too!

For example, if `M.py` contains:

```
import M

a = 10

def test():
M.a = 20

test()
print(a)
```

Then *importing* `M.py` prints 20. (Running it using `python M.py` prints 20 and them 10.)

Ok, I'm confused... I'm trying to do some stuff with #python but I get an error.
I'm trying to install this library - pyaltiumlib.readthedocs.io/lat
But when I try I get - "error: externally-managed-environment"

If I try to use pipx I get "No apps associated with package pyaltiumlib or its dependencies"

What am I doing wrong?

(using Ubuntu 24)

pyaltiumlib.readthedocs.ioInstallation & Usage Guide — pyAltiumLib documentation

May 2025 APT Group Trends (South Korea)

This analysis examines Advanced Persistent Threat (APT) attacks in South Korea during May 2025. The majority of identified attacks utilized spear phishing as the primary infiltration method. Two main types of attacks were observed: Type A, which uses LNK files to execute malicious scripts and download additional malware, and Type B, which employs LNK files to download and execute obfuscated Python scripts. Both types use deception techniques, including decoy documents and task scheduler manipulation. The attacks targeted various sectors, using topics such as financial reporting, privacy protection, and business registration to lure victims. The report provides detailed information on file names, decoy documents, and indicators of compromise, including MD5 hashes, URLs, FQDNs, and IP addresses associated with the malicious activities.

Pulse ID: 6852fb631fbf46af0b21acb2
Pulse Link: otx.alienvault.com/pulse/6852f
Pulse Author: AlienVault
Created: 2025-06-18 17:46:11

Be advised, this data is unverified and should be considered preliminary. Always do further verification.

LevelBlue Open Threat ExchangeLevelBlue - Open Threat ExchangeLearn about the latest cyber threats. Research, collaborate, and share threat intelligence in real time. Protect yourself and the community against today's emerging threats.
#CyberSecurity#DNS#ICS

Hexagonaler Random Walk mit TigerJython

Der bei Microsoft forschende Psychologe und Informatiker Dan Goldstein berichtet in seinem Blog, wie er mit seiner neunjährigen Tochter in einem Bagel-Shop warten mußte. Um sich die Langeweile zu verkürzen, kramte er ein hexagonal-kariertes Blatt Papier und einen Würfel hervor (Psychologen bei Microsoft haben immer ein hexagonal-karierten Notizblock und einen Würfel in der Tasche). kantel.github.io/posts/2025061 #TigerJython #RandomWalk #Python #CreativeCoding

looking for an #OSS #APIgateway

* API keys (API users) + Oauth (website) for auth
* rate limiting + protection against content crawling
* queuing requests to prevent overloading our self-hosted AI models
* ability to track usage so that we can charge expensive API calls to users/orgs
* basic monitoring

API will most likely be written in #NestJS, another likely using #FastAPI (or something else in #Python). I like #GitOps. Doesn’t need to handle insane traffic just make the above things easier.

Fortgeführter Thread

Dear Internet. Friends, foes and those yet undecided.

Meet phpbb-notifier (github.com/Hamatti/phpbb-notif), a command-line tool built with #Python that keeps an eye on phpBB forum threads across different forums and notifies you of new messages via native macos notifications.

A lot of good discussion and live reporting of events still happens in good ol' forums but keeping an eye on them can be bothersome.

I built it to follow a court case reporting on a forum and it worked brilliantly for it.

Follow threads on phpBB forums and create native macos notifications when new posts appear - Hamatti/phpbb-notifier
GitHubGitHub - Hamatti/phpbb-notifier: Follow threads on phpBB forums and create native macos notifications when new posts appearFollow threads on phpBB forums and create native macos notifications when new posts appear - Hamatti/phpbb-notifier

As my first official act as the new maintainer of the SmartyPants #typography library for #Python, I just released version 2.0.2 with a few modernizations.

Between maintaining Typogrify and now SmartyPants, it seems I have inherited quite the #opensource typographical legacy, which I shall endeavor to steward as best as I can 🌟

github.com/justinmayer/smartyp

Fix double closing quotes after an HTML block (#9 by @vincentbernat)
Fix regular expressions and tests for Python 3.12+ (#21 by @mimi1vx)
Move documentation to ReadTheDocs (by @justinmayer)
GitHubRelease smartypants 2.0.2 · justinmayer/smartypants.pyFix double closing quotes after an HTML block (#9 by @vincentbernat) Fix regular expressions and tests for Python 3.12+ (#21 by @mimi1vx) Move documentation to ReadTheDocs (by @justinmayer)

I have a #Python file that does not have a *.py extension. I would like to tell my #NeoVim that it is a Python script, so that it can do proper syntax highlighting.

I know that I achieve this by adding some special comments to the file, that are interpreted by NeoVim. But I don't remember how to do it and how the feature is called.

All the involved terms are bad for asking Google. Can somebody give me a hint please?