selection – Code Guilds https://codeguilds.com Fri, 24 Jul 2026 10:46:35 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 Airbus Pioneers Digital Sovereignty with Scaleway Cloud Selection, Setting New Industry Benchmark for Data Protection https://codeguilds.com/airbus-pioneers-digital-sovereignty-with-scaleway-cloud-selection-setting-new-industry-benchmark-for-data-protection/ https://codeguilds.com/airbus-pioneers-digital-sovereignty-with-scaleway-cloud-selection-setting-new-industry-benchmark-for-data-protection/#respond Fri, 24 Jul 2026 10:46:35 +0000 https://codeguilds.com/airbus-pioneers-digital-sovereignty-with-scaleway-cloud-selection-setting-new-industry-benchmark-for-data-protection/ Airbus, the European aerospace and defence conglomerate, has formally selected French provider Scaleway as its sovereign cloud partner following a rigorous competitive tender process. This landmark decision is notable not just for the vendor chosen, but for the profound implications of its selection criteria: legal jurisdiction, specifically protection against non-European extraterritorial legislation, was a formal, scored evaluation dimension, elevating it from a policy discussion point to a critical procurement requirement for a major industrial player. This move underscores a growing commitment within Europe to digital sovereignty, particularly for critical infrastructure and sensitive data.

The Imperative of Digital Sovereignty: Why Europe Cares

Digital sovereignty refers to a nation or bloc’s ability to govern its own digital space, control its data, and protect its digital infrastructure from foreign interference or laws. For Europe, this concept has gained immense traction over the past decade, driven by a confluence of factors including robust data protection regulations like GDPR (General Data Protection Regulation), landmark court rulings such as Schrems II (which invalidated the EU-US Privacy Shield), and increasing concerns over the extraterritorial reach of foreign legislation, most notably the U.S. CLOUD Act (Clarifying Lawful Overseas Use of Data Act). These developments have compelled European organizations, especially those handling sensitive data or operating critical infrastructure, to re-evaluate their reliance on non-European cloud providers.

Airbus, as a cornerstone of European industrial might and a key player in both commercial aerospace and defence, operates with highly sensitive intellectual property, operational data, and strategic information. Its aircraft design, engineering blueprints, manufacturing processes, and supply chain logistics are all integral to European security and economic competitiveness. Protecting this vast repository of data from any potential external compulsion or surveillance is not merely a preference but a strategic imperative. The company’s decision reflects a broader European desire to foster digital autonomy and ensure that critical data assets remain under European legal jurisdiction.

Catherine Jestin, Executive Vice President Digital at Airbus, articulated the motivation behind this strategic shift, stating, "This collaboration marks a significant milestone in our broader commitment to European digital sovereignty. By integrating a trusted, high-performance cloud environment that keeps our critical data assets shielded from foreign extraterritorial laws, we are ensuring that our digital infrastructure keeps pace with our aerospace innovation, while maintaining control and resilience of our industrial operations." Her statement makes it unequivocally clear that the primary driver is safeguarding critical data from the reach of foreign legal frameworks.

A Deep Dive into the Selection Criteria

The tender process conducted by Airbus was comprehensive, evaluating providers across three distinct, yet interconnected, dimensions. The first, Technical Capabilities, encompassed the breadth and depth of advanced cloud services offered, interoperability with existing systems, scalability to meet fluctuating demands, and cutting-edge AI capabilities. This ensures that the chosen partner can support Airbus’s complex operational and developmental needs.

The second dimension, Operational Excellence, focused on the robustness of the provider’s infrastructure and processes. This included stringent security protocols, guaranteed resilience against outages, comprehensive service continuity plans, and seamless integration with Airbus’s existing multi-cloud estate, which typically involves a blend of public and private cloud solutions from various vendors.

