Register and share your invite link to earn from video plays and referrals.

Search results for 、Python
、Python community
One keyword maps to one global community path.
Create community
People
Not Found
Tweets including 、Python
I don't know where Astra learned Python programming, but when it's "one step removed" from normal code it writes weird Python slop. The unittests it writes are absolutely horrific.
Show more
0
109
1.2K
49
Forward to community
We've been working on a modern Python implementation of the SSZ spec: idiomatic, type-safe, and fast. More exciting work coming here soon.
Twine makes it easy to share Python programs with others by handling the upload step for you. - Works with any build system - Uploads both source and ready-to-run files - Simplifies getting your project onto PyPI Explore it here:
Show more
What began as experimentation with a Python framework evolved into PyTorch, the underlying framework for developers in the fast-moving AI space. At #PyTorchCon# NA 2025, Jana van Greunen (@Meta) reflected on that evolution and the scale of the AI work PyTorch powers today. #PyTorchCon# North America returns October 20–21, 2026, in San Jose. 🔗 Register by September 4 to save on your ticket:
Show more
New: OpenRouter Agent SDKs for both Python and Go! They are kept in sync automatically with the TypeScript SDK 🔁
You can now call methods defined in a Python Worker from a JavaScript Worker and vice versa. You can share objects across Python and JavaScript, and call methods on a Python object from TypeScript. It all just works.
Show more
# Practical and Useful Patterns with ADK ⚡ Turn Python functions into tools, wrap agents as tools, and run long tasks without blocking — ADK's Function Tools maximize flexibility in tool definitions. 📌 Title: Function Tools — Functions, Agents, and Async Tasks as Tools 🔗 URL: 🧩 Overview ADK's Function Tools let you use Python/TypeScript functions directly as agent tools. AgentTool wraps an entire agent as a tool accessible to other agents. Long Running Function Tools handle time-consuming tasks like video encoding and batch jobs without blocking the agent's execution flow. 🛠 Usage Basic function tool definitions and AgentTool usage. Import `Agent` and `AgentTool` from `google.adk`. Define a simple function tool `calculate_price` that takes `base_price` (float), `quantity` (int), and `discount_percent` (float, default 0), computes the total with the discount applied, and returns a dict with `total` and `currency`. For wrapping an agent as a tool, create an `analysis_agent` with `name="data_analyst"` and `tools=[query_database]`. Then define `main_agent` with `tools=[calculate_price, AgentTool(agent=analysis_agent)]`, allowing the main agent to call both the pricing function and the data analysis agent as tools. Using Long Running Function Tools. Import `LongRunningFunctionTool` from `google.adk`. Define an async function `encode_video` that takes `video_url` (str) and `format` (str, default "mp4"), starts an encoding job via `start_encoding_job`, and returns the job ID with a processing status. Wrap it with `LongRunningFunctionTool(func=encode_video)` to create `video_tool`, then pass it to an `Agent`'s `tools` list so the agent can trigger long-running tasks without blocking. 🏗 Practical Patterns **Modularization with AgentTool**: Encapsulate complex logic as specialized agents and expose them via AgentTool. This keeps the main agent's instructions simple while each specialist agent maintains its own tools and prompts -- achieving clean separation of concerns. Define a `summarizer` agent (for 3-line summaries) and a `translator` agent (for Japanese translation) as separate `Agent` instances. Then create a `content_manager` agent with `tools=[AgentTool(agent=summarizer), AgentTool(agent=translator)]`, allowing the main agent to invoke these specialists as tools for content management tasks. **When to Use Long Running Tools**: Ideal for batch processing, external API polling, file conversion — anything taking seconds to minutes. The agent receives a job ID and can proceed with other tasks in parallel. **Type Annotations Matter**: Clear parameter types and return types help the LLM call tools accurately. Docstrings serve as tool descriptions, so keep them concise and clear. 💡 Use Cases 🧮 Calculation and conversion functions as tools (pricing, unit conversion) 🤖 Reusable specialist agents via AgentTool 🎬 Async video encoding and image processing 📊 Non-blocking batch data processing ⚠️ Caveats - Function docstrings become tool descriptions. Write LLM-friendly descriptions — missing docstrings make tool purposes unclear. - Agents called via AgentTool run in a separate session from the parent. Be careful about state sharing. - Long Running Function Tools require a separate completion notification mechanism. Consider polling or webhook-based notifications. ✨ Function Tools let you integrate existing code assets directly into agents, and AgentTool enables seamless agent reuse. A massive boost to development productivity! #ADK# #AIAgent#
Show more
Sydney Sweeney is wrapped in a python — and little else — in bizarre ‘Euphoria’ scene
Google uses Python. Meta uses Python. Netflix uses Python. Spotify uses Python. Dropbox uses Python. Instagram uses Python. Reddit uses Python. Uber uses Python. Pinterest uses Python. OpenAI uses Python. What’s stopping you from learning Python?
Show more
TL;DR A single Python SDK that lets you swap between DeepAgents, Pydantic AI, Claude Agent SDK, Codex, and OpenCode without rewriting your application code — built around the same query() interface as the Claude Agent SDK. Title: LiteAgents (BerriAI/liteagents) URL: Points 🔀 Switch agent harnesses just by changing the harness parameter 🌐 Supports 8+ model providers via LiteLLM, including OpenAI, Anthropic, Gemini, and Groq 🛠️ Pass typed Python functions and they auto-adapt to each harness's tool schema 💬 LiteAgentClient keeps persistent conversation history across multiple query() calls ⏱️ Optional Temporal integration adds crash recovery, replay, and idempotent tool execution ⚙️ Profiles can be defined in Python, YAML, or JSON 📡 Full async/await and streaming support This could be the end of rewriting your agent code every time you switch harnesses. #AIAgents# #OpenSource#
Show more