Ask HN: Is there any demand for Personal CV/Resume website?
Ask HN: Has anybody built search on top of Anna's Archive?
Show HN: Pyvers – Python library for handling BCB changes and multiple back ends
Example use case: NumPy 2.0 changed bool8 to bool_. With pyvers, you can handle both versions elegantly:
```python @implement_for("numpy", from_version=None, to_version="2.0.0") def create_mask(arr): np = get_backend("numpy") return np.array([x > 0 for x in arr], dtype=np.bool8)
@implement_for("numpy", from_version="2.0.0") def create_mask(arr): np = get_backend("numpy") return np.array([x > 0 for x in arr], dtype=np.bool_) ```
The README.md gives you a more complete example, including using Jax as a backend.
Other real-world examples: - Switching between SciPy (CPU) and CuPy (GPU) sparse matrix operations - Using various libraries for linalg depending on resources: torch, numpy, jax - Handling gym → gymnasium breaking changes in RL libraries
The library is battle-tested: we've been using it in production in several robotic projects to handle BC-breaking changes in our dependencies for the past four years.
GitHub: https://github.com/vmoens/pyvers PyPI: `pip install pyvers`
No comments yet