However, it was the third dimension, Legal and Governance Safeguards, that truly set this tender apart and signaled a new paradigm in enterprise cloud procurement. This category specifically mandated adherence to European jurisdiction, robust data protection mechanisms (beyond standard GDPR compliance), and explicit protection against non-European extraterritorial legislation. This criterion directly addresses concerns arising from laws like the US CLOUD Act, which empowers American authorities to compel US-headquartered providers to furnish data, regardless of where it is physically stored, even if held in EU-based data centers operated by their EU subsidiaries. The implication is profound: mere physical data residency within the EU is insufficient if the provider remains legally subject to non-European jurisdictions.

The Threat of Extraterritorial Laws: Real-World Precedents

The phrase "foreign extraterritorial laws" is not a theoretical construct for European businesses; it represents a tangible risk. The US CLOUD Act, enacted in 2018, allows US law enforcement to demand data directly from US-based tech companies, even if that data is stored abroad. This legal framework has created a dilemma for European organizations seeking to comply with EU data protection laws while using services from providers subject to US jurisdiction.

Practitioners engaging in discussions about this deal on platforms like Hacker News quickly referenced concrete precedents rather than hypotheticals. One frequently cited example involved the Chief Prosecutor of the International Criminal Court (ICC) reportedly losing access to his Microsoft email account in 2025 after being sanctioned by executive order. While Microsoft’s president later disputed the account being entirely cut off, the initial reports and the potential for such an event highlighted the vulnerability. Another recent instance involved export controls that briefly suspended access to advanced AI models like Claude Fable 5 and Mythos 5 in June, affecting European users. These incidents, regardless of their specific outcomes, serve as stark reminders of the operational risks associated with relying on vendors who might be compelled to comply with foreign directives. As one commenter succinctly put it, reducing it to a core procurement rule: "You can’t build a business on a vendor who may be forced to block you at any moment." This sentiment captures the strategic risk calculation that Airbus, and increasingly other European entities, are making.

Scaleway: A European Champion Rises

Scaleway, the cloud computing arm of the French telecoms group iliad, emerges as a significant beneficiary and a leading proponent of European digital sovereignty. The company has strategically positioned itself as a trusted European alternative to the dominant US hyperscalers. Its infrastructure is built on European technology, emphasizing open standards and interoperability, which aligns perfectly with Airbus’s stated requirement for seamless integration with its existing systems.

Scaleway’s recent trajectory underscores its commitment to this vision. In April, it was selected as one of four providers under the European Commission’s €180 million Cloud III framework, tasked with delivering a sovereign public cloud and AI platform to EU institutions. This endorsement from the European Commission itself signifies its credibility and alignment with EU strategic goals. Furthermore, in July, Scaleway acquired Qarnot, a French High-Performance Computing (HPC) provider known for its innovative, low-carbon computing solutions. This acquisition was justified partly on the grounds that both companies are governed by European jurisdiction, thereby offering customers immunity to extraterritorial laws and strengthening Scaleway’s AI capabilities within a sovereign framework. This strategic pairing of European model providers like Mistral AI (with whom Airbus also partnered in May) with European infrastructure providers like Scaleway represents a holistic approach to building an independent European AI ecosystem.

Scaleway CEO Damien Lucas emphasized the connection between this deal and the burgeoning field of AI infrastructure. He argued that unlocking the full potential of AI in advanced industries necessitates infrastructure that combines high performance with absolute trust and long-term control. This framing is crucial because questions of data sovereignty are increasingly intertwined with the deployment and training of AI workloads, where vast amounts of potentially sensitive data are processed.

Strategic Implications for Airbus and Beyond

The Scaleway platform will support a diverse range of business-critical applications for Airbus, spanning highly sensitive areas such as aircraft design, complex engineering simulations, advanced manufacturing processes, and enterprise-wide operational systems. This signifies a deep integration of Scaleway’s services into Airbus’s core functions.

