Pubproxpy

Latest version: v2.0.2

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.0.2

Bugfixes

* Changes where the last request time is set to fix spurious rate limiting since the time where requests are taken isn't known so a more conservative approach is taken

2.0.1

Deprecation Warnings

I've realized that in it's old state several of the errors were not getting raised correctly from the library leading to relatively useless error messages. These errors occurred from problems with rate limiting, hitting the daily limit, and attempting to use an invalid api key where the first two would be raised as generic 503 errors from `requests` and the last was raised as an unknown error. This has been fixed on master which will be published as `v3.0.0` on 2021-06-01.

The other change comes from flipping precedence on the API key where the environment variable will take precedence over using it as a parameter now instead of the reverse.

All these changes along with possible courses of action are detailed in 11

2.0.0

Changes

* `.get_proxy()` and `.get_proxies(amount)` were both removed in favor of just `.get(amount=1)`
* Both the `level` and `protocol` parameters were switched to `Enum`s instead (`from pubproxpy import Level, Protocol`) (avoiding being a stringly typed API)
* Invalid parameter values now `raise` a `ValueError` instead of just being `assert`ed
* Requesting the API now uses `.raise_for_status()` to raise an appropriate exception instead of failing with an obscure error
* Tests for a decent amount of the libraries functionality have been added and are all updated
* Documentation on the README has been updated

Conclusion

And that's pretty much it for changes I could think of to improve the library. So unless other people being raising issues then this will likely be one of the last releases you all have to deal with :tada:

1.1.5

Bugfixes

* de1b92e0d01e7d78db6a76d348ada76b14e4168c Just removed a debugging print statement

1.1.4

Bugfixes

* ef361e2504360cd706f8dcc55135ea7e02941c71 Fixed a bug where a proxy could be returned multiple times from separate `ProxyFetcher`s even when `exclude_used=True` for all of them.

Misc

* Added testing with `pytest` to address 3 .

1.1.3

Not too much has changed for this release. Primarily the documentation has been fixed in some areas and the GitHub Action workflows have been improved upon.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.