bandersnatch icon indicating copy to clipboard operation
bandersnatch copied to clipboard

New functionality, package name mask exclusions

Open VictorPavlushin opened this issue 3 years ago • 1 comments

It would be nice to have functionality to exclude packets by mask. For example, exclude all nightly builds. curl https://pypi.org/simple/ | grep nightly | wc -l % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18.8M 100 18.8M 0 0 59.9M 0 --:--:-- --:--:-- --:--:-- 59.9M 128

total 128 packages. Coming from the first page https://pypi.org/stats/ 1.2+ Terabytes can reduce the size of local storage.

VictorPavlushin avatar Mar 05 '22 13:03 VictorPavlushin

https://bandersnatch.readthedocs.io/en/latest/filtering_configuration.html#regex-filtering

Can't the regex filter do this, since that's all grep does ..

The best way here is getting metadata added to PyPI and then we could use that to filter.

  • I think there is another issue asking for this too ... Happy to talk about making a PR for this ... I don't have the cycles as the best solution needs PyPI work.

cooperlees avatar Apr 08 '22 05:04 cooperlees