Airbus frames this new arrangement not as a complete repatriation from existing providers, but as a strategic complement to its established multi-cloud approach. The stated goal is that "each workload is deployed in the environment best suited to its technical, operational and regulatory requirements." This implies a sophisticated "workload-criticality placement" strategy. Rather than a wholesale migration, Airbus is likely creating a dedicated sovereign tier for its most sensitive and jurisdictionally exposed data and applications, while continuing to leverage hyperscaler capacity for less critical or less sensitive workloads where cost, global reach, or specific technical features might still be advantageous. This hybrid model is increasingly becoming the default pattern for many European enterprises evaluating their own sovereignty strategies: a designated sovereign tier for critical data, complemented by hyperscaler capacity for everything else.

The Broader Market Impact: A Shifting Landscape

Airbus’s decision sends a powerful signal across the European industrial landscape and beyond. The impact is multifaceted:

  • Competitive Landscape for Cloud Providers: This move presents a significant challenge to dominant US-based hyperscalers (Amazon Web Services, Microsoft Azure, Google Cloud Platform) in Europe. While these giants have invested heavily in EU data centers and compliance certifications, their ultimate legal domicile remains a sticking point for organizations prioritizing absolute jurisdictional independence. It simultaneously creates immense opportunities for European cloud providers like Scaleway, OVHcloud, and others to capture market share, especially in sensitive sectors. The argument that cloud infrastructure is commoditizing, coupled with advancements in open technologies like Kubernetes, Terraform, and S3-compatible APIs, has lowered switching costs. This means jurisdictional preference can now be acted upon without sacrificing technical requirements, making it a viable competitive differentiator.

  • Impact on SaaS Market Dynamics: The effects reach beyond just infrastructure providers. A founder of a US-based SaaS company recounted losing long-standing European customers, even those using their European regions, due to this very reasoning. Customers, paraphrasing, stated they were "happy with the product but management wants EU supplier." Large US vendors might be able to mitigate this by establishing fully independent EU entities, but for smaller SaaS companies, this often presents an insurmountable hurdle, potentially leading to market fragmentation.

  • AI and Data Sovereignty: The intersection of AI development, data residency, and jurisdictional control is becoming a critical battleground. Damien Lucas’s emphasis on trust and long-term control for AI infrastructure directly addresses concerns reported by InfoQ, where European practitioners faced blocks in adopting Claude models on Microsoft Foundry precisely for the reasons Airbus now articulates. This included a Dutch bank declining approval and an oncology IT architect requiring guaranteed EU-hosted inference. Airbus, with a signed contract, is now making this argument with tangible action. The collaboration with Mistral AI further solidifies the vision of an end-to-end European AI ecosystem.

Beyond the Hype: Verifiable Controls and Compliance

While the concept of digital sovereignty is powerful, its practical implementation requires meticulous attention to detail. Compliance practitioners reacting to Scaleway’s announcement on LinkedIn underscored that "sovereignty" must translate into verifiable controls. Marie-Josée P., a data compliance specialist, argued that the criterion only becomes meaningful when decomposed into auditable elements: "For critical workloads, trust must be translated into verifiable controls: data and log location, support access, encryption key governance, subcontractor oversight, reversibility and operational continuity. The key issue is not only where the cloud provider is established, but whether long-term control can be demonstrated across the actual architecture and service chain."

Julien Raspopovitch, a legal and compliance expert in healthcare, echoed this sentiment from a regulatory perspective. He noted that while European hosting significantly reduces exposure to the CLOUD Act and FISA (Foreign Intelligence Surveillance Act), it does not eliminate the fundamental obligation to conduct a Data Protection Impact Assessment (DPIA) or to diligently verify Article 28 sub-processing clauses, especially within a complex multi-cloud environment. His conclusion is incisive: "Sovereignty is a compliance asset, not a substitute for it." This emphasizes that jurisdictional preference is a crucial layer of protection, but it must be underpinned by robust data governance and compliance frameworks.

Future Outlook: A Blueprint for European Industry

Neither Airbus nor Scaleway disclosed the specific contract value, the precise migration timeline, or the exact number of applications involved. Furthermore, the complexities of migrating production ERP and manufacturing systems within a large, multinational corporation are substantial, and the announcement does not account for the inherent risks and challenges of such a program.

