pypa / bandersnatch

A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/
Academic Free License v3.0
453 stars 141 forks source link

Support Filtering Plugins from `import`ing users #282

Open cooperlees opened 5 years ago

cooperlees commented 5 years ago

Some users (including my place of employment) use bandsnatch by importing the mirroring functions to use in a larger system.

The current plugin design makes it very difficult to use them unless you're in the full virtualenv / setuptools work, which we are not.

Lets investigate and disucss alternative refactors that could all callers to provide a blacklist or whitelist to start with.

I feel it could be as simple as optional Sequence passwd in for bandersnatch to check if they are in or not in.

cooperlees commented 4 years ago

@dralley + @gerrod3 - Your refactor has made this a lot more friendly right?