ubelt
A Python utility library with a stdlib like feel and extra batteries. Paths, Progress, Dicts, Downloads, Caching, Hashing: ubelt makes it easy! (by Erotemic)
xdoctest
A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX. (by Erotemic)
ubelt | xdoctest | |
---|---|---|
7 | 3 | |
711 | 203 | |
- | - | |
8.3 | 8.0 | |
7 days ago | 3 months ago | |
Python | Python | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ubelt
Posts with mentions or reviews of ubelt.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-29.
-
Python libs that I wish were part of the standard library
I can't give you a stdlib, but I can give you a package with a lot of the basic functionality but still small enough that it installs quickly and has negligable overhead. The ubelt library is a set of 100ish utility functions and classes. It's similar to boltons, but I suppose it reflects a different perspective on what's useful.
-
How do you feel about vendored packages?
Number 3 is the one I feel most conflicted about. Specifically, I tout my ubelt library as having 0 required dependencies. However, it vendors two libraries: progiter and orderedset. The first of which I also maintain and the second of which I don't maintain, but have contributed to. It feels odd to have a single dependency for a library that would otherwise have zero. But at the same time it feels odd to maintain that code myself. Also if I didn't vendor it, it would not be included in the documentation, so there is that. I've recently been thinking I should split ubelt up into many smaller packages and then use ubelt as a "hub" to include them all. However, that's a lot more work than just maintaining one (still quite small) package, and I think having everything broken up with incur a lot of overhead at pip install time, so I'm very conflicted on the whole subject.
- Useful helper libraries
-
Python projects with best practices on Github?
I'm fairly happy with my ubelt library.
-
[D] What is some cool python magic(s) that you've learned over the years?
The ubelt.util_platform module is a good example of including references to similar functionality.
-
[P] best-of-ml-python: A ranked list of awesome machine learning Python libraries
I also have a utility library ubelt with 552 stars and 6.9k downloads / month.
xdoctest
Posts with mentions or reviews of xdoctest.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-01.
-
disallow-import-star: stop your users from using import *
How would the pytest plugin work / what would it test for? I'm no stranger to writing pytest plugins, so if the idea seems like a natural fit for the package I'm all for it.
-
If you could start your Python journey over with what you know know what practices would you force your past self to implement?
xdoctest and writing doctests whenever possible
-
[P] best-of-ml-python: A ranked list of awesome machine learning Python libraries
I have a testing library xdoctest with 87 stars and 20k downloads / month that was featured in PyCon2020
What are some alternatives?
When comparing ubelt and xdoctest you can also consider the following projects:
best-of-web-python - 🏆 A ranked list of awesome python libraries for web development. Updated weekly.
best-of-python-dev - 🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.
best-of-jupyter - 🏆 A ranked list of awesome Jupyter Notebook, Hub and Lab projects (extensions, kernels, tools). Updated weekly.
best-of-ml-python - 🏆 A ranked list of awesome machine learning Python libraries. Updated weekly.
best-of-python - 🏆 A ranked list of awesome Python open-source libraries and tools. Updated weekly.
documented - Templated docstrings for Python classes
fastcore - Python supercharged for the fastai library
best-of-generator - 🏆 Generates a ranked list of awesome libraries and tools.
ubelt vs best-of-web-python
xdoctest vs best-of-web-python
ubelt vs best-of-python-dev
xdoctest vs best-of-python-dev
ubelt vs best-of-jupyter
xdoctest vs best-of-ml-python
ubelt vs best-of-python
xdoctest vs documented
ubelt vs fastcore
xdoctest vs best-of-generator
ubelt vs best-of-ml-python
xdoctest vs best-of-jupyter