Адрес чата: t.me/pytho_nn
- мероприятия и проекты сообщества
- Python и сопутствующая экосистема
- новости, которые хотя бы косвенно связаны с Python
- мир разработки вокруг
| [flake8] | |
| # Base flake8 configuration: | |
| # https://flake8.pycqa.org/en/latest/user/configuration.html | |
| format = wemake | |
| show-source = true | |
| statistics = false | |
| doctests = true | |
| # darglint configuration: | |
| # https://github.com/terrencepreilly/darglint |
| import ast | |
| import argparse | |
| import os | |
| import sys | |
| import tokenize | |
| from dataclasses import dataclass | |
| from typing import Final, TypeAlias | |
| _AnyFunction: TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef |
| import gc | |
| import os | |
| import re | |
| import subprocess | |
| import time | |
| from tabulate import tabulate | |
| _HOST = 'http://127.0.0.1:8000' |
Адрес чата: t.me/pytho_nn
| # /// script | |
| # requires-python = ">=3.14" | |
| # dependencies = [ | |
| # "pyperf", | |
| # "httpx", | |
| # ] | |
| # /// | |
| # | |
| # To run `Threading with NoGIL`, first build Python with: | |
| # `./configure --with-pydebug --disable-gil && make` |
| >>> def other(x, y): | |
| ... res = None | |
| ... try: | |
| ... res = x / y | |
| ... except ZeroDivisionError: | |
| ... res = 0 | |
| ... finally: | |
| ... print(res) | |
| ... | |
| >>> import dis |
| #!/bin/bash | |
| IPT="/sbin/iptables" | |
| # Server IP | |
| SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
| # Your DNS servers you use: cat /etc/resolv.conf | |
| DNS_SERVER="8.8.4.4 8.8.8.8" | |
| # Allow connections to this package servers |
Адрес чата: https://discord.gg/tNxbPpDchQ
| # Sample |
Working with open-source software is now a regular part of our lives. We can now say that open-source software has major market shares in almost all fields.
Verifying what is going on inside an application by yourself is especially important in DeFi, where transparency and openness are key philosophical factors. For example, any third-party security researcher can audit and verify the state of security of any open-source project. This creates a lot of trust among end users and other developers.
Everyone can help to improve the software they use if needed, which creates a connection between developers and forms a community around a piece of software.