question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Base classes for the item pipeline and middleware

See original GitHub issue

In the pipeline docs it says:

Each item pipeline component is a Python class that must implement the following method

I believe that it would be easier for the user and for documentation purposes to have an abstract class e.g. ItemPipeline available that raises a NotImplementedError if they forget to implement the required methods. This could also be extended to the optional methods so the user can see directly from the code which methods are supported.

This could also be applied to the downloader middleware, spider middleware and extensions.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xPi2commented, Apr 16, 2020

Hi, why is this still open? No decision taken?

0reactions
djunzucommented, Mar 17, 2017

@jorenham , I would suggest to make this self registering in a separated issue/PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core Middleware | Microsoft Learn
These reusable classes and in-line anonymous methods are middleware, also called middleware components. Each middleware component in the request ...
Read more >
Add custom middleware in ASP.NET Core application
Select Middleware Class item and give it a name and click on Add button. This will add a new class for the middleware...
Read more >
Deep Dive: How is the ASP.NET Core Middleware Pipeline ...
Inline middleware components are not really any different from creating and registering a middleware class. However, they require more ceremony ...
Read more >
Building a middleware pipeline with WebApplication
In my previous post, I looked at the code behind WebApplicationBuilder , including some of its helper classes like ConfigureHostBuilder and ...
Read more >
Middleware in ASP.NET 6 - Intro and Basics
Middleware is code modules or classes that form a pipeline. That pipeline processes incoming requests and outgoing responses. In the Program.cs ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found