Agents & Products

CUP (Common Useful Python): Building Reliable Python Workflows with Baidu’s Utility Toolkit

In this tutorial, we explore CUP, Baidu’s Common Useful Python library, as a practical utility toolkit for building stronger Python workflows. We begin by setting up the library in a Colab-friendly environment and then move through its major subsystems step by step, including logging, decorators, nested configuration, caching, ID generation, thread pools, interruptible threads, delayed execution, time utilities, Linux resource monitoring, file locking, networking helpers, object storage interfa

Get smart on it

CUP is a Common Useful Python library that provides utility tools for building Python workflows, including features like logging, decorators, configuration management, caching, thread pools, and file handling. The library addresses real-world development needs such as monitoring, automation, concurrency, configuration management, and reliability checks. CUP's major subsystems include structured logging that writes to both files and stdout, decorators for creating singleton classes and tracking execution time, a nested configuration system that supports hierarchical settings and repeated values, and in-memory key-value caching with expiration support. The tutorial demonstrates how these modules work together in practical development tasks through code examples that show setup, usage, and round-trip configuration modifications.

The biggest AI stories, once a day

One short email a day with the stories that matter. Free. Unsubscribe with one click.

Relevant courses

Want to go deeper than the news? Explore live, cohort-based AI courses taught by practitioners.

Browse AI courses on Maven
Related news
Agents & ProductsOpen story →

OpenAI’s quarterly revenue reportedly crosses $10B for the first time

Sales of $10B represents an almost 50% jump from revenue of $6.7 billion the company recorded in the second quarter.

Agents & ProductsOpen story →

Agents that build their own databases are forcing a data foundation rethink

AI agents are changing how enterprises create, move and govern information, and data observability is turning into a prerequisite rather than a nice-to-have. Models get most of the attention, but the data beneath them decides whether they hold up in production. That pressure is now reaching the cloud-native community, where KubeCon organizers added a dedicated […] The post Agents that build their own databases are forcing a data foundation rethink appeared first on SiliconANGLE.

Agents & ProductsOpen story →

Hands-on with Ring’s new AI drone camera for your home

Ring’s new Drone Cam is a flying indoor security camera. Ring is finally shipping a flying indoor drone camera. For real this time. The Ring Drone Cam will arrive on January 27th, 2027, for $249.99, Ring founder Jamie Siminoff said at a launch event in New York City this week. If it does actually ship, it will arrive almost six years after the company announced its first flying camera, the Ring Always Home Cam. Designed to patrol inside your home when you're not there, the Drone

Also reported by TechCrunch and Ars Technica

Agents & ProductsOpen story →

OpenAI rolls out new business profiles, making ChatGPT just a little bit more like Google

OpenAI is looking to make ChatGPT a more robust consumer discovery engine, and a host of new features seek to empower businesses to help it do that.

Also reported by The Verge

Agents & ProductsOpen story →

AI agents carry memory and storage like people, so their data needs guarding while in use

As AI agents move into production on Kubernetes, cloud engineering teams at financial companies face a security problem that encryption alone can’t solve. Container orchestration has become the default foundation for AI workloads, and the data those agents use is now the main target. Payment networks feel that pressure more than most because every transaction […] The post AI agents carry memory and storage like people, so their data needs guarding while in use appeared first on Silic

Agents & ProductsOpen story →

Serve Robotics opens robot delivery network for others to build on

The AV Delivery Developer Portal enables anyone to call robots from Serve’s delivery fleet. Source: Serve Robotics Serve Robotics Inc. today launched the AV Delivery Developer Portal, which it said gives developers, businesses, hobbyists, and AI assistants the opportunity to programmatically summon its sidewalk delivery robots. The company said its public application programming interface, or API, allows others to work with its autonomous robot fleet. It also released a sandbox environment