arrow
🏹 Better dates & times for Python (by arrow-py)
icecream
🍦 Never use print() to debug again. (by gruns)
arrow | icecream | |
---|---|---|
11 | 41 | |
8,555 | 8,480 | |
0.3% | - | |
4.0 | 5.4 | |
17 days ago | about 1 month ago | |
Python | Python | |
Apache License 2.0 | MIT License |
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.
arrow
Posts with mentions or reviews of arrow.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-04.
-
Useful Python Modules for us
pdbpp: Improved pdb boltons: assorted python addtions twisted: event driven networking framework sorcery: Dark magic in python, things know where+how they are being called, helps reducing boilerplate sh: Better alternative for subprocess module, much more pythonic taskipy: npm run scipt_name like functionality snoop: pdb lite, record+replay function steps birdseye: graphical debugger remote-pdb: easy pdb from inside containers typer: wrapper around click for simpler code for CLIs arrow: Always TZ aware datetimes, plus more features more-itertools: more functions for iterators pydantic: data validation + dataclasses loguru: better logging notifiers: sending notifications from python
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
Arrow makes dealing with dates and timezones way easier than the built-ins. Years ago I got sick of looking up how to use date types properly for the umpteenth time and found arrow, and now use it all the time.
-
Hacker News top posts: Feb 27, 2021
Arrow v1.0: After 8 years, even better dates and times for Python\ (59 comments)
-
Arrow 1.0: After 8 years, a new milestone with lots of new features, support for Python 3.6+, typing and much more!
You can also take a look at the parsing formats that Arrow tries to parse: https://github.com/arrow-py/arrow/blob/master/arrow/parser.py#L215
- Arrow v1.0: After 8 years, even better dates and times for Python
- Arrow v1.0: After 8 years, bringing even better dates and times to Python. Support for Python 3.6+, typing and much more!
- Arrow v1.0: After 8 years, a new milestone with a lot of new features
- De Facto Date Library
icecream
Posts with mentions or reviews of icecream.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-28.
-
Show HN: Dbg.h: C macro for quick and dirty print debugging
Hey, very useful. Thanks! Similar to ic() for python, but with the nice ability to be used inline.
https://github.com/gruns/icecream
- When you are looking at someone else's code base and you want to make a copy of it to put in a million print statements to understand it, what is good practice in terms of version control and naming the copy?
-
Pythoneers here, what are some of the best python tricks you guys use when progrmming with python
Icecream is great for this. Just calling ic(foo) gives you the same thing on stderr.
- What's you fav ice cream??
-
What Python debugger do you use?
I get around this by using loguru (a wrapper around python's logger), so I get information like the calling function and line number with my debugging statements. I don't use it these days (and actually built something extremely similar around the same time), but icecream is another alternative that facilitates debugging-by-print
- Top 3 hardest things with debugging as a beginner?
-
Does anyone use python debugger?
Most of the time I simply use icecream (a much better version of print()), and sometimes, I use pudb (a visual debugger) for tougher/trickier bugs.
-
Let's do a war
We also have ice cream
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
I found icecream in a post on this subreddit and still use it as an alternative to print for debugging.
-
A script for print debugging python code
In the future using something like icecream might be interesting as well.
What are some alternatives?
When comparing arrow and icecream you can also consider the following projects:
Pendulum - Python datetimes made easy
pdb++
dateutil - Useful extensions to the standard Python datetime features
Loguru - Python logging made (stupidly) simple
pytz - pytz Python historical timezone library and database
py-spy - Sampling profiler for Python programs
Maya - Datetimes for Humans™
Laboratory - Achieving confident refactoring through experimentation with Python 2.7 & 3.3+
delorean - Delorean: Time Travel Made Easy
remote-pdb - Remote vanilla PDB (over TCP sockets).
moment - A Python library for dealing with dates
PySnooper - Never use print for debugging again