Python

/python438

Python is a beloved programming language for AI, web backend, testing and automation. Python is #1 language in data science, with its popular interactive Jupyter Notebooks for researchers.

PyCharm just rocks for Python development.

- The best autocomplete (sorry Visual Studio Code)
- Many advanced helpers
- Fast
Guess the most popular class name in Python
Use cases for LLMs:

I give it a JSON object and ask "Write me Python TypedDict definition for this"
Python has passed JavaScript as #1 language on Github
This channel is public again
I have no idea how to add more members to this group.

I want to make it free for all to post.

Someone please tell me.
Due to popularity of AI, Python is killing it what comes to the popularity of programming languages

https://www.tiobe.com/tiobe-index/
Writing Python with Claude: cue me impressed.

The AI starts to be on a level that it saves time even for me, though I consider myself not to need to use AI assistance for Python programing.
It's spelt SQLArghemy
Solidity Python Extension Pack

One install to rule them all

The Solidity Python Extension Pack for VS Code is a curated toolkit for Solidity and Python developers

It includes essential extensions for coding and testing smart contracts, perfect for tools like Wake, enabling seamless Solidity testing with Python

Extensions included:
→ Solidity (Wake)
→ Python
→ Pylance
→ Python Test Adapter
→ isort
→ autopep8
→ Python Indent
→ Even Better TOML

Download the extension here:
https://marketplace.visualstudio.com/items?itemName=ackeeblockchain.solidity-python-pack

Want to see an extension added?
Fork the repo and create a PR! We will be happy to take a look!
https://github.com/Ackee-Blockchain/solidity-python-extension-pack
How to stream Parquet data out from a Python WSGI web server

https://stackoverflow.com/a/79054438/315168
If someone is using Poetry to manage Python dependencies here is a tip:

Instead of using "poetry shell" to activate a subshell with a virtual environment, you can manually activate it like any other virtual environment.

The benefit is that this works better with fancy new terminals like PyCharm new Terminal beta and Warp. Usually subshells break the special line editing modes and advanced UX features these new shells have.

Here is an example one-liner for your ZSH configuration:

https://gist.github.com/miohtama/acecb08e78202a4b72f503c90247541e
If you are into Python and quant finance (algo trading), I started a new channel /algo-trading

I will post Python-based trading strategies there now and then.
Going through degrees of separation on this one:

>>> bool(1) + bool(1)
2
Does anyone have some insight into how to connect with the Strava API in python? I’m thinking running a script to see the miles cycled this week etc.

I’m still learning…
Remove duplicates in Python list, maintain the list order
solidity python dev starter pack

what is a must-have?

shill me your best extensions
Here is the secret Telegram chat group for Python developers working on Ethereum and EVM chains

https://t.me/ethereum_python