However, the enduring signal for platform teams and procurement departments across Europe lies less in the specific outcome and more in the unprecedented tender structure itself. When a buyer of Airbus’s magnitude and strategic importance formally publishes jurisdictional protection as a scored requirement, it sets a powerful precedent. This action is highly likely to catalyze a "copy the scorecard" effect, influencing how other large European enterprises, particularly those in defense, finance, healthcare, and critical infrastructure, structure their own cloud procurement processes. The Airbus-Scaleway partnership thus represents a pivotal moment in the evolution of cloud computing in Europe, signaling a definitive shift towards prioritizing digital autonomy and data sovereignty as fundamental pillars of strategic enterprise IT. This move solidifies Europe’s long-term vision for fostering a resilient, independent, and secure digital future.

]]>
https://codeguilds.com/airbus-pioneers-digital-sovereignty-with-scaleway-cloud-selection-setting-new-industry-benchmark-for-data-protection/feed/ 0
Textual DOM Queries: Mastering Advanced Widget Selection and Manipulation https://codeguilds.com/textual-dom-queries-mastering-advanced-widget-selection-and-manipulation/ https://codeguilds.com/textual-dom-queries-mastering-advanced-widget-selection-and-manipulation/#respond Wed, 22 Jul 2026 10:23:35 +0000 https://codeguilds.com/textual-dom-queries-mastering-advanced-widget-selection-and-manipulation/ Last month, the Python library Textual introduced its users to the fundamental concepts of DOM (Document Object Model) queries, a powerful mechanism for interacting with and manipulating the widgets within a Textual application’s user interface. For those who missed the initial exploration, a comprehensive article detailing these basics is available for review, providing a crucial foundation for understanding the more advanced techniques discussed herein. This subsequent tutorial delves into sophisticated methods for querying and managing widgets, empowering developers to streamline their application development and enhance user experience through efficient UI control.

The core of Textual’s widget selection lies in its DOMQuery object, which acts as a versatile container and manipulator for retrieved widgets. While the previous installment covered the foundational query syntax, this piece focuses on unlocking the full potential of DOMQuery by examining its specialized methods. Understanding these advanced capabilities is paramount for building complex and responsive terminal applications, enabling developers to perform bulk updates, precisely target specific widgets, and refine their selections with unparalleled accuracy.

Unveiling the DOMQuery Object’s Capabilities

The DOMQuery object, returned by Textual’s query methods, is more than just a simple list of widgets. It possesses its own suite of specialized functions that go beyond standard Python list operations. To gain a comprehensive understanding of these built-in functionalities, developers can leverage Python’s introspection capabilities. By applying the dir() function to a DOMQuery object, one can obtain a detailed list of all available methods and attributes. This programmatic approach allows for a dynamic exploration of the object’s capabilities, revealing the full spectrum of operations that can be performed on selected widgets.

To illustrate this, consider the creation of a dedicated Python script, domquery_methods.py. This script serves as a practical demonstration of how to inspect and utilize the methods inherent to the DOMQuery object. The application is designed to be straightforward: it presents the user with a label and a single button. Upon pressing the button, the application executes a query to retrieve all Button widgets within the application’s composition. Subsequently, it iterates through the methods returned by dir(widgets), where widgets is the DOMQuery object, and compiles them into a string. This string is then displayed on the application’s label, offering a real-time view of the DOMQuery object’s available functions.

The output, when this script is executed, presents a comprehensive listing of the DOMQuery object’s methods. This list typically includes standard Python object methods alongside Textual-specific additions. For instance, developers will observe methods related to collection manipulation, attribute access, and Textual’s unique widget interaction functions. This visual representation of available methods is invaluable for developers seeking to expand their toolkit and discover new ways to programmatically manage their application’s UI.

Precision Selection: first() and last() Methods

Among the most frequently utilized and exceptionally useful methods within the DOMQuery object are first() and last(). These methods provide a direct and explicit way to retrieve the initial and terminal widgets from a query result, respectively. This is particularly beneficial when dealing with ordered lists of widgets or when a specific element at the beginning or end of a selection needs to be targeted for modification or inspection.

To showcase the utility of first() and last(), a practical example can be constructed. The first_and_last.py script builds upon the concept of multiple buttons. The compose method of the QueryApp class is modified to yield three distinct Button widgets, each assigned a unique ID for explicit identification: "One", "Two", and "Three". The on_button_pressed handler is then updated to perform a query for all Button widgets. Instead of iterating through the entire DOMQuery object, it directly employs widgets.first() and widgets.last() to obtain the first and last buttons in the selection. The string representation of these retrieved widgets is then presented to the user via the application’s label.

Textual – An Intro to DOM Queries (Part II)

This demonstrates a refined approach to widget selection. When any of the buttons are pressed, the label updates to clearly indicate which button was identified as the first and which as the last. This immediate feedback loop helps developers understand the order in which widgets are returned by queries, which is often determined by their declaration order within the compose method.

It is important to note that the DOMQuery object, by its nature, behaves much like a Python list. Therefore, developers have the option to access the first and last elements using standard list indexing: widgets[0] for the first and widgets[-1] for the last. While this approach is functionally equivalent for obtaining the elements themselves, the first() and last() methods offer distinct advantages, particularly in scenarios demanding greater explicitness and error handling.

A key benefit of first() and last() lies in their ability to accept an expect_type argument. This parameter allows developers to specify the expected type of the widget they anticipate retrieving. For instance, self.query().last(Button) not only retrieves the last widget but also asserts that this widget must be an instance of the Button class. If the actual last widget does not conform to the specified type, Textual will raise a WrongType exception, providing an immediate safeguard against potential runtime errors and ensuring type integrity within the application’s logic. This feature is invaluable for maintaining code robustness, especially in applications with dynamic widget structures or complex inheritance hierarchies.

Advanced Filtering and Exclusion Techniques

Beyond simply retrieving the first or last element, Textual’s DOMQuery object provides powerful methods for refining selections: filter() and exclude(). These tools enable developers to precisely segment their widget collections, isolating specific types of widgets or removing unwanted elements from a query result.

Query Filters: Isolating Specific Widget Types

The filter() method is designed to extract subsets of widgets from an existing DOMQuery object based on CSS selectors. This is incredibly useful when a broad query returns a mixed collection of widgets, and the developer needs to operate on a specific category. For example, a query that retrieves all widgets in an application’s layout can be subsequently filtered to isolate only Label or Button widgets.

Consider a scenario where an application’s compose method yields a variety of widgets, including labels, buttons, and input fields. A general query, self.query(), would return a DOMQuery object containing all these elements. To then operate specifically on the labels, one could use widgets.filter("Label"). This operation returns a new DOMQuery object containing only the Label widgets that were part of the original widgets collection. Similarly, widgets.filter("Button") would yield a DOMQuery object exclusively populated with Button widgets. This granular control allows for targeted styling, event handling, or data manipulation on specific widget types without the need for manual iteration and type checking.

Query Exclusions: Removing Unwanted Widgets

Conversely, the exclude() method serves as the logical inverse of filter(). It allows developers to remove widgets from a DOMQuery object that match a given CSS selector. This is particularly useful when the goal is to perform an action on all widgets except for a particular subset.

Using the same broad query of all widgets (self.query()), one might wish to apply a style or perform an action on every widget except for the buttons. The exclude() method facilitates this directly: widgets.exclude("Button"). This operation results in a new DOMQuery object that contains all the widgets from the original widgets collection, with the exception of any that matched the "Button" selector. This offers an efficient way to manage exceptions within a larger selection, simplifying complex UI logic and reducing the need for intricate conditional statements.

Textual – An Intro to DOM Queries (Part II)

With consistent practice, developers can master the art of using filter() and exclude() in tandem to construct highly specific DOMQuery objects, enabling precise control over their application’s user interface.

Bulk Widget Manipulation: Beyond Individual Operations

While iterating through a DOMQuery object and calling methods on individual widgets is a common practice, the DOMQuery object itself offers methods that can apply operations to all matched widgets simultaneously. This capability is a significant boon for performance and code conciseness, especially in applications with a large number of widgets.

A prime example of this bulk operation is the add_class() method. This method allows developers to append a specified CSS class to all widgets that are part of the DOMQuery object. This is incredibly useful for applying consistent styling or state changes across multiple elements. For instance, self.query("Input").add_class("started") would immediately apply the "started" CSS class to every Input widget present in the application’s DOM. This class could then be used in the application’s CSS to define visual cues, such as a border color or background change, indicating that these input fields have been interacted with or are in a particular state.

Beyond add_class(), Textual provides a suite of other methods that operate on the entire DOMQuery set, streamlining common UI update tasks. These include:

  • remove_class(class_name: str): Removes a specified CSS class from all widgets in the query. This is the inverse of add_class() and is useful for reverting styles or clearing states.
  • toggle_class(class_name: str, condition: bool | None = None): Toggles the presence of a CSS class on all widgets. If condition is True, the class is added; if False, it’s removed. If condition is None, the class is added if it’s not present and removed if it is.
  • set_class(class_name: str, add: bool): A more explicit way to add or remove a class. add=True adds the class, and add=False removes it.
  • focus(): Attempts to set the focus on the first widget in the query that can receive focus.
  • blur(): Attempts to remove focus from the currently focused widget, if it’s part of the query.
  • scroll_visible(): Scrolls the viewport to make all widgets in the query visible.
  • scroll_to_line(line: int): Scrolls the viewport to a specific line number within the widgets of the query, particularly useful for scrollable widgets like Static or Log.
  • scroll_home(): Scrolls to the beginning of a scrollable widget.
  • scroll_end(): Scrolls to the end of a scrollable widget.
  • *`run_worker(coro: Coroutine[Any, Any, Any], , name: str | None = None, group: str | None = None)`**: Runs a coroutine as a background worker for each widget in the query. This is powerful for performing asynchronous operations without blocking the UI.
  • *`set_timer(duration: float, callback: Callable[[], None], , run_once: bool = False)**: Sets a timer for each widget in the query. The specifiedcallbackfunction will be executed afterdurationseconds.run_once=True` ensures the timer only fires once.
  • set_interval(duration: float, callback: Callable[[], None]): Similar to set_timer, but the callback will be executed repeatedly at the specified duration interval.

Developers are encouraged to experiment with these methods, applying them to various DOMQuery objects within their Textual applications. For a refresher on available CSS pseudo-classes and their implications, consulting Chapter 3 of the Textual documentation or the official Textual guide on CSS pseudo-classes is highly recommended.

Conclusion: Empowering UI Development with Advanced DOM Queries

Mastering Textual’s advanced DOM query techniques is an indispensable skill for any developer building sophisticated terminal user interfaces. The ability to efficiently select, filter, exclude, and manipulate widgets in bulk significantly enhances development speed and application responsiveness. By leveraging methods such as first(), last(), filter(), exclude(), and the various bulk operation methods, developers can craft more dynamic, interactive, and maintainable Textual applications.

This comprehensive exploration has covered the following key areas:

  • Understanding the DOMQuery Object: Delving into the intrinsic methods available for sophisticated widget management.
  • Precise Widget Retrieval: Utilizing first() and last() for targeted selection, including type-aware retrieval.
  • Refined Selections: Employing filter() and exclude() to isolate or remove specific widgets based on selectors.
  • Bulk Operations: Applying actions like class manipulation, focus management, and asynchronous tasks to entire sets of widgets efficiently.

With this expanded knowledge base, developers are well-equipped to refine their Textual application development workflows. The practice of applying these methods to diverse DOMQuery objects within existing or new projects will solidify understanding and pave the way for creating highly polished and efficient user interfaces. The power to perform bulk updates and precise selections is now within reach, enabling a new level of control over the terminal’s visual landscape.

]]>
https://codeguilds.com/textual-dom-queries-mastering-advanced-widget-selection-and-manipulation/feed/